Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / Security / Cryptography / AsymmetricSignatureDeformatter.cs / 1 / AsymmetricSignatureDeformatter.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // // AsymmetricSignatureDeformatter.cs // namespace System.Security.Cryptography { using System.Security; using System; [System.Runtime.InteropServices.ComVisible(true)] public abstract class AsymmetricSignatureDeformatter { // // protected constructors // protected AsymmetricSignatureDeformatter() { } // // public methods // abstract public void SetKey(AsymmetricAlgorithm key); abstract public void SetHashAlgorithm(String strName); public virtual bool VerifySignature(HashAlgorithm hash, byte[] rgbSignature) { if (hash == null) throw new ArgumentNullException("hash"); SetHashAlgorithm(hash.ToString()); return VerifySignature(hash.Hash, rgbSignature); } abstract public bool VerifySignature(byte[] rgbHash, byte[] rgbSignature); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // // AsymmetricSignatureDeformatter.cs // namespace System.Security.Cryptography { using System.Security; using System; [System.Runtime.InteropServices.ComVisible(true)] public abstract class AsymmetricSignatureDeformatter { // // protected constructors // protected AsymmetricSignatureDeformatter() { } // // public methods // abstract public void SetKey(AsymmetricAlgorithm key); abstract public void SetHashAlgorithm(String strName); public virtual bool VerifySignature(HashAlgorithm hash, byte[] rgbSignature) { if (hash == null) throw new ArgumentNullException("hash"); SetHashAlgorithm(hash.ToString()); return VerifySignature(hash.Hash, rgbSignature); } abstract public bool VerifySignature(byte[] rgbHash, byte[] rgbSignature); } } // 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
- NameTable.cs
- CorrelationManager.cs
- LongAverageAggregationOperator.cs
- URL.cs
- metrodevice.cs
- WorkflowPageSetupDialog.cs
- SSmlParser.cs
- Screen.cs
- DownloadProgressEventArgs.cs
- AsyncPostBackErrorEventArgs.cs
- HealthMonitoringSection.cs
- CheckPair.cs
- StructuredTypeEmitter.cs
- ZipIOExtraFieldZip64Element.cs
- DbConnectionStringBuilder.cs
- HtmlShim.cs
- ADMembershipProvider.cs
- DefaultTraceListener.cs
- RectAnimation.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- TextEffect.cs
- TreeNodeMouseHoverEvent.cs
- InfoCardCryptoHelper.cs
- ExportOptions.cs
- UserNamePasswordValidator.cs
- LingerOption.cs
- TextCompositionEventArgs.cs
- AttributedMetaModel.cs
- ComPlusInstanceProvider.cs
- ChineseLunisolarCalendar.cs
- OleDbConnectionFactory.cs
- HandledEventArgs.cs
- XPathMultyIterator.cs
- ListItemCollection.cs
- MessageDecoder.cs
- TimeoutException.cs
- ProxySimple.cs
- Point3D.cs
- MouseGestureConverter.cs
- DataControlImageButton.cs
- SelectionProcessor.cs
- ParentUndoUnit.cs
- LineMetrics.cs
- ResourceAttributes.cs
- SelectedDatesCollection.cs
- WpfGeneratedKnownProperties.cs
- GatewayDefinition.cs
- CacheDependency.cs
- WebBrowsableAttribute.cs
- BuildManager.cs
- AsyncCallback.cs
- WeakReference.cs
- TextLineBreak.cs
- AddingNewEventArgs.cs
- RSACryptoServiceProvider.cs
- ValidationResult.cs
- SafeEventLogReadHandle.cs
- StringTraceRecord.cs
- remotingproxy.cs
- RedistVersionInfo.cs
- TrustLevel.cs
- APCustomTypeDescriptor.cs
- OdbcStatementHandle.cs
- ReturnType.cs
- ColumnPropertiesGroup.cs
- SqlClientFactory.cs
- PenThreadPool.cs
- MethodCallTranslator.cs
- SqlDataAdapter.cs
- EndpointInfoCollection.cs
- HtmlCommandAdapter.cs
- ConditionalExpression.cs
- TabControlEvent.cs
- GenerateHelper.cs
- HostingPreferredMapPath.cs
- StatusStrip.cs
- ColorPalette.cs
- SourceFileBuildProvider.cs
- ServiceOperationListItemList.cs
- XmlSchemaSimpleContentRestriction.cs
- SqlFunctions.cs
- WindowsListViewGroupSubsetLink.cs
- CompressionTransform.cs
- SafeHandle.cs
- DrawingVisualDrawingContext.cs
- BindingBase.cs
- VirtualDirectoryMapping.cs
- AppDomainProtocolHandler.cs
- EdmEntityTypeAttribute.cs
- AsymmetricKeyExchangeFormatter.cs
- UnsafeNativeMethods.cs
- PieceNameHelper.cs
- MDIControlStrip.cs
- RemoteWebConfigurationHostStream.cs
- MessageBox.cs
- ListViewCommandEventArgs.cs
- DrawingContext.cs
- SurrogateEncoder.cs
- WorkflowCompensationBehavior.cs
- BindingsCollection.cs