Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Accessible.cs
- NCryptNative.cs
- OrderedDictionaryStateHelper.cs
- BaseCollection.cs
- ParallelRangeManager.cs
- ProjectedSlot.cs
- TouchesOverProperty.cs
- DBCSCodePageEncoding.cs
- LabelEditEvent.cs
- DrawingContextWalker.cs
- ComNativeDescriptor.cs
- DebugView.cs
- CapabilitiesPattern.cs
- ApplicationActivator.cs
- DataGridViewCheckBoxCell.cs
- processwaithandle.cs
- GeometryGroup.cs
- SigningProgress.cs
- PartialTrustHelpers.cs
- MissingManifestResourceException.cs
- ScriptReferenceEventArgs.cs
- QuaternionAnimation.cs
- ToolStripContentPanel.cs
- TagPrefixInfo.cs
- DesignerOptionService.cs
- columnmapfactory.cs
- HwndKeyboardInputProvider.cs
- GeneralTransform2DTo3D.cs
- MouseWheelEventArgs.cs
- NavigationPropertyAccessor.cs
- EndpointInfoCollection.cs
- CultureSpecificCharacterBufferRange.cs
- ZoomPercentageConverter.cs
- FileSystemWatcher.cs
- Region.cs
- DecimalStorage.cs
- documentsequencetextview.cs
- XmlSchemaSimpleTypeRestriction.cs
- GridSplitter.cs
- MetafileHeaderWmf.cs
- IERequestCache.cs
- UseManagedPresentationBindingElementImporter.cs
- CollectionEditor.cs
- PageParser.cs
- DebugInfo.cs
- Win32MouseDevice.cs
- DetailsViewRowCollection.cs
- XPathSelfQuery.cs
- OleAutBinder.cs
- XmlnsCache.cs
- BitmapEffectDrawingContextWalker.cs
- SpecialNameAttribute.cs
- PropertyEntry.cs
- EntityParameterCollection.cs
- BaseTemplateCodeDomTreeGenerator.cs
- Helper.cs
- Vars.cs
- Inflater.cs
- Rijndael.cs
- BindingMemberInfo.cs
- ParsedAttributeCollection.cs
- XPathChildIterator.cs
- PackageRelationshipCollection.cs
- DictionaryTraceRecord.cs
- XmlWrappingReader.cs
- SqlDataSourceParameterParser.cs
- DependencyPropertyAttribute.cs
- InstanceCompleteException.cs
- FormsAuthenticationUser.cs
- _SSPISessionCache.cs
- OperandQuery.cs
- DateTimeAutomationPeer.cs
- UnaryNode.cs
- ModifiableIteratorCollection.cs
- HtmlInputPassword.cs
- RMEnrollmentPage1.cs
- Tuple.cs
- ObfuscationAttribute.cs
- OdbcException.cs
- PropertyMetadata.cs
- MediaSystem.cs
- TdsParserStateObject.cs
- IdentityManager.cs
- SymmetricKey.cs
- ImageButton.cs
- DoWorkEventArgs.cs
- TextElementEnumerator.cs
- FixedSOMGroup.cs
- _LocalDataStoreMgr.cs
- SiteMapHierarchicalDataSourceView.cs
- PropertyGrid.cs
- Int64Storage.cs
- SourceCollection.cs
- ConfigurationElementCollection.cs
- DefaultPerformanceCounters.cs
- XmlResolver.cs
- DefinitionBase.cs
- TextRenderingModeValidation.cs
- DoubleConverter.cs
- StandardMenuStripVerb.cs