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
- AttributeCollection.cs
- CFStream.cs
- SortedDictionary.cs
- RemotingSurrogateSelector.cs
- SQLMembershipProvider.cs
- _Win32.cs
- LingerOption.cs
- AssemblyResourceLoader.cs
- SizeKeyFrameCollection.cs
- ModelTypeConverter.cs
- MdImport.cs
- sqlstateclientmanager.cs
- ModuleBuilder.cs
- XmlMapping.cs
- RepeaterItemEventArgs.cs
- PackageFilter.cs
- SystemWebExtensionsSectionGroup.cs
- Page.cs
- UnsafeNativeMethods.cs
- SimpleExpression.cs
- RegexParser.cs
- XmlExpressionDumper.cs
- DotNetATv1WindowsLogEntrySerializer.cs
- ClipboardProcessor.cs
- ProviderException.cs
- RuntimeArgumentHandle.cs
- DesignerRegionCollection.cs
- PathHelper.cs
- MachineKeySection.cs
- UdpSocket.cs
- EditorBrowsableAttribute.cs
- Int16Storage.cs
- xdrvalidator.cs
- MgmtResManager.cs
- ThumbAutomationPeer.cs
- BackStopAuthenticationModule.cs
- PenThread.cs
- EntityDataSourceDataSelectionPanel.cs
- CaseCqlBlock.cs
- NetworkCredential.cs
- CurrentTimeZone.cs
- MouseActionValueSerializer.cs
- FormViewModeEventArgs.cs
- ProjectedWrapper.cs
- MenuCommand.cs
- QueryableFilterRepeater.cs
- XmlUtilWriter.cs
- ToolBarButtonDesigner.cs
- QuaternionRotation3D.cs
- StylusCollection.cs
- MobileErrorInfo.cs
- ControlEvent.cs
- DictionaryBase.cs
- EtwTrace.cs
- MultiDataTrigger.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- EventLogPermissionEntry.cs
- ProxyWebPartManagerDesigner.cs
- SmtpCommands.cs
- TransformCollection.cs
- ClientApiGenerator.cs
- RootAction.cs
- SapiRecoInterop.cs
- PagesSection.cs
- SqlDataRecord.cs
- Scripts.cs
- _WebProxyDataBuilder.cs
- ProfileEventArgs.cs
- ItemCollection.cs
- TextEditor.cs
- MsmqTransportReceiveParameters.cs
- SoapAttributes.cs
- CounterCreationDataCollection.cs
- SqlDataSourceEnumerator.cs
- CreateParams.cs
- StreamingContext.cs
- arc.cs
- WindowsStatic.cs
- WizardSideBarListControlItem.cs
- XmlSchemaExporter.cs
- NumericUpDownAccelerationCollection.cs
- OrthographicCamera.cs
- SafePointer.cs
- SQLString.cs
- XhtmlBasicLabelAdapter.cs
- GlyphRun.cs
- SqlConnectionPoolGroupProviderInfo.cs
- MsmqIntegrationReceiveParameters.cs
- FileStream.cs
- DictationGrammar.cs
- X509ScopedServiceCertificateElementCollection.cs
- ClickablePoint.cs
- PowerEase.cs
- PropertyRef.cs
- GeneralTransform3DGroup.cs
- XhtmlBasicLabelAdapter.cs
- DrawTreeNodeEventArgs.cs
- LinqDataSourceHelper.cs
- ObjectDataSourceFilteringEventArgs.cs
- DefaultParameterValueAttribute.cs