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
- PipelineComponent.cs
- ActiveXHost.cs
- CodeTypeOfExpression.cs
- DaylightTime.cs
- RegexNode.cs
- FontWeightConverter.cs
- Canvas.cs
- AnimatedTypeHelpers.cs
- ApplicationSecurityManager.cs
- TextFormatterImp.cs
- QualificationDataAttribute.cs
- InkCanvasSelectionAdorner.cs
- OleDbParameter.cs
- SymmetricAlgorithm.cs
- AsyncContentLoadedEventArgs.cs
- ScriptReferenceEventArgs.cs
- SchemaObjectWriter.cs
- CacheSection.cs
- SmiConnection.cs
- SecurityTokenResolver.cs
- DesignerCategoryAttribute.cs
- ActivationArguments.cs
- ViewManager.cs
- IChannel.cs
- InfoCardBaseException.cs
- KeyTime.cs
- HtmlEmptyTagControlBuilder.cs
- List.cs
- FontStretch.cs
- RectConverter.cs
- SkinBuilder.cs
- TextWriterTraceListener.cs
- TreeView.cs
- HyperLinkStyle.cs
- CapabilitiesState.cs
- AbstractSvcMapFileLoader.cs
- FontNameConverter.cs
- ExpressionBuilder.cs
- EventPropertyMap.cs
- MsmqInputMessage.cs
- TransformerInfoCollection.cs
- BmpBitmapEncoder.cs
- AndCondition.cs
- PartialList.cs
- CodeFieldReferenceExpression.cs
- IconConverter.cs
- WebPartCollection.cs
- SafeSystemMetrics.cs
- BulletChrome.cs
- ExtendedTransformFactory.cs
- RuntimeCompatibilityAttribute.cs
- SQLGuidStorage.cs
- DataGridViewRowsAddedEventArgs.cs
- JournalEntryStack.cs
- WsatAdminException.cs
- BamlLocalizableResourceKey.cs
- SendingRequestEventArgs.cs
- WorkflowOperationBehavior.cs
- TagElement.cs
- ProxyGenerationError.cs
- VoiceChangeEventArgs.cs
- GridItem.cs
- TextBox.cs
- SmtpFailedRecipientsException.cs
- PriorityBindingExpression.cs
- BrowserCapabilitiesFactory.cs
- PerformanceCounter.cs
- GridItemPatternIdentifiers.cs
- EventLogTraceListener.cs
- _UriSyntax.cs
- AccessDataSourceDesigner.cs
- IisTraceWebEventProvider.cs
- FormViewDeleteEventArgs.cs
- AccessedThroughPropertyAttribute.cs
- ContentType.cs
- SafeHGlobalHandleCritical.cs
- ColumnClickEvent.cs
- QuotedStringWriteStateInfo.cs
- DesignTimeTemplateParser.cs
- NumberFormatInfo.cs
- Point.cs
- CreateParams.cs
- TableRowCollection.cs
- ToolStripItem.cs
- DbReferenceCollection.cs
- VisualBrush.cs
- WebPartTransformerCollection.cs
- EntryPointNotFoundException.cs
- DataGridViewCellStyleConverter.cs
- DesignerAttribute.cs
- SymmetricCryptoHandle.cs
- Rotation3DAnimation.cs
- BStrWrapper.cs
- DBNull.cs
- Utils.cs
- MultipleViewProviderWrapper.cs
- SpecularMaterial.cs
- ConstrainedDataObject.cs
- SafeCryptoKeyHandle.cs
- SqlMethods.cs