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
- ThreadInterruptedException.cs
- SqlAliasesReferenced.cs
- MouseGesture.cs
- ProviderException.cs
- MissingMethodException.cs
- GetWinFXPath.cs
- RawStylusInput.cs
- AttributeUsageAttribute.cs
- EntityDataSourceContextCreatingEventArgs.cs
- XmlUtil.cs
- SqlFunctionAttribute.cs
- DbProviderConfigurationHandler.cs
- ServiceModelConfigurationSectionGroup.cs
- ListViewSelectEventArgs.cs
- PerfService.cs
- NameSpaceExtractor.cs
- OdbcEnvironmentHandle.cs
- Processor.cs
- NameGenerator.cs
- SafeNativeMethods.cs
- SmtpAuthenticationManager.cs
- KeyboardEventArgs.cs
- ValidatorCompatibilityHelper.cs
- PictureBox.cs
- NetworkAddressChange.cs
- SqlMethods.cs
- ColorConvertedBitmapExtension.cs
- TreeNodeCollection.cs
- XmlArrayItemAttribute.cs
- MessagingActivityHelper.cs
- HtmlControlDesigner.cs
- StreamInfo.cs
- PersonalizationStateQuery.cs
- ResourceManagerWrapper.cs
- PipeStream.cs
- Int64KeyFrameCollection.cs
- EastAsianLunisolarCalendar.cs
- ValidatorAttribute.cs
- Utils.cs
- OutputCacheModule.cs
- MessageBox.cs
- AuthorizationBehavior.cs
- ComboBoxItem.cs
- IFlowDocumentViewer.cs
- ResourceContainer.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ReadOnlyAttribute.cs
- WeakReferenceKey.cs
- SinglePhaseEnlistment.cs
- AmbientValueAttribute.cs
- MoveSizeWinEventHandler.cs
- XmlQueryCardinality.cs
- PersonalizationStateInfo.cs
- OdbcDataReader.cs
- CheckBox.cs
- PackageStore.cs
- CatalogUtil.cs
- metrodevice.cs
- CultureInfoConverter.cs
- XmlSchemaType.cs
- XmlElementList.cs
- ListenerAdaptersInstallComponent.cs
- TypedColumnHandler.cs
- documentsequencetextcontainer.cs
- CodeExporter.cs
- TaskCanceledException.cs
- DBBindings.cs
- SchemaNotation.cs
- TemplateManager.cs
- StrokeCollectionDefaultValueFactory.cs
- SamlSubject.cs
- PngBitmapEncoder.cs
- CacheAxisQuery.cs
- LocationReference.cs
- TargetConverter.cs
- CodeTypeMember.cs
- GraphicsContext.cs
- CacheManager.cs
- CustomAttributeFormatException.cs
- MouseActionConverter.cs
- OrderedDictionary.cs
- GeometryDrawing.cs
- DocumentApplicationJournalEntryEventArgs.cs
- PointAnimation.cs
- DesignerLinkAdapter.cs
- AvTraceDetails.cs
- SerialReceived.cs
- MouseOverProperty.cs
- AssemblyBuilderData.cs
- Rect3D.cs
- EntityDataSourceDesigner.cs
- DatatypeImplementation.cs
- RC2.cs
- HtmlTextArea.cs
- XmlComment.cs
- SurrogateSelector.cs
- NameSpaceExtractor.cs
- IsolatedStoragePermission.cs
- ResourceContainerWrapper.cs
- AttributeConverter.cs