Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Security / Cryptography / AsymmetricSignatureDeformatter.cs / 1305376 / AsymmetricSignatureDeformatter.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //[....] // // // AsymmetricSignatureDeformatter.cs // namespace System.Security.Cryptography { using System.Security; using System; using System.Diagnostics.Contracts; [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"); Contract.EndContractBlock(); 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; using System.Diagnostics.Contracts; [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"); Contract.EndContractBlock(); 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
- ImageField.cs
- ComboBoxDesigner.cs
- XsltFunctions.cs
- TouchDevice.cs
- TextEncodedRawTextWriter.cs
- BitmapData.cs
- TypeInfo.cs
- UpdateCompiler.cs
- CodeLabeledStatement.cs
- OrderByLifter.cs
- TrimSurroundingWhitespaceAttribute.cs
- LoginView.cs
- WebHttpEndpoint.cs
- Contracts.cs
- StringUtil.cs
- Stack.cs
- InvalidComObjectException.cs
- DeclarationUpdate.cs
- UpdateRecord.cs
- FactoryGenerator.cs
- Internal.cs
- PasswordTextNavigator.cs
- AuthenticationModulesSection.cs
- SqlServices.cs
- SystemThemeKey.cs
- SmtpSection.cs
- SettingsPropertyNotFoundException.cs
- ArglessEventHandlerProxy.cs
- ParentQuery.cs
- _StreamFramer.cs
- SafeReversePInvokeHandle.cs
- ConfigLoader.cs
- TextParagraphCache.cs
- SortAction.cs
- SoapFormatExtensions.cs
- CurrentTimeZone.cs
- LoginUtil.cs
- MachineKey.cs
- SubMenuStyleCollection.cs
- LinkArea.cs
- PropertyChangedEventArgs.cs
- TextLineResult.cs
- DesignerDataParameter.cs
- ExpressionEditor.cs
- SqlDataSourceFilteringEventArgs.cs
- HttpContext.cs
- CollectionContainer.cs
- XmlDataCollection.cs
- Literal.cs
- StylusPointPropertyId.cs
- DelegateBodyWriter.cs
- OpenTypeCommon.cs
- NonVisualControlAttribute.cs
- CachedPathData.cs
- _CommandStream.cs
- WeakReferenceList.cs
- Screen.cs
- KeyboardEventArgs.cs
- SchemaImporterExtensionElement.cs
- ToolboxComponentsCreatingEventArgs.cs
- ConditionedDesigner.cs
- EntityContainerEmitter.cs
- ExpanderAutomationPeer.cs
- PathSegmentCollection.cs
- PreviewKeyDownEventArgs.cs
- DigitalSignature.cs
- GB18030Encoding.cs
- EventLogPermissionAttribute.cs
- CompilerGeneratedAttribute.cs
- XmlSchemaInferenceException.cs
- DateTimePicker.cs
- UserControlDesigner.cs
- CustomErrorsSection.cs
- CodeAttributeDeclarationCollection.cs
- TextServicesCompartmentContext.cs
- DbParameterHelper.cs
- XPathNodePointer.cs
- EncodingInfo.cs
- ExpressionPrefixAttribute.cs
- ContourSegment.cs
- SamlConstants.cs
- IndexOutOfRangeException.cs
- DllNotFoundException.cs
- StreamUpdate.cs
- PersistenceProviderFactory.cs
- NameTable.cs
- SimpleType.cs
- DbProviderFactories.cs
- XpsImage.cs
- SimplePropertyEntry.cs
- ResourceReferenceKeyNotFoundException.cs
- NumberSubstitution.cs
- _HelperAsyncResults.cs
- QilPatternFactory.cs
- FrameworkContextData.cs
- CompositeControl.cs
- FileUtil.cs
- BooleanFacetDescriptionElement.cs
- FunctionQuery.cs
- DataControlFieldCollection.cs