Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TrustManagerMoreInformation.cs
- BindingGroup.cs
- ClientSettingsSection.cs
- EtwTrace.cs
- DataGridTextBoxColumn.cs
- CustomValidator.cs
- WebConfigurationManager.cs
- URIFormatException.cs
- IisTraceListener.cs
- Compiler.cs
- SoapRpcServiceAttribute.cs
- FunctionNode.cs
- XmlSchemaCompilationSettings.cs
- IListConverters.cs
- WizardSideBarListControlItem.cs
- InheritedPropertyChangedEventArgs.cs
- objectresult_tresulttype.cs
- TemplateGroupCollection.cs
- DiagnosticTraceSource.cs
- XmlObjectSerializerReadContext.cs
- SQLInt32Storage.cs
- SchemaType.cs
- _SSPIWrapper.cs
- DPCustomTypeDescriptor.cs
- EventListenerClientSide.cs
- Rfc2898DeriveBytes.cs
- ClipboardData.cs
- AnnouncementDispatcherAsyncResult.cs
- Timer.cs
- ParseHttpDate.cs
- CheckBoxBaseAdapter.cs
- Choices.cs
- OperationResponse.cs
- ToolStripPanelRenderEventArgs.cs
- EditCommandColumn.cs
- Attributes.cs
- Wizard.cs
- LoginView.cs
- DataListGeneralPage.cs
- AttributeAction.cs
- DbExpressionRules.cs
- Inflater.cs
- OracleException.cs
- TransactionManager.cs
- SmtpFailedRecipientsException.cs
- HtmlEmptyTagControlBuilder.cs
- AsymmetricAlgorithm.cs
- HashCodeCombiner.cs
- DiscoveryDocumentLinksPattern.cs
- RectangleGeometry.cs
- EndpointBehaviorElementCollection.cs
- IdentityNotMappedException.cs
- XmlNamespaceDeclarationsAttribute.cs
- DispatchWrapper.cs
- GlobalAllocSafeHandle.cs
- PermissionSetTriple.cs
- ContainerVisual.cs
- DataSetSchema.cs
- Converter.cs
- XmlBindingWorker.cs
- ClientScriptManagerWrapper.cs
- LocalTransaction.cs
- ApplicationServicesHostFactory.cs
- ObjectStorage.cs
- FieldAccessException.cs
- Label.cs
- BrowserDefinition.cs
- RelatedEnd.cs
- MsmqHostedTransportManager.cs
- PatternMatcher.cs
- SocketInformation.cs
- SchemaCompiler.cs
- WebPartDeleteVerb.cs
- TextBoxRenderer.cs
- MembershipSection.cs
- CurrentChangingEventArgs.cs
- TextProperties.cs
- WindowsScrollBar.cs
- SecurityKeyIdentifierClause.cs
- CompensationDesigner.cs
- BamlLocalizer.cs
- UpdatePanelTrigger.cs
- ActiveXSite.cs
- HtmlEncodedRawTextWriter.cs
- XmlSchemaSimpleTypeList.cs
- OSEnvironmentHelper.cs
- Component.cs
- OletxEnlistment.cs
- HMACSHA1.cs
- VisualStyleElement.cs
- GenericPrincipal.cs
- InvalidDataException.cs
- DBCommand.cs
- SiteMapNodeItemEventArgs.cs
- JsonEncodingStreamWrapper.cs
- WorkflowItemPresenter.cs
- XmlTypeMapping.cs
- NullableBoolConverter.cs
- DataPager.cs
- WebPartMenu.cs