Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Drawing.cs
- SiteMapHierarchicalDataSourceView.cs
- DummyDataSource.cs
- Button.cs
- ValidatorUtils.cs
- CrossSiteScriptingValidation.cs
- RadioButtonBaseAdapter.cs
- PropertyInformation.cs
- MissingManifestResourceException.cs
- CharUnicodeInfo.cs
- SchemaImporterExtension.cs
- HMACSHA384.cs
- URLString.cs
- XPathException.cs
- XmlNodeChangedEventManager.cs
- ConstraintConverter.cs
- EntityDesignerBuildProvider.cs
- XmlCountingReader.cs
- CacheAxisQuery.cs
- StrokeNodeData.cs
- ImageMap.cs
- QueryContinueDragEventArgs.cs
- DataGridViewLinkColumn.cs
- MatrixTransform3D.cs
- ThousandthOfEmRealDoubles.cs
- PropertyValidationContext.cs
- HandoffBehavior.cs
- CommittableTransaction.cs
- SafeWaitHandle.cs
- ListViewTableRow.cs
- SqlParameterCollection.cs
- CommonProperties.cs
- CapiHashAlgorithm.cs
- TextBox.cs
- SerTrace.cs
- OpCodes.cs
- SystemResources.cs
- ProviderSettings.cs
- ImageMetadata.cs
- BasePropertyDescriptor.cs
- ByteAnimationUsingKeyFrames.cs
- VisualStyleInformation.cs
- SqlDependencyUtils.cs
- HiddenFieldPageStatePersister.cs
- KeyboardDevice.cs
- OuterGlowBitmapEffect.cs
- FlowSwitchLink.cs
- EventHandlerService.cs
- PrePrepareMethodAttribute.cs
- WebCategoryAttribute.cs
- _NTAuthentication.cs
- ServiceModelInstallComponent.cs
- ProxyElement.cs
- Registry.cs
- XhtmlBasicImageAdapter.cs
- LinqTreeNodeEvaluator.cs
- Group.cs
- RestHandler.cs
- Stack.cs
- SupportingTokenSpecification.cs
- WindowsAuthenticationModule.cs
- CollectionViewProxy.cs
- BrowserCapabilitiesCompiler.cs
- QueueProcessor.cs
- Mouse.cs
- TokenDescriptor.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- AuthenticationModuleElementCollection.cs
- GroupItem.cs
- ContentControl.cs
- TransferRequestHandler.cs
- ServiceReflector.cs
- DesignerToolboxInfo.cs
- XmlEntityReference.cs
- FormViewUpdateEventArgs.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- DetailsViewDeletedEventArgs.cs
- XmlSchemaGroupRef.cs
- ToolStripLabel.cs
- SmtpReplyReader.cs
- SingletonConnectionReader.cs
- NetworkInterface.cs
- OnOperation.cs
- PointLightBase.cs
- Window.cs
- TemplateComponentConnector.cs
- StreamUpgradeInitiator.cs
- WSSecurityTokenSerializer.cs
- RemoteWebConfigurationHostServer.cs
- _ListenerAsyncResult.cs
- LocationUpdates.cs
- Stream.cs
- ErrorWebPart.cs
- CellRelation.cs
- ToolStripDropDownButton.cs
- StylusLogic.cs
- MetadataPropertyCollection.cs
- SingleResultAttribute.cs
- SID.cs
- ZipIOFileItemStream.cs