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
- HtmlControlAdapter.cs
- StateItem.cs
- TargetFrameworkAttribute.cs
- ImageField.cs
- TextReader.cs
- InheritanceContextChangedEventManager.cs
- RijndaelManagedTransform.cs
- ListControlConvertEventArgs.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ResourceContainer.cs
- AssemblyBuilderData.cs
- GeneralTransform3DCollection.cs
- FontFamilyValueSerializer.cs
- OrderPreservingSpoolingTask.cs
- SliderAutomationPeer.cs
- TransformProviderWrapper.cs
- DataContract.cs
- InstanceLockLostException.cs
- NameValueSectionHandler.cs
- AutoResetEvent.cs
- ListViewTableRow.cs
- CustomTokenProvider.cs
- BitmapDecoder.cs
- ControlBuilderAttribute.cs
- ActivityDesignerAccessibleObject.cs
- CapabilitiesState.cs
- TimelineCollection.cs
- MethodImplAttribute.cs
- SkipStoryboardToFill.cs
- DBBindings.cs
- HtmlContainerControl.cs
- MsmqInputChannelListenerBase.cs
- EntityDataSourceColumn.cs
- ServiceDescriptionImporter.cs
- PlanCompilerUtil.cs
- AnchoredBlock.cs
- SplitterEvent.cs
- HeaderUtility.cs
- WindowsEditBox.cs
- MembershipUser.cs
- URI.cs
- AuthenticatedStream.cs
- AmbientValueAttribute.cs
- ExpressionBuilderContext.cs
- CompiledIdentityConstraint.cs
- ObjectQueryExecutionPlan.cs
- FigureParagraph.cs
- TaskFormBase.cs
- PartialCachingControl.cs
- FormsAuthenticationCredentials.cs
- StorageScalarPropertyMapping.cs
- QuotedPairReader.cs
- PropertyGridView.cs
- IssuedTokenParametersEndpointAddressElement.cs
- QilUnary.cs
- StringUtil.cs
- EditBehavior.cs
- CodeArrayCreateExpression.cs
- SizeF.cs
- CompilationLock.cs
- WebRequestModuleElement.cs
- TokenBasedSetEnumerator.cs
- FrameworkEventSource.cs
- MethodBuilder.cs
- documentsequencetextpointer.cs
- BamlMapTable.cs
- OrthographicCamera.cs
- MenuBindingsEditorForm.cs
- securitycriticaldata.cs
- TypeDependencyAttribute.cs
- SpellerError.cs
- WebBrowserEvent.cs
- XhtmlBasicTextBoxAdapter.cs
- KnowledgeBase.cs
- LogicalExpressionTypeConverter.cs
- PropagatorResult.cs
- CollectionBase.cs
- SqlUDTStorage.cs
- WinEventHandler.cs
- DoWorkEventArgs.cs
- LinkLabel.cs
- PropertyValueUIItem.cs
- NativeRightsManagementAPIsStructures.cs
- JavaScriptObjectDeserializer.cs
- Convert.cs
- srgsitem.cs
- RsaKeyIdentifierClause.cs
- BrushProxy.cs
- WindowsIPAddress.cs
- Timer.cs
- ThemeInfoAttribute.cs
- PointKeyFrameCollection.cs
- CodeIndexerExpression.cs
- ByteConverter.cs
- ObjectDataSourceDisposingEventArgs.cs
- HtmlMeta.cs
- EntityParameterCollection.cs
- TextStore.cs
- CuspData.cs
- FieldToken.cs