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
- XhtmlStyleClass.cs
- OracleRowUpdatingEventArgs.cs
- ExpressionBindingCollection.cs
- ResourceReader.cs
- DtdParser.cs
- BindingCompleteEventArgs.cs
- SqlTypesSchemaImporter.cs
- PagesChangedEventArgs.cs
- ItemsControlAutomationPeer.cs
- CodeCastExpression.cs
- QueryCacheKey.cs
- CodeTypeParameterCollection.cs
- TrackingDataItem.cs
- LineProperties.cs
- Opcode.cs
- HtmlControlPersistable.cs
- DataSysAttribute.cs
- DiscoveryDocumentSearchPattern.cs
- DBSqlParserTableCollection.cs
- LayoutSettings.cs
- LazyTextWriterCreator.cs
- SafeSerializationManager.cs
- SQLInt16.cs
- ObjectContextServiceProvider.cs
- SettingsAttributeDictionary.cs
- SqlRetyper.cs
- AttributeEmitter.cs
- TextEndOfParagraph.cs
- HtmlControlPersistable.cs
- OdbcDataReader.cs
- Vars.cs
- XmlILAnnotation.cs
- TypeConverterHelper.cs
- _NestedMultipleAsyncResult.cs
- TreeViewBindingsEditorForm.cs
- ConnectorDragDropGlyph.cs
- DataGridTextBoxColumn.cs
- ShaperBuffers.cs
- BindingList.cs
- XmlMapping.cs
- METAHEADER.cs
- Exceptions.cs
- DataGridViewRowPrePaintEventArgs.cs
- ParameterEditorUserControl.cs
- IDReferencePropertyAttribute.cs
- EdmType.cs
- RuleSettingsCollection.cs
- CrossContextChannel.cs
- GeometryValueSerializer.cs
- DesigntimeLicenseContext.cs
- EdmTypeAttribute.cs
- DataTemplateKey.cs
- MergeLocalizationDirectives.cs
- QuotedPrintableStream.cs
- JsonByteArrayDataContract.cs
- CAGDesigner.cs
- WebErrorHandler.cs
- SqlUDTStorage.cs
- BinaryFormatter.cs
- MimeBasePart.cs
- IgnoreDeviceFilterElementCollection.cs
- SafeNativeMethods.cs
- PeerCredentialElement.cs
- AccessDataSourceView.cs
- _LazyAsyncResult.cs
- ParentUndoUnit.cs
- SemanticResultKey.cs
- CreateInstanceBinder.cs
- CodeCompiler.cs
- X509CertificateTokenFactoryCredential.cs
- AsyncDataRequest.cs
- Rules.cs
- DrawToolTipEventArgs.cs
- XPathParser.cs
- TextRangeEditLists.cs
- EventEntry.cs
- SessionParameter.cs
- DropShadowBitmapEffect.cs
- CurrentChangingEventArgs.cs
- AuthenticationException.cs
- PageBuildProvider.cs
- GroupDescription.cs
- UntrustedRecipientException.cs
- DependencyPropertyConverter.cs
- Expander.cs
- FormattedText.cs
- PageCodeDomTreeGenerator.cs
- PersianCalendar.cs
- WebPartConnectionsCancelVerb.cs
- Popup.cs
- WorkflowTransactionOptions.cs
- ReflectTypeDescriptionProvider.cs
- Stroke2.cs
- ClientTargetCollection.cs
- Item.cs
- NavigatorInvalidBodyAccessException.cs
- Validator.cs
- ExecutionEngineException.cs
- documentsequencetextcontainer.cs
- MetadataCache.cs