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
- JumpList.cs
- StrokeSerializer.cs
- _ConnectStream.cs
- BaseTemplateBuildProvider.cs
- EncryptedKeyIdentifierClause.cs
- QueuePropertyVariants.cs
- CodeExporter.cs
- OleDbReferenceCollection.cs
- PresentationAppDomainManager.cs
- AncillaryOps.cs
- GlyphElement.cs
- SourceFileBuildProvider.cs
- StorageComplexPropertyMapping.cs
- XmlDataProvider.cs
- TabItemAutomationPeer.cs
- XmlCharCheckingWriter.cs
- SecurityContext.cs
- MaskInputRejectedEventArgs.cs
- TextTreeInsertUndoUnit.cs
- DBParameter.cs
- DbExpressionBuilder.cs
- ObjectItemNoOpAssemblyLoader.cs
- COM2PictureConverter.cs
- PropertyItem.cs
- RepeatButtonAutomationPeer.cs
- ConstraintConverter.cs
- Int16AnimationBase.cs
- DictationGrammar.cs
- GeneralTransformCollection.cs
- QueryableFilterRepeater.cs
- Attributes.cs
- WMIGenerator.cs
- ServiceOperationParameter.cs
- EntityObject.cs
- TriState.cs
- KoreanCalendar.cs
- Italic.cs
- LoadGrammarCompletedEventArgs.cs
- Section.cs
- CategoryList.cs
- LostFocusEventManager.cs
- WizardStepBase.cs
- RepeatBehavior.cs
- ViewSimplifier.cs
- MediaPlayerState.cs
- ApplicationProxyInternal.cs
- DbUpdateCommandTree.cs
- CategoryAttribute.cs
- TextRunTypographyProperties.cs
- SerialPort.cs
- EdmError.cs
- UIElement.cs
- TraceRecord.cs
- Graph.cs
- GenericParameterDataContract.cs
- Separator.cs
- ReachFixedPageSerializerAsync.cs
- DataGridViewTopLeftHeaderCell.cs
- SchemaNotation.cs
- EntityContainerEmitter.cs
- HMACSHA512.cs
- CustomErrorCollection.cs
- TrustManagerMoreInformation.cs
- CodeTypeReferenceCollection.cs
- StateChangeEvent.cs
- SqlRowUpdatedEvent.cs
- HandlerBase.cs
- GroupLabel.cs
- ProcessStartInfo.cs
- ThemeInfoAttribute.cs
- ImageSourceConverter.cs
- IisTraceListener.cs
- Globals.cs
- XmlSchemaCollection.cs
- UrlAuthFailureHandler.cs
- HuffModule.cs
- HighlightVisual.cs
- MetafileHeaderWmf.cs
- AudienceUriMode.cs
- String.cs
- XmlUnspecifiedAttribute.cs
- DataTableClearEvent.cs
- OleDbPermission.cs
- BookmarkList.cs
- SchemaElementLookUpTable.cs
- OracleConnectionStringBuilder.cs
- TextSearch.cs
- SQLInt32Storage.cs
- AppDomain.cs
- webeventbuffer.cs
- UniformGrid.cs
- DataGridViewCheckBoxCell.cs
- XmlCountingReader.cs
- OutputCacheSection.cs
- MenuItemStyleCollection.cs
- TargetParameterCountException.cs
- ServiceContractGenerationContext.cs
- ProviderCollection.cs
- DataContractJsonSerializerOperationBehavior.cs
- LinqDataSourceInsertEventArgs.cs