Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / Security / Cryptography / AsymmetricSignatureDeformatter.cs / 1 / AsymmetricSignatureDeformatter.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // // AsymmetricSignatureDeformatter.cs // namespace System.Security.Cryptography { using System.Security; using System; [System.Runtime.InteropServices.ComVisible(true)] public abstract class AsymmetricSignatureDeformatter { // // protected constructors // protected AsymmetricSignatureDeformatter() { } // // public methods // abstract public void SetKey(AsymmetricAlgorithm key); abstract public void SetHashAlgorithm(String strName); public virtual bool VerifySignature(HashAlgorithm hash, byte[] rgbSignature) { if (hash == null) throw new ArgumentNullException("hash"); SetHashAlgorithm(hash.ToString()); return VerifySignature(hash.Hash, rgbSignature); } abstract public bool VerifySignature(byte[] rgbHash, byte[] rgbSignature); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // // AsymmetricSignatureDeformatter.cs // namespace System.Security.Cryptography { using System.Security; using System; [System.Runtime.InteropServices.ComVisible(true)] public abstract class AsymmetricSignatureDeformatter { // // protected constructors // protected AsymmetricSignatureDeformatter() { } // // public methods // abstract public void SetKey(AsymmetricAlgorithm key); abstract public void SetHashAlgorithm(String strName); public virtual bool VerifySignature(HashAlgorithm hash, byte[] rgbSignature) { if (hash == null) throw new ArgumentNullException("hash"); SetHashAlgorithm(hash.ToString()); return VerifySignature(hash.Hash, rgbSignature); } abstract public bool VerifySignature(byte[] rgbHash, byte[] rgbSignature); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MatrixIndependentAnimationStorage.cs
- WebPartConnectionsCloseVerb.cs
- CurrentChangedEventManager.cs
- KerberosSecurityTokenProvider.cs
- webeventbuffer.cs
- PlainXmlSerializer.cs
- StylusPointCollection.cs
- AuthorizationSection.cs
- BuildResultCache.cs
- QueueProcessor.cs
- SoapAttributeOverrides.cs
- ReadOnlyHierarchicalDataSourceView.cs
- RandomNumberGenerator.cs
- CryptoApi.cs
- EventDescriptorCollection.cs
- ControlAdapter.cs
- BeginStoryboard.cs
- HtmlTable.cs
- tooltip.cs
- DataGridViewButtonCell.cs
- OpenTypeLayoutCache.cs
- Expression.cs
- ExtenderControl.cs
- Hash.cs
- WebPartsSection.cs
- BmpBitmapEncoder.cs
- AmbientValueAttribute.cs
- MapPathBasedVirtualPathProvider.cs
- DBSqlParserTable.cs
- SqlInfoMessageEvent.cs
- StateMachineWorkflowDesigner.cs
- BitmapEffectState.cs
- PeerCollaboration.cs
- ResolveNameEventArgs.cs
- ThicknessConverter.cs
- XmlAttributeCache.cs
- ButtonBase.cs
- WorkflowApplicationTerminatedException.cs
- FixedPageStructure.cs
- XmlSchemaSequence.cs
- HtmlEmptyTagControlBuilder.cs
- TemplateContent.cs
- HtmlGenericControl.cs
- PathTooLongException.cs
- DesignerActionUIService.cs
- SchemaCollectionPreprocessor.cs
- QuaternionKeyFrameCollection.cs
- WebInvokeAttribute.cs
- TokenBasedSetEnumerator.cs
- WebUtil.cs
- ThreadStateException.cs
- CodeTypeReferenceCollection.cs
- DataRecordInternal.cs
- ObservableCollection.cs
- MenuEventArgs.cs
- SafeReadContext.cs
- MenuEventArgs.cs
- ResXBuildProvider.cs
- _Win32.cs
- ObjectDataSourceSelectingEventArgs.cs
- SystemIPv6InterfaceProperties.cs
- DocumentGridContextMenu.cs
- ItemCheckedEvent.cs
- XmlBinaryWriterSession.cs
- Unit.cs
- AlignmentYValidation.cs
- PageParser.cs
- OleDbReferenceCollection.cs
- VarRefManager.cs
- ModuleBuilder.cs
- DbParameterCollectionHelper.cs
- FontStretchConverter.cs
- DBSqlParserTableCollection.cs
- TypeSystemProvider.cs
- ProviderIncompatibleException.cs
- NavigationProperty.cs
- ObjectAnimationUsingKeyFrames.cs
- selecteditemcollection.cs
- BamlTreeUpdater.cs
- ConfigXmlSignificantWhitespace.cs
- InfoCardRSACryptoProvider.cs
- FreezableOperations.cs
- IncrementalReadDecoders.cs
- Compiler.cs
- ProxyHelper.cs
- DragDrop.cs
- ConfigurationErrorsException.cs
- NativeWindow.cs
- DataControlFieldCollection.cs
- CalendarItem.cs
- XmlArrayItemAttribute.cs
- HitTestParameters.cs
- FormViewActionList.cs
- DeploymentSection.cs
- SqlDataSourceCache.cs
- LockedHandleGlyph.cs
- SafeNativeMethods.cs
- _LocalDataStoreMgr.cs
- OperatingSystem.cs
- datacache.cs