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
- TreeNodeMouseHoverEvent.cs
- Types.cs
- PermissionSet.cs
- VirtualPathUtility.cs
- EntitySqlQueryCacheEntry.cs
- DataGridViewCellParsingEventArgs.cs
- XmlCountingReader.cs
- XmlSiteMapProvider.cs
- __Filters.cs
- indexingfiltermarshaler.cs
- SemanticTag.cs
- JoinSymbol.cs
- ProxyGenerationError.cs
- DataRecord.cs
- ProtocolsConfigurationEntry.cs
- PropertyValue.cs
- DataTableReader.cs
- DeviceOverridableAttribute.cs
- DocumentXmlWriter.cs
- SharedConnectionListener.cs
- Viewport3DAutomationPeer.cs
- OracleLob.cs
- TableCellCollection.cs
- LogStream.cs
- DesignOnlyAttribute.cs
- MatrixTransform.cs
- Stacktrace.cs
- TextTreeTextNode.cs
- RegexRunner.cs
- PipeStream.cs
- HttpVersion.cs
- AliasedSlot.cs
- MarkupObject.cs
- WizardStepBase.cs
- CalendarAutomationPeer.cs
- LinqTreeNodeEvaluator.cs
- Attributes.cs
- FileLoadException.cs
- DataBoundControlHelper.cs
- GradientStop.cs
- TiffBitmapEncoder.cs
- Soap12ServerProtocol.cs
- PathFigure.cs
- SoapReflectionImporter.cs
- IListConverters.cs
- EntityDesignerDataSourceView.cs
- InvalidCastException.cs
- XamlRtfConverter.cs
- MD5CryptoServiceProvider.cs
- TypeSystem.cs
- DbConnectionOptions.cs
- PersonalizationProviderCollection.cs
- ParameterBuilder.cs
- DataRowCollection.cs
- StorageConditionPropertyMapping.cs
- FileSecurity.cs
- Timer.cs
- XmlReflectionMember.cs
- PropertyGridCommands.cs
- StrongNameUtility.cs
- XmlBoundElement.cs
- ObfuscationAttribute.cs
- OrderedEnumerableRowCollection.cs
- OutputCacheModule.cs
- FontFaceLayoutInfo.cs
- DetailsViewRowCollection.cs
- WebConfigurationHostFileChange.cs
- XmlReflectionImporter.cs
- DataKey.cs
- RectangleGeometry.cs
- SqlStream.cs
- File.cs
- AnnotationResourceChangedEventArgs.cs
- DBCommandBuilder.cs
- Point3DKeyFrameCollection.cs
- ProcessThreadCollection.cs
- CorrelationService.cs
- PerformanceCounterPermissionEntryCollection.cs
- AppDomainFactory.cs
- PermissionSetTriple.cs
- AxDesigner.cs
- TextEditorParagraphs.cs
- AsmxEndpointPickerExtension.cs
- HtmlLink.cs
- DeferrableContent.cs
- NamespaceExpr.cs
- FormViewInsertEventArgs.cs
- ConfigurationValidatorBase.cs
- TransactionManager.cs
- Literal.cs
- GlyphTypeface.cs
- SqlDataSourceSelectingEventArgs.cs
- UnsafeNativeMethods.cs
- Authorization.cs
- CodeArrayCreateExpression.cs
- HttpCachePolicyElement.cs
- TextDecorationCollectionConverter.cs
- PropertyPath.cs
- ActivatableWorkflowsQueryResult.cs
- DiscreteKeyFrames.cs