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
- TextBox.cs
- JsonFormatGeneratorStatics.cs
- Int64AnimationUsingKeyFrames.cs
- CodeDomConfigurationHandler.cs
- Rect3D.cs
- DuplicateMessageDetector.cs
- FlowPosition.cs
- DecimalKeyFrameCollection.cs
- CacheVirtualItemsEvent.cs
- NativeMethods.cs
- SchemaElementDecl.cs
- StreamUpgradeBindingElement.cs
- QueryRewriter.cs
- FrameworkPropertyMetadata.cs
- ErrorsHelper.cs
- xml.cs
- CryptoApi.cs
- IconBitmapDecoder.cs
- ManifestBasedResourceGroveler.cs
- BuildProviderCollection.cs
- MemberJoinTreeNode.cs
- NativeMethods.cs
- TextServicesProperty.cs
- TypeReference.cs
- XPathExpr.cs
- EmptyEnumerator.cs
- EditingMode.cs
- MenuItemBinding.cs
- AtlasWeb.Designer.cs
- GACIdentityPermission.cs
- SizeF.cs
- contentDescriptor.cs
- BinaryObjectReader.cs
- HttpWebRequest.cs
- keycontainerpermission.cs
- PartBasedPackageProperties.cs
- CharConverter.cs
- ControlBuilderAttribute.cs
- ToolStripRendererSwitcher.cs
- ListChangedEventArgs.cs
- ProcessHost.cs
- BounceEase.cs
- ExeConfigurationFileMap.cs
- SqlTriggerAttribute.cs
- HtmlInputPassword.cs
- RegionIterator.cs
- XmlSchemaRedefine.cs
- CustomWebEventKey.cs
- WizardPanel.cs
- PropertyChangeTracker.cs
- HttpWriter.cs
- SiteMapNodeItem.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- KeyInstance.cs
- MetricEntry.cs
- ToolStripDropDownItem.cs
- DirectoryObjectSecurity.cs
- PropertyCondition.cs
- ConvertBinder.cs
- EntityContainerEmitter.cs
- ApplicationSettingsBase.cs
- ActivityBuilderHelper.cs
- WhiteSpaceTrimStringConverter.cs
- TagPrefixAttribute.cs
- SemanticResultKey.cs
- Int16Storage.cs
- IntegerValidator.cs
- ReadOnlyTernaryTree.cs
- TextFragmentEngine.cs
- StringOutput.cs
- Rotation3DAnimation.cs
- ConfigPathUtility.cs
- LineUtil.cs
- MobileTemplatedControlDesigner.cs
- DiscoveryService.cs
- DBParameter.cs
- documentation.cs
- Decimal.cs
- ColorMatrix.cs
- IndexedEnumerable.cs
- Animatable.cs
- OneOfTypeConst.cs
- CommandBindingCollection.cs
- Profiler.cs
- ConnectionStringsExpressionBuilder.cs
- XPathNodeIterator.cs
- Style.cs
- _OSSOCK.cs
- CodeSpit.cs
- ConfigurationException.cs
- NullExtension.cs
- ThreadInterruptedException.cs
- EmptyQuery.cs
- MembershipUser.cs
- DesignerInterfaces.cs
- ListChangedEventArgs.cs
- XamlUtilities.cs
- DataObject.cs
- NotificationContext.cs
- MultiTrigger.cs