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
- EventLogger.cs
- SettingsProviderCollection.cs
- ChannelTracker.cs
- PrtCap_Public.cs
- ColorConvertedBitmap.cs
- ReadOnlyDictionary.cs
- ProfileBuildProvider.cs
- HealthMonitoringSectionHelper.cs
- CharacterMetricsDictionary.cs
- WebPartDisplayModeCancelEventArgs.cs
- RoleService.cs
- SafeEventHandle.cs
- MaskedTextBoxTextEditor.cs
- Message.cs
- TextStore.cs
- JsonStringDataContract.cs
- MailSettingsSection.cs
- MailHeaderInfo.cs
- ActivationServices.cs
- MediaPlayer.cs
- ResolveNameEventArgs.cs
- _AutoWebProxyScriptHelper.cs
- PolyQuadraticBezierSegment.cs
- DataControlPagerLinkButton.cs
- _FtpDataStream.cs
- InputElement.cs
- ErasingStroke.cs
- SimpleBitVector32.cs
- ChainOfResponsibility.cs
- DynamicActivityXamlReader.cs
- ResourceReferenceKeyNotFoundException.cs
- VectorKeyFrameCollection.cs
- ExpressionEditorAttribute.cs
- CounterSample.cs
- ConnectivityStatus.cs
- LogoValidationException.cs
- NavigationHelper.cs
- Rotation3D.cs
- PriorityQueue.cs
- CommonXSendMessage.cs
- SecurityKeyIdentifierClause.cs
- SafeEventHandle.cs
- JavascriptCallbackMessageInspector.cs
- Marshal.cs
- DataGridViewUtilities.cs
- GeometryHitTestParameters.cs
- DataGridRow.cs
- SessionStateItemCollection.cs
- ClrProviderManifest.cs
- XmlSecureResolver.cs
- ExpressionBuilderContext.cs
- ServicePoint.cs
- ProcessThreadDesigner.cs
- AttributeEmitter.cs
- Convert.cs
- DefaultMergeHelper.cs
- TypeLibConverter.cs
- HttpServerUtilityWrapper.cs
- UnsafeNativeMethods.cs
- BuildProviderAppliesToAttribute.cs
- SettingsContext.cs
- TrackingValidationObjectDictionary.cs
- JapaneseLunisolarCalendar.cs
- PolicyManager.cs
- TextServicesCompartment.cs
- Visual3D.cs
- ProxyElement.cs
- Ray3DHitTestResult.cs
- TypeGeneratedEventArgs.cs
- PropertyDescriptorComparer.cs
- DatagridviewDisplayedBandsData.cs
- WebConfigurationHostFileChange.cs
- CodeIdentifier.cs
- FlagsAttribute.cs
- XmlCollation.cs
- TabControlAutomationPeer.cs
- Soap.cs
- FontStretchConverter.cs
- BufferModesCollection.cs
- ViewStateModeByIdAttribute.cs
- VisemeEventArgs.cs
- XmlCustomFormatter.cs
- FontWeight.cs
- ScriptManagerProxy.cs
- ArrayHelper.cs
- _OverlappedAsyncResult.cs
- DataGridViewComboBoxEditingControl.cs
- BaseAsyncResult.cs
- VirtualDirectoryMappingCollection.cs
- ChannelSinkStacks.cs
- CodeAttributeArgumentCollection.cs
- TiffBitmapDecoder.cs
- WeakEventTable.cs
- SetStoryboardSpeedRatio.cs
- EndpointConfigContainer.cs
- PriorityQueue.cs
- LinearKeyFrames.cs
- Facet.cs
- precedingsibling.cs
- SecurityDescriptor.cs