Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- StretchValidation.cs
- PathFigureCollection.cs
- PreProcessInputEventArgs.cs
- _NegoStream.cs
- BaseCodePageEncoding.cs
- WindowsEditBox.cs
- DependencyPropertyKey.cs
- ExtendedPropertyInfo.cs
- NetPipeSection.cs
- ViewKeyConstraint.cs
- OpenTypeLayoutCache.cs
- WebDescriptionAttribute.cs
- ImageAttributes.cs
- MemberHolder.cs
- RichTextBox.cs
- BindingOperations.cs
- DependencyObjectType.cs
- SmtpCommands.cs
- SchemaCollectionCompiler.cs
- FastEncoderWindow.cs
- SafeTimerHandle.cs
- KeyedHashAlgorithm.cs
- CrossContextChannel.cs
- ArraySortHelper.cs
- CryptoConfig.cs
- XPathBinder.cs
- ToolBar.cs
- StringSource.cs
- XmlEntity.cs
- HMACSHA1.cs
- contentDescriptor.cs
- InputScopeAttribute.cs
- WebPartCloseVerb.cs
- propertytag.cs
- Bidi.cs
- SignerInfo.cs
- MatrixTransform.cs
- NavigationProgressEventArgs.cs
- Expressions.cs
- StylusButton.cs
- PixelShader.cs
- RootBrowserWindow.cs
- BaseTemplateBuildProvider.cs
- DelegatingTypeDescriptionProvider.cs
- ChangeTracker.cs
- NonParentingControl.cs
- EventHandlersStore.cs
- ExpressionConverter.cs
- SystemResourceKey.cs
- Identity.cs
- TargetControlTypeCache.cs
- _UriSyntax.cs
- TraceFilter.cs
- _SSPIWrapper.cs
- VisualBrush.cs
- FormsAuthenticationModule.cs
- MetadataArtifactLoaderFile.cs
- MediaTimeline.cs
- Vector3DKeyFrameCollection.cs
- XPathException.cs
- ContractListAdapter.cs
- WindowsListViewItemStartMenu.cs
- UntypedNullExpression.cs
- NativeMethods.cs
- FormViewCommandEventArgs.cs
- OutputCacheSettings.cs
- XmlSortKeyAccumulator.cs
- FileChangeNotifier.cs
- SamlConstants.cs
- XmlEntityReference.cs
- PeerDuplexChannel.cs
- StorageEntityContainerMapping.cs
- TokenFactoryFactory.cs
- ClientUrlResolverWrapper.cs
- OrderPreservingSpoolingTask.cs
- SeparatorAutomationPeer.cs
- EventMap.cs
- OutputWindow.cs
- FullTextBreakpoint.cs
- HttpVersion.cs
- Accessible.cs
- FileDialog_Vista.cs
- PersianCalendar.cs
- QuaternionRotation3D.cs
- ItemChangedEventArgs.cs
- WsiProfilesElementCollection.cs
- UriSection.cs
- AddInDeploymentState.cs
- SQLChars.cs
- dataprotectionpermissionattribute.cs
- ToolBar.cs
- COMException.cs
- PerformanceCounterScope.cs
- PrtCap_Public_Simple.cs
- AudienceUriMode.cs
- ExpandableObjectConverter.cs
- UnicodeEncoding.cs
- TransformPatternIdentifiers.cs
- GroupBoxAutomationPeer.cs
- XmlILIndex.cs