Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RegexWriter.cs
- TreeView.cs
- CaseInsensitiveOrdinalStringComparer.cs
- NameTable.cs
- State.cs
- InteropAutomationProvider.cs
- SchemaComplexType.cs
- CheckBoxPopupAdapter.cs
- wgx_render.cs
- ConnectionManagementElementCollection.cs
- propertytag.cs
- XmlSerializerNamespaces.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- WindowsIPAddress.cs
- SapiRecoContext.cs
- Variant.cs
- HwndHost.cs
- Memoizer.cs
- MessageHeaderAttribute.cs
- AuthorizationRuleCollection.cs
- HttpListenerException.cs
- DocumentApplicationJournalEntry.cs
- VirtualPath.cs
- DataGridViewRowCancelEventArgs.cs
- SubtreeProcessor.cs
- KeyToListMap.cs
- FixedPageStructure.cs
- PluggableProtocol.cs
- AtomContentProperty.cs
- Boolean.cs
- DescendentsWalkerBase.cs
- SqlCacheDependencyDatabase.cs
- DurationConverter.cs
- IISUnsafeMethods.cs
- EngineSiteSapi.cs
- AttachedAnnotation.cs
- ByteStreamGeometryContext.cs
- FrameworkElementAutomationPeer.cs
- WorkflowService.cs
- CmsInterop.cs
- ECDiffieHellmanCng.cs
- SHA512Cng.cs
- DragEvent.cs
- IsolatedStorageSecurityState.cs
- SqlDataSourceConfigureFilterForm.cs
- FixedSOMFixedBlock.cs
- DoubleCollection.cs
- NullExtension.cs
- UniqueIdentifierService.cs
- AnnotationMap.cs
- BinaryReader.cs
- Resources.Designer.cs
- UseLicense.cs
- AxParameterData.cs
- DataViewListener.cs
- DesignTimeData.cs
- Animatable.cs
- login.cs
- HostExecutionContextManager.cs
- DateTimeConverter.cs
- DescendentsWalkerBase.cs
- MdImport.cs
- DelegateSerializationHolder.cs
- GridViewEditEventArgs.cs
- FieldAccessException.cs
- QueryResponse.cs
- SimpleApplicationHost.cs
- ScrollItemPattern.cs
- BinHexDecoder.cs
- SqlFacetAttribute.cs
- InvalidAsynchronousStateException.cs
- ObjectHelper.cs
- AutoSizeToolBoxItem.cs
- SqlConnectionPoolProviderInfo.cs
- MouseButton.cs
- WorkflowInstanceAbortedRecord.cs
- WebPartVerbCollection.cs
- validationstate.cs
- SubqueryRules.cs
- UshortList2.cs
- BasicViewGenerator.cs
- BStrWrapper.cs
- ArgumentException.cs
- SelectorItemAutomationPeer.cs
- securestring.cs
- SystemWebCachingSectionGroup.cs
- ResolveMatches11.cs
- HttpFileCollection.cs
- CreateUserErrorEventArgs.cs
- FlowLayoutSettings.cs
- XPathSelfQuery.cs
- ComPersistableTypeElement.cs
- TypeInitializationException.cs
- Rule.cs
- IndexedWhereQueryOperator.cs
- DXD.cs
- IdentityReference.cs
- Base64Encoder.cs
- TextContainerChangedEventArgs.cs
- SQLByte.cs