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
- Baml2006ReaderSettings.cs
- HScrollProperties.cs
- StringFreezingAttribute.cs
- DrawingAttributesDefaultValueFactory.cs
- PasswordDeriveBytes.cs
- XPathNode.cs
- Selection.cs
- TypeConverterHelper.cs
- BindingGroup.cs
- XmlSchemaIdentityConstraint.cs
- ImageMapEventArgs.cs
- PrtCap_Public_Simple.cs
- AlternationConverter.cs
- ColumnReorderedEventArgs.cs
- XpsDocumentEvent.cs
- StorageAssociationSetMapping.cs
- PointCollectionValueSerializer.cs
- NamespaceCollection.cs
- DiagnosticsElement.cs
- FromReply.cs
- SecurityCookieModeValidator.cs
- DescendantQuery.cs
- Permission.cs
- DataViewListener.cs
- Timer.cs
- WebPartManager.cs
- DependsOnAttribute.cs
- RoutedEventHandlerInfo.cs
- BigInt.cs
- PromptEventArgs.cs
- DataTableClearEvent.cs
- DataGridViewRowHeaderCell.cs
- ItemCheckedEvent.cs
- Vector3DAnimationBase.cs
- ProviderException.cs
- SqlTypeConverter.cs
- MaterializeFromAtom.cs
- CharacterMetrics.cs
- PropertyConverter.cs
- BindingListCollectionView.cs
- Serializer.cs
- SponsorHelper.cs
- DependencyObjectProvider.cs
- RemotingConfiguration.cs
- PeerNameRecord.cs
- CustomError.cs
- NetworkInformationException.cs
- COMException.cs
- JsonWriter.cs
- MachineSettingsSection.cs
- SoapReflector.cs
- ProjectionCamera.cs
- CommonXSendMessage.cs
- Vector3DKeyFrameCollection.cs
- XmlAnyAttributeAttribute.cs
- ScriptReferenceBase.cs
- TemplateControlCodeDomTreeGenerator.cs
- ProcessInfo.cs
- ComponentResourceManager.cs
- Hash.cs
- MultiViewDesigner.cs
- PixelShader.cs
- IdentitySection.cs
- IDReferencePropertyAttribute.cs
- CodeGotoStatement.cs
- ActionItem.cs
- SynchronizationLockException.cs
- ReplyChannel.cs
- Clock.cs
- SchemaImporterExtensionsSection.cs
- GridItemCollection.cs
- SoapTypeAttribute.cs
- XmlSigningNodeWriter.cs
- BamlBinaryWriter.cs
- EncryptedType.cs
- ReflectionUtil.cs
- RequiredFieldValidator.cs
- Duration.cs
- CompositeScriptReference.cs
- StorageMappingFragment.cs
- DPAPIProtectedConfigurationProvider.cs
- CreateRefExpr.cs
- AsymmetricSecurityProtocolFactory.cs
- AttachedAnnotationChangedEventArgs.cs
- TargetConverter.cs
- ComAdminWrapper.cs
- Context.cs
- PromptEventArgs.cs
- TraceLevelHelper.cs
- ProfileGroupSettingsCollection.cs
- IISUnsafeMethods.cs
- AlternateViewCollection.cs
- XmlJsonWriter.cs
- BitArray.cs
- EntityConnectionStringBuilder.cs
- TransformerTypeCollection.cs
- DataGridViewCell.cs
- TextComposition.cs
- _SingleItemRequestCache.cs
- Vector3DValueSerializer.cs