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
- ValidatorCompatibilityHelper.cs
- Italic.cs
- MSHTMLHostUtil.cs
- FileDataSourceCache.cs
- TextElementAutomationPeer.cs
- LocalFileSettingsProvider.cs
- EdmPropertyAttribute.cs
- VBCodeProvider.cs
- CustomErrorsSection.cs
- WebServiceHostFactory.cs
- ImmComposition.cs
- ReachDocumentPageSerializer.cs
- InkCollectionBehavior.cs
- CurrencyWrapper.cs
- ArrayListCollectionBase.cs
- CompositeActivityTypeDescriptorProvider.cs
- AppLevelCompilationSectionCache.cs
- DefaultValueTypeConverter.cs
- ScalarConstant.cs
- TargetConverter.cs
- SettingsProviderCollection.cs
- TransformGroup.cs
- NamespaceEmitter.cs
- ExtendedPropertyCollection.cs
- ChangesetResponse.cs
- ObjRef.cs
- ConfigurationManagerHelper.cs
- WorkflowMarkupSerializationManager.cs
- PreservationFileWriter.cs
- ConstNode.cs
- HttpEncoder.cs
- AutoGeneratedFieldProperties.cs
- IResourceProvider.cs
- AuthenticationServiceManager.cs
- RegexRunnerFactory.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- PhysicalOps.cs
- BindingsCollection.cs
- CompiledIdentityConstraint.cs
- CommandLineParser.cs
- DateTimeFormat.cs
- HtmlMeta.cs
- BitmapDecoder.cs
- wmiprovider.cs
- BuildDependencySet.cs
- XsdBuilder.cs
- TaskFileService.cs
- PackageDigitalSignature.cs
- TypeConverterHelper.cs
- ReferencedType.cs
- PanelStyle.cs
- ViewGenResults.cs
- DbDataRecord.cs
- StoragePropertyMapping.cs
- MobileSysDescriptionAttribute.cs
- DiffuseMaterial.cs
- HealthMonitoringSectionHelper.cs
- WebPartHelpVerb.cs
- ScriptReferenceBase.cs
- DataGridTextBox.cs
- GeneralTransform3DTo2DTo3D.cs
- odbcmetadatafactory.cs
- TransformedBitmap.cs
- DataRecordObjectView.cs
- FamilyTypeface.cs
- COM2IProvidePropertyBuilderHandler.cs
- ChangesetResponse.cs
- DoubleAnimationUsingPath.cs
- PermissionListSet.cs
- DataGridHeaderBorder.cs
- SafeBitVector32.cs
- SecureEnvironment.cs
- EventMemberCodeDomSerializer.cs
- PolyBezierSegmentFigureLogic.cs
- DataBoundLiteralControl.cs
- XmlTextEncoder.cs
- WebPartConnectVerb.cs
- ItemMap.cs
- BaseTemplateCodeDomTreeGenerator.cs
- ContentControl.cs
- ReflectionHelper.cs
- TextUtf8RawTextWriter.cs
- CalendarSelectionChangedEventArgs.cs
- CompressionTransform.cs
- DecoderExceptionFallback.cs
- NativeRightsManagementAPIsStructures.cs
- TextEndOfSegment.cs
- Touch.cs
- AssociationSetEnd.cs
- ControlValuePropertyAttribute.cs
- EventDrivenDesigner.cs
- TypeSystem.cs
- ValidatorAttribute.cs
- _DisconnectOverlappedAsyncResult.cs
- UndirectedGraph.cs
- ChangeTracker.cs
- DbConnectionPoolIdentity.cs
- KeyValueConfigurationCollection.cs
- Int64AnimationBase.cs
- SynchronousReceiveBehavior.cs