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
- _NegoState.cs
- ImageListDesigner.cs
- MSAAEventDispatcher.cs
- ProcessingInstructionAction.cs
- MultitargetUtil.cs
- TdsParserSessionPool.cs
- FontStyle.cs
- DivideByZeroException.cs
- ISFTagAndGuidCache.cs
- EasingKeyFrames.cs
- WizardStepBase.cs
- TextParagraphCache.cs
- ColumnHeaderConverter.cs
- FontStyleConverter.cs
- PeerInvitationResponse.cs
- StrongNamePublicKeyBlob.cs
- EntityDataSourceDataSelectionPanel.cs
- SqlGenerator.cs
- BmpBitmapDecoder.cs
- CurrentTimeZone.cs
- SqlHelper.cs
- UInt16.cs
- GZipDecoder.cs
- ScriptControlManager.cs
- StaticDataManager.cs
- CompositionAdorner.cs
- DropShadowEffect.cs
- DataViewSetting.cs
- OdbcCommand.cs
- SafeUserTokenHandle.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- SqlClientWrapperSmiStream.cs
- Point3DConverter.cs
- EventTrigger.cs
- RequiredFieldValidator.cs
- MulticastDelegate.cs
- ComponentChangingEvent.cs
- ObjectSet.cs
- CommandPlan.cs
- _ConnectStream.cs
- OrthographicCamera.cs
- ServiceOperationParameter.cs
- ScriptIgnoreAttribute.cs
- DSASignatureDeformatter.cs
- SiteMapPathDesigner.cs
- Visual.cs
- DataGridLinkButton.cs
- Environment.cs
- XmlException.cs
- ReaderWriterLockWrapper.cs
- CodeBlockBuilder.cs
- StylusCaptureWithinProperty.cs
- IsolatedStorageFile.cs
- CapiNative.cs
- BCLDebug.cs
- MessagePartSpecification.cs
- WebMethodAttribute.cs
- MenuBindingsEditorForm.cs
- SystemDiagnosticsSection.cs
- ElementsClipboardData.cs
- ConfigurationManagerHelper.cs
- GPPOINT.cs
- DrawTreeNodeEventArgs.cs
- EtwProvider.cs
- MiniAssembly.cs
- SqlGatherConsumedAliases.cs
- SafeBitVector32.cs
- KeyboardEventArgs.cs
- ChannelFactory.cs
- NumericUpDownAcceleration.cs
- ISFClipboardData.cs
- MutexSecurity.cs
- ListViewGroupItemCollection.cs
- CommandEventArgs.cs
- AxisAngleRotation3D.cs
- XamlStackWriter.cs
- Pkcs7Signer.cs
- Rect3D.cs
- NavigateEvent.cs
- wgx_exports.cs
- PenContexts.cs
- Animatable.cs
- OdbcParameterCollection.cs
- IntPtr.cs
- Attributes.cs
- DependencyProperty.cs
- MetadataSource.cs
- PackagePart.cs
- BitmapScalingModeValidation.cs
- WebBrowserUriTypeConverter.cs
- GroupPartitionExpr.cs
- FileEnumerator.cs
- ToolStripCustomTypeDescriptor.cs
- COAUTHINFO.cs
- BindingExpressionBase.cs
- Quad.cs
- ResXFileRef.cs
- MimeXmlImporter.cs
- MetadataCache.cs
- XmlCharCheckingReader.cs