Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / clr / src / BCL / System / Security / Cryptography / AsymmetricSignatureFormatter.cs / 1 / AsymmetricSignatureFormatter.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // // AsymmetricSignatureFormatter.cs // namespace System.Security.Cryptography { using System; [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"); 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; [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"); 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
- Highlights.cs
- ColorConverter.cs
- DeclaredTypeElement.cs
- Debug.cs
- IdnMapping.cs
- Literal.cs
- ToolStripItemImageRenderEventArgs.cs
- DataRecord.cs
- AxHost.cs
- TagPrefixAttribute.cs
- FunctionMappingTranslator.cs
- UIElement3D.cs
- TreeIterator.cs
- DependencyObjectPropertyDescriptor.cs
- FacetValueContainer.cs
- TreeNodeClickEventArgs.cs
- NumberSubstitution.cs
- nulltextcontainer.cs
- TypeElement.cs
- BitmapEffectDrawing.cs
- UpDownBase.cs
- XmlKeywords.cs
- SqlUtils.cs
- WebPartEventArgs.cs
- WhitespaceRuleLookup.cs
- CacheSection.cs
- WebScriptMetadataMessageEncoderFactory.cs
- CodeMemberProperty.cs
- OutputCache.cs
- SByteConverter.cs
- TableLayoutPanelDesigner.cs
- CustomErrorCollection.cs
- InvalidOleVariantTypeException.cs
- FixedSchema.cs
- CellQuery.cs
- OpCopier.cs
- SchemaTableOptionalColumn.cs
- TimeoutValidationAttribute.cs
- GcSettings.cs
- ComponentTray.cs
- CustomWebEventKey.cs
- Workspace.cs
- RuntimeArgumentHandle.cs
- PenThreadPool.cs
- WebZone.cs
- MethodMessage.cs
- ErrorHandler.cs
- SelectedGridItemChangedEvent.cs
- TableLayoutColumnStyleCollection.cs
- InputLanguageCollection.cs
- KnownIds.cs
- _FixedSizeReader.cs
- UnsafeNativeMethods.cs
- remotingproxy.cs
- CssClassPropertyAttribute.cs
- ExpressionVisitor.cs
- OrderByLifter.cs
- EdmToObjectNamespaceMap.cs
- OleDbRowUpdatedEvent.cs
- SafeEventLogWriteHandle.cs
- ProcessStartInfo.cs
- ZoomPercentageConverter.cs
- ToolboxComponentsCreatedEventArgs.cs
- CompositeCollectionView.cs
- Font.cs
- TaskFactory.cs
- SafeNativeMethods.cs
- HttpRequestCacheValidator.cs
- SecureUICommand.cs
- AnonymousIdentificationModule.cs
- WebBrowserNavigatedEventHandler.cs
- TypeLibConverter.cs
- RightsManagementSuppressedStream.cs
- ObjectMemberMapping.cs
- ConnectionPointConverter.cs
- SplitContainer.cs
- GlobalizationAssembly.cs
- DefaultEventAttribute.cs
- RoutedEventArgs.cs
- NamespaceImport.cs
- AppSettingsExpressionBuilder.cs
- SystemFonts.cs
- DataSourceControl.cs
- InteropAutomationProvider.cs
- SystemPens.cs
- PrintPreviewControl.cs
- PagesSection.cs
- WindowsGraphicsWrapper.cs
- ResolveNameEventArgs.cs
- HandleCollector.cs
- AsyncDataRequest.cs
- WebPartCollection.cs
- StreamHelper.cs
- XmlSchemaType.cs
- HtmlInputButton.cs
- DPCustomTypeDescriptor.cs
- BinaryReader.cs
- MsmqIntegrationChannelListener.cs
- XmlAttribute.cs
- StorageTypeMapping.cs