Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Security / Cryptography / AsymmetricSignatureFormatter.cs / 1305376 / AsymmetricSignatureFormatter.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //[....] // // // AsymmetricSignatureFormatter.cs // namespace System.Security.Cryptography { using System; using System.Diagnostics.Contracts; [System.Runtime.InteropServices.ComVisible(true)] public abstract class AsymmetricSignatureFormatter { // // protected constructors // protected AsymmetricSignatureFormatter() { } // // public methods // abstract public void SetKey(AsymmetricAlgorithm key); abstract public void SetHashAlgorithm(String strName); public virtual byte[] CreateSignature(HashAlgorithm hash) { if (hash == null) throw new ArgumentNullException("hash"); Contract.EndContractBlock(); SetHashAlgorithm(hash.ToString()); return CreateSignature(hash.Hash); } abstract public byte[] CreateSignature(byte[] rgbHash); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //[....] // // // AsymmetricSignatureFormatter.cs // namespace System.Security.Cryptography { using System; using System.Diagnostics.Contracts; [System.Runtime.InteropServices.ComVisible(true)] public abstract class AsymmetricSignatureFormatter { // // protected constructors // protected AsymmetricSignatureFormatter() { } // // public methods // abstract public void SetKey(AsymmetricAlgorithm key); abstract public void SetHashAlgorithm(String strName); public virtual byte[] CreateSignature(HashAlgorithm hash) { if (hash == null) throw new ArgumentNullException("hash"); Contract.EndContractBlock(); SetHashAlgorithm(hash.ToString()); return CreateSignature(hash.Hash); } abstract public byte[] CreateSignature(byte[] rgbHash); } } // 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
- ModuleBuilder.cs
- DataDesignUtil.cs
- Panel.cs
- CodePageEncoding.cs
- PolicyStatement.cs
- InternalResources.cs
- PageBuildProvider.cs
- xmlglyphRunInfo.cs
- StatusBarDrawItemEvent.cs
- WebPartsPersonalization.cs
- _FtpDataStream.cs
- XmlSchemaInfo.cs
- SqlDependencyUtils.cs
- MimeObjectFactory.cs
- TextServicesLoader.cs
- TextChangedEventArgs.cs
- XmlTextWriter.cs
- CredentialCache.cs
- PagePropertiesChangingEventArgs.cs
- XmlHierarchicalDataSourceView.cs
- DocumentViewerBase.cs
- EmptyEnumerator.cs
- SparseMemoryStream.cs
- InstanceBehavior.cs
- TimeStampChecker.cs
- LoginName.cs
- AdapterUtil.cs
- AutoScrollHelper.cs
- ConfigPathUtility.cs
- PathSegment.cs
- HtmlFormParameterReader.cs
- WindowsBrush.cs
- SapiInterop.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- TextParagraphView.cs
- PreProcessInputEventArgs.cs
- CellLabel.cs
- WebPartDescription.cs
- CSharpCodeProvider.cs
- XdrBuilder.cs
- IIS7UserPrincipal.cs
- AuthenticationException.cs
- ListBindableAttribute.cs
- StateDesigner.Layouts.cs
- Label.cs
- DataGridViewCellParsingEventArgs.cs
- DefaultValueAttribute.cs
- AccessKeyManager.cs
- TeredoHelper.cs
- TextEditorSelection.cs
- ProcessHostFactoryHelper.cs
- InputProviderSite.cs
- ArraySegment.cs
- CodeGotoStatement.cs
- Activator.cs
- EventMap.cs
- CompleteWizardStep.cs
- EntityDataSourceStatementEditorForm.cs
- HierarchicalDataBoundControl.cs
- HasCopySemanticsAttribute.cs
- LayeredChannelListener.cs
- CodeStatementCollection.cs
- Rfc2898DeriveBytes.cs
- BaseDataList.cs
- OutOfMemoryException.cs
- OpCellTreeNode.cs
- EllipseGeometry.cs
- Span.cs
- ILGenerator.cs
- BasicDesignerLoader.cs
- Propagator.Evaluator.cs
- DialogResultConverter.cs
- BmpBitmapDecoder.cs
- SafeNativeMemoryHandle.cs
- Properties.cs
- StringComparer.cs
- GridViewUpdatedEventArgs.cs
- ExtendedProtectionPolicyTypeConverter.cs
- X509ThumbprintKeyIdentifierClause.cs
- IdlingCommunicationPool.cs
- BindingContext.cs
- ConcurrentDictionary.cs
- WindowsTokenRoleProvider.cs
- FieldToken.cs
- ProgressChangedEventArgs.cs
- DataObjectFieldAttribute.cs
- TextBoxRenderer.cs
- XsdDuration.cs
- IPEndPoint.cs
- HiddenFieldPageStatePersister.cs
- ProjectionPathBuilder.cs
- ProcessInfo.cs
- CompositeControl.cs
- LongTypeConverter.cs
- _SslSessionsCache.cs
- Lasso.cs
- ImageAttributes.cs
- PathTooLongException.cs
- LassoSelectionBehavior.cs
- SocketException.cs