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
- Helper.cs
- DependencySource.cs
- TableProviderWrapper.cs
- XmlSchemaAnnotation.cs
- WebServiceMethodData.cs
- mediaeventshelper.cs
- BooleanStorage.cs
- ApplicationManager.cs
- IisHelper.cs
- WebBrowserPermission.cs
- CheckBox.cs
- AttributeSetAction.cs
- TargetControlTypeAttribute.cs
- SiteMapDataSourceView.cs
- ProxySimple.cs
- PanelStyle.cs
- AmbientLight.cs
- _SslSessionsCache.cs
- ResXFileRef.cs
- FileDialog.cs
- InfoCardArgumentException.cs
- TextureBrush.cs
- namescope.cs
- LineServicesCallbacks.cs
- EntitySqlQueryState.cs
- ConsoleCancelEventArgs.cs
- ColumnResizeAdorner.cs
- ToolStripItemEventArgs.cs
- PartialCachingControl.cs
- NavigatorOutput.cs
- ClientSettingsProvider.cs
- MenuItem.cs
- SettingsContext.cs
- TextViewElement.cs
- TagPrefixAttribute.cs
- EdmFunctionAttribute.cs
- WriteStateInfoBase.cs
- Variable.cs
- NotifyIcon.cs
- StateMachine.cs
- RtfControlWordInfo.cs
- DataGridItem.cs
- NavigationPropertyAccessor.cs
- UIElementAutomationPeer.cs
- RegisteredExpandoAttribute.cs
- WrappedOptions.cs
- SafeCryptContextHandle.cs
- Processor.cs
- CodeLabeledStatement.cs
- AnnotationStore.cs
- NetMsmqSecurityMode.cs
- NominalTypeEliminator.cs
- EntityViewGenerationAttribute.cs
- AutoScrollHelper.cs
- DocumentViewerBase.cs
- DockAndAnchorLayout.cs
- RenderCapability.cs
- IISMapPath.cs
- DbConnectionPoolIdentity.cs
- BitmapEffectGroup.cs
- ProtocolsSection.cs
- ProtocolsConfigurationEntry.cs
- XamlToRtfWriter.cs
- StorageInfo.cs
- AuthenticationServiceManager.cs
- DataSysAttribute.cs
- MetadataElement.cs
- EntityContainer.cs
- SecurityKeyType.cs
- SafeNativeMethods.cs
- DataSetUtil.cs
- SpeakInfo.cs
- PointAnimationUsingKeyFrames.cs
- RecordBuilder.cs
- SqlException.cs
- BitmapCodecInfo.cs
- FixedTextContainer.cs
- IssuanceTokenProviderState.cs
- AppDomainProtocolHandler.cs
- HashRepartitionEnumerator.cs
- SoapSchemaMember.cs
- DrawingContext.cs
- BamlResourceSerializer.cs
- CLRBindingWorker.cs
- SocketException.cs
- XmlSchemaAttribute.cs
- ServiceContractListItem.cs
- sqlcontext.cs
- BinHexDecoder.cs
- EntryPointNotFoundException.cs
- InkCanvasAutomationPeer.cs
- LinkGrep.cs
- CompilerWrapper.cs
- Stroke2.cs
- TextBox.cs
- EnumerableCollectionView.cs
- SystemColorTracker.cs
- ScrollPattern.cs
- DataPagerCommandEventArgs.cs
- MapPathBasedVirtualPathProvider.cs