Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Security / Cryptography / AsymmetricSignatureDeformatter.cs / 1305376 / AsymmetricSignatureDeformatter.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //[....] // // // AsymmetricSignatureDeformatter.cs // namespace System.Security.Cryptography { using System.Security; using System; using System.Diagnostics.Contracts; [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"); Contract.EndContractBlock(); 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; using System.Diagnostics.Contracts; [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"); Contract.EndContractBlock(); 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
- GradientStopCollection.cs
- Pen.cs
- Message.cs
- DragEventArgs.cs
- HyperLinkDataBindingHandler.cs
- RecognizerInfo.cs
- ScrollChangedEventArgs.cs
- SignatureDescription.cs
- UnsafeNativeMethods.cs
- EventPropertyMap.cs
- WebMessageEncodingElement.cs
- XmlEntity.cs
- ErrorHandler.cs
- FunctionCommandText.cs
- FormsAuthenticationEventArgs.cs
- PageRouteHandler.cs
- ObjectDisposedException.cs
- Vector3DConverter.cs
- CodePageEncoding.cs
- Opcode.cs
- Logging.cs
- TerminatorSinks.cs
- XmlSchemaComplexType.cs
- CustomAttributeFormatException.cs
- BitmapDownload.cs
- HttpListenerPrefixCollection.cs
- DesignerTransaction.cs
- FontInfo.cs
- EntityViewGenerator.cs
- DependencyPropertyChangedEventArgs.cs
- CapabilitiesUse.cs
- DataBindingValueUIHandler.cs
- CompilerGlobalScopeAttribute.cs
- CommonXSendMessage.cs
- RuleSettingsCollection.cs
- DataGridrowEditEndingEventArgs.cs
- FontWeight.cs
- WebPartEventArgs.cs
- AssemblyBuilder.cs
- Int32.cs
- TextDecorationUnitValidation.cs
- HierarchicalDataBoundControlAdapter.cs
- ItemCollection.cs
- CurrentChangingEventManager.cs
- IDispatchConstantAttribute.cs
- SqlVersion.cs
- FlowLayoutPanelDesigner.cs
- DataGrid.cs
- Environment.cs
- Bold.cs
- Composition.cs
- PolygonHotSpot.cs
- SqlDataSourceFilteringEventArgs.cs
- Error.cs
- SBCSCodePageEncoding.cs
- XPathBinder.cs
- SelectorAutomationPeer.cs
- Privilege.cs
- XmlSchemaAnyAttribute.cs
- ThrowHelper.cs
- ReadOnlyDictionary.cs
- ReceiveParametersContent.cs
- Point4DValueSerializer.cs
- MessageSmuggler.cs
- Vector3DCollectionValueSerializer.cs
- RichTextBoxContextMenu.cs
- HyperLinkColumn.cs
- HandlerBase.cs
- ListViewGroup.cs
- CountdownEvent.cs
- QilInvokeLateBound.cs
- PeerNameRecordCollection.cs
- XslCompiledTransform.cs
- TokenizerHelper.cs
- OdbcConnectionHandle.cs
- ExecutionEngineException.cs
- ZipIOExtraFieldPaddingElement.cs
- ModifierKeysConverter.cs
- TypeForwardedToAttribute.cs
- Accessible.cs
- RequestNavigateEventArgs.cs
- AtomMaterializer.cs
- InputReferenceExpression.cs
- ExecutionTracker.cs
- WebBrowserDesigner.cs
- RepeatBehavior.cs
- Rect3D.cs
- TextBlock.cs
- XPathException.cs
- UniformGrid.cs
- ServiceDocumentFormatter.cs
- BufferCache.cs
- Vector.cs
- DrawingCollection.cs
- SHA384Managed.cs
- RawMouseInputReport.cs
- PostBackTrigger.cs
- SingleAnimationUsingKeyFrames.cs
- IncrementalCompileAnalyzer.cs
- X509Extension.cs