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
- Group.cs
- TypeViewSchema.cs
- XmlDigitalSignatureProcessor.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- ReachDocumentSequenceSerializer.cs
- WindowsTitleBar.cs
- StackBuilderSink.cs
- StaticContext.cs
- DatePickerTextBox.cs
- UnmanagedMarshal.cs
- NameObjectCollectionBase.cs
- ResourceSetExpression.cs
- ServiceChannelManager.cs
- path.cs
- TextElementCollection.cs
- MemoryMappedFileSecurity.cs
- ConnectionsZoneDesigner.cs
- regiisutil.cs
- CompilerWrapper.cs
- SyncOperationState.cs
- TextTreeDeleteContentUndoUnit.cs
- TextEffectResolver.cs
- StringValidator.cs
- ByteArrayHelperWithString.cs
- ArrangedElement.cs
- CDSCollectionETWBCLProvider.cs
- ContextMenuStrip.cs
- FontFamily.cs
- Command.cs
- HttpCacheVaryByContentEncodings.cs
- FamilyMapCollection.cs
- _IPv4Address.cs
- _TimerThread.cs
- ValueChangedEventManager.cs
- AutoResizedEvent.cs
- XamlTypeMapper.cs
- ChangeConflicts.cs
- TypedReference.cs
- TableHeaderCell.cs
- OrderingExpression.cs
- OutputCacheProfileCollection.cs
- WindowsAuthenticationModule.cs
- hebrewshape.cs
- InfoCardSymmetricAlgorithm.cs
- PaperSource.cs
- MergablePropertyAttribute.cs
- DataGridItemAutomationPeer.cs
- CfgParser.cs
- ParentUndoUnit.cs
- AbandonedMutexException.cs
- MembershipValidatePasswordEventArgs.cs
- MimeXmlReflector.cs
- HwndSourceKeyboardInputSite.cs
- ResourceReferenceExpressionConverter.cs
- RenderContext.cs
- InvalidTimeZoneException.cs
- SupportsEventValidationAttribute.cs
- streamingZipPartStream.cs
- CodeVariableReferenceExpression.cs
- NullableIntMinMaxAggregationOperator.cs
- CompiledXpathExpr.cs
- ExpressionParser.cs
- ScriptRef.cs
- TextTreeTextElementNode.cs
- ResolvedKeyFrameEntry.cs
- StorageEntityContainerMapping.cs
- GlyphInfoList.cs
- DateTimeConstantAttribute.cs
- DataComponentNameHandler.cs
- HandlerFactoryCache.cs
- PageContentAsyncResult.cs
- ColumnWidthChangingEvent.cs
- IpcServerChannel.cs
- OpenFileDialog.cs
- ToolStripLocationCancelEventArgs.cs
- XmlReaderDelegator.cs
- sqlstateclientmanager.cs
- BitmapFrame.cs
- WorkflowMarkupSerializationProvider.cs
- MemberInfoSerializationHolder.cs
- BulletedList.cs
- PinnedBufferMemoryStream.cs
- DescendantQuery.cs
- MetadataHelper.cs
- SQLMoneyStorage.cs
- Point3D.cs
- LookupBindingPropertiesAttribute.cs
- DeflateEmulationStream.cs
- CancelAsyncOperationRequest.cs
- Debugger.cs
- PathTooLongException.cs
- DetailsViewCommandEventArgs.cs
- _ScatterGatherBuffers.cs
- ThumbAutomationPeer.cs
- QEncodedStream.cs
- SynchronizedDisposablePool.cs
- StandardOleMarshalObject.cs
- WindowsFormsSectionHandler.cs
- SetIterators.cs
- TextServicesDisplayAttribute.cs