Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Security / Cryptography / AsymmetricSignatureDeformatter.cs / 1305376 / AsymmetricSignatureDeformatter.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //[....] // // // AsymmetricSignatureDeformatter.cs // namespace System.Security.Cryptography { using System.Security; using System; using System.Diagnostics.Contracts; [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"); Contract.EndContractBlock(); 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; using System.Diagnostics.Contracts; [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"); Contract.EndContractBlock(); 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
- GridEntryCollection.cs
- RayMeshGeometry3DHitTestResult.cs
- CacheMemory.cs
- AccessControlEntry.cs
- WebReferencesBuildProvider.cs
- CollectionContainer.cs
- DataBindingCollection.cs
- ParseNumbers.cs
- UIElementIsland.cs
- XmlFormatExtensionAttribute.cs
- StringResourceManager.cs
- DataControlCommands.cs
- HtmlFormWrapper.cs
- OneOfConst.cs
- DBCommand.cs
- RenderCapability.cs
- SafeThreadHandle.cs
- IncrementalHitTester.cs
- SerializerDescriptor.cs
- DataProtection.cs
- DBConnectionString.cs
- FlowDocumentPaginator.cs
- PermissionSetEnumerator.cs
- ByeMessageCD1.cs
- GradientStopCollection.cs
- DescendentsWalker.cs
- DataGrid.cs
- CodeTypeDeclarationCollection.cs
- DocumentCollection.cs
- XPathQilFactory.cs
- DataGridPageChangedEventArgs.cs
- MappingSource.cs
- HandlerWithFactory.cs
- CompModSwitches.cs
- DiscoveryDocumentSerializer.cs
- WebConfigurationHost.cs
- ToolStripPanelCell.cs
- FunctionDescription.cs
- StreamGeometryContext.cs
- AsymmetricAlgorithm.cs
- DataGridViewTopLeftHeaderCell.cs
- PropertyEmitterBase.cs
- RefreshEventArgs.cs
- COM2Properties.cs
- HtmlWindowCollection.cs
- RadioButtonBaseAdapter.cs
- ViewLoader.cs
- DecimalConstantAttribute.cs
- OutputCacheSettingsSection.cs
- CatalogZone.cs
- QilStrConcatenator.cs
- DiscoveryClientBindingElement.cs
- SecureConversationServiceElement.cs
- PublisherMembershipCondition.cs
- HybridWebProxyFinder.cs
- DataContext.cs
- VirtualPathProvider.cs
- ExpressionBuilderCollection.cs
- JoinSymbol.cs
- ProfileService.cs
- SignatureResourcePool.cs
- Path.cs
- ProgressBarAutomationPeer.cs
- CriticalHandle.cs
- SignedXml.cs
- PrePrepareMethodAttribute.cs
- VisualStyleRenderer.cs
- LinearGradientBrush.cs
- MasterPage.cs
- ZipIOFileItemStream.cs
- ArgumentsParser.cs
- PlainXmlSerializer.cs
- FixedBufferAttribute.cs
- NativeWindow.cs
- OdbcPermission.cs
- ModifierKeysConverter.cs
- _ContextAwareResult.cs
- StateBag.cs
- VectorCollectionConverter.cs
- ThreadPoolTaskScheduler.cs
- RemoteWebConfigurationHost.cs
- ErrorWebPart.cs
- AuthenticationManager.cs
- FolderBrowserDialog.cs
- DesignerDeviceConfig.cs
- TabletDeviceInfo.cs
- MenuItemCollection.cs
- XamlParser.cs
- ToolStripDesignerUtils.cs
- DrawingBrush.cs
- SourceChangedEventArgs.cs
- LinearGradientBrush.cs
- SchemaElementLookUpTable.cs
- IERequestCache.cs
- TargetParameterCountException.cs
- LogFlushAsyncResult.cs
- FixedDocumentPaginator.cs
- ScriptControlDescriptor.cs
- UIElement3D.cs
- ProfileEventArgs.cs