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
- IPAddressCollection.cs
- DataGridViewTopRowAccessibleObject.cs
- FigureHelper.cs
- ConstructorBuilder.cs
- HttpWebRequestElement.cs
- RtfToken.cs
- NameScope.cs
- TextAdaptor.cs
- ConfigXmlElement.cs
- PointAnimationUsingPath.cs
- EncoderNLS.cs
- TdsParserSafeHandles.cs
- ContentDesigner.cs
- KeyConverter.cs
- ContainerCodeDomSerializer.cs
- FrameworkElementAutomationPeer.cs
- DBAsyncResult.cs
- GroupDescription.cs
- httpapplicationstate.cs
- MemberInfoSerializationHolder.cs
- ControlPersister.cs
- BuilderInfo.cs
- StylusLogic.cs
- SubMenuStyleCollection.cs
- GroupBoxAutomationPeer.cs
- DefinitionBase.cs
- RNGCryptoServiceProvider.cs
- TransformValueSerializer.cs
- BinaryCommonClasses.cs
- DirectoryInfo.cs
- FieldCollectionEditor.cs
- XmlFormatWriterGenerator.cs
- StringArrayConverter.cs
- StickyNoteContentControl.cs
- PersianCalendar.cs
- XmlDocumentType.cs
- ExtensibleClassFactory.cs
- FileLogRecordEnumerator.cs
- ToolStripProgressBar.cs
- XmlDocumentType.cs
- FileDialog_Vista.cs
- CodeMethodMap.cs
- BitmapCache.cs
- SizeAnimationClockResource.cs
- CloseSequenceResponse.cs
- FreezableDefaultValueFactory.cs
- PathStreamGeometryContext.cs
- StatusBarDrawItemEvent.cs
- TextEffect.cs
- CodeTypeParameterCollection.cs
- WebExceptionStatus.cs
- ConfigurationValidatorAttribute.cs
- SettingsSavedEventArgs.cs
- AuthenticationException.cs
- SessionSwitchEventArgs.cs
- XsdCachingReader.cs
- SerializationHelper.cs
- SessionMode.cs
- FrameSecurityDescriptor.cs
- ReservationNotFoundException.cs
- COM2ExtendedUITypeEditor.cs
- ISessionStateStore.cs
- ArithmeticLiteral.cs
- RuntimeIdentifierPropertyAttribute.cs
- DESCryptoServiceProvider.cs
- CallbackDebugBehavior.cs
- EmptyElement.cs
- FieldNameLookup.cs
- CheckBoxField.cs
- OptimizedTemplateContentHelper.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- FileLogRecordHeader.cs
- MenuItemCollection.cs
- ResourceDescriptionAttribute.cs
- Hash.cs
- BulletDecorator.cs
- IOException.cs
- PersonalizationStateQuery.cs
- BaseTemplateCodeDomTreeGenerator.cs
- SQLChars.cs
- XPathScanner.cs
- WhiteSpaceTrimStringConverter.cs
- MenuItemStyleCollection.cs
- ProtocolReflector.cs
- SurrogateSelector.cs
- IteratorAsyncResult.cs
- DataListCommandEventArgs.cs
- httpapplicationstate.cs
- SymbolEqualComparer.cs
- WindowsTokenRoleProvider.cs
- OdbcDataReader.cs
- Constants.cs
- StylusButton.cs
- DbConnectionPoolOptions.cs
- Path.cs
- ParentQuery.cs
- XDeferredAxisSource.cs
- TextRangeProviderWrapper.cs
- BitmapFrameEncode.cs
- Html32TextWriter.cs