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
- ECDiffieHellmanCngPublicKey.cs
- XmlWrappingReader.cs
- ThreadPool.cs
- GeometryValueSerializer.cs
- CompositeCollection.cs
- XPathBinder.cs
- listitem.cs
- Error.cs
- RtfToXamlReader.cs
- entityreference_tresulttype.cs
- LicFileLicenseProvider.cs
- SafeCryptoHandles.cs
- WeakHashtable.cs
- PixelShader.cs
- BinaryCommonClasses.cs
- QilInvokeEarlyBound.cs
- TypeEnumerableViewSchema.cs
- Semaphore.cs
- Margins.cs
- QualifiedCellIdBoolean.cs
- DateRangeEvent.cs
- ColumnResizeAdorner.cs
- HelpInfo.cs
- RoleService.cs
- __Error.cs
- ControlUtil.cs
- LinkTarget.cs
- NamedPipeWorkerProcess.cs
- storepermissionattribute.cs
- NativeMethods.cs
- CultureSpecificStringDictionary.cs
- ClientRoleProvider.cs
- StorageEndPropertyMapping.cs
- XmlQueryTypeFactory.cs
- CharAnimationBase.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- SevenBitStream.cs
- DetailsViewInsertEventArgs.cs
- CodeMemberProperty.cs
- SafeNativeMethods.cs
- ColorKeyFrameCollection.cs
- LinkUtilities.cs
- Component.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- AuthenticatingEventArgs.cs
- DbMetaDataFactory.cs
- ToolTip.cs
- FormViewUpdatedEventArgs.cs
- TriggerAction.cs
- XmlSiteMapProvider.cs
- Misc.cs
- _LazyAsyncResult.cs
- ReadOnlyActivityGlyph.cs
- AttributeQuery.cs
- PresentationAppDomainManager.cs
- OdbcInfoMessageEvent.cs
- SafeLocalAllocation.cs
- XmlSchemaAttributeGroupRef.cs
- DataProviderNameConverter.cs
- DesignerView.cs
- Model3DGroup.cs
- _AutoWebProxyScriptHelper.cs
- MultiDataTrigger.cs
- PolicyLevel.cs
- StateItem.cs
- ExtendedPropertyDescriptor.cs
- XmlBindingWorker.cs
- EditorPartChrome.cs
- CompositeScriptReferenceEventArgs.cs
- DataService.cs
- EndpointNotFoundException.cs
- BreadCrumbTextConverter.cs
- SecurityTokenParametersEnumerable.cs
- OperatorExpressions.cs
- EntityDataSourceReferenceGroup.cs
- TextSpanModifier.cs
- SystemIPInterfaceStatistics.cs
- DllNotFoundException.cs
- Timer.cs
- XamlPoint3DCollectionSerializer.cs
- DataBindingValueUIHandler.cs
- FacetChecker.cs
- EntityDataSourceDesigner.cs
- ButtonBaseAutomationPeer.cs
- CodeParameterDeclarationExpressionCollection.cs
- ContextMenuStripGroupCollection.cs
- SqlAliaser.cs
- TextProperties.cs
- HwndSourceKeyboardInputSite.cs
- UserPreferenceChangingEventArgs.cs
- BoundConstants.cs
- FlowDocumentReaderAutomationPeer.cs
- MimeWriter.cs
- DynamicRenderer.cs
- SqlTriggerContext.cs
- InlinedLocationReference.cs
- RewritingPass.cs
- ConstraintManager.cs
- HierarchicalDataBoundControlAdapter.cs
- SortedList.cs