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
- LinqDataSourceHelper.cs
- Section.cs
- TransformerInfoCollection.cs
- SrgsSemanticInterpretationTag.cs
- GridViewAutomationPeer.cs
- XmlReaderSettings.cs
- OdbcHandle.cs
- PropertySet.cs
- ReferencedCollectionType.cs
- WmlTextViewAdapter.cs
- UpdatePanel.cs
- ReferenceConverter.cs
- SystemNetHelpers.cs
- Vector3D.cs
- Separator.cs
- ReachPageContentCollectionSerializer.cs
- UnionCodeGroup.cs
- IndexObject.cs
- GeneratedCodeAttribute.cs
- TrackBarRenderer.cs
- X509Extension.cs
- ErrorReporting.cs
- InternalConfirm.cs
- SmiXetterAccessMap.cs
- RequestQueue.cs
- NativeMethods.cs
- InputManager.cs
- SetterBase.cs
- DefaultParameterValueAttribute.cs
- LayoutTable.cs
- SchemaElementDecl.cs
- CardSpacePolicyElement.cs
- AnnotationDocumentPaginator.cs
- JsonUriDataContract.cs
- XmlHelper.cs
- TimeoutTimer.cs
- PeerNode.cs
- DefaultAssemblyResolver.cs
- RegionIterator.cs
- PassportAuthenticationEventArgs.cs
- UserInitiatedNavigationPermission.cs
- CodeTypeParameterCollection.cs
- CompareInfo.cs
- StateMachineWorkflowDesigner.cs
- XmlBinaryReader.cs
- BroadcastEventHelper.cs
- GorillaCodec.cs
- SqlHelper.cs
- CodeAccessSecurityEngine.cs
- BaseServiceProvider.cs
- TreeNodeStyleCollectionEditor.cs
- ContentOperations.cs
- PrintControllerWithStatusDialog.cs
- ClientTargetSection.cs
- ImageInfo.cs
- TypeContext.cs
- CompositeControl.cs
- FixedSOMElement.cs
- ToolStripContentPanelRenderEventArgs.cs
- UserMapPath.cs
- UInt64Converter.cs
- XmlEncApr2001.cs
- RightsManagementInformation.cs
- FileDialogCustomPlace.cs
- Baml2006ReaderSettings.cs
- CopyNodeSetAction.cs
- XPathExpr.cs
- BrushValueSerializer.cs
- DataDesignUtil.cs
- HTMLTagNameToTypeMapper.cs
- Point3DIndependentAnimationStorage.cs
- CodeAccessPermission.cs
- LocatorPart.cs
- ResourceReader.cs
- Soap12ProtocolReflector.cs
- StorageEndPropertyMapping.cs
- StylusButtonCollection.cs
- IssuanceLicense.cs
- DesignerActionListCollection.cs
- SoapObjectReader.cs
- RenameRuleObjectDialog.cs
- XPathConvert.cs
- SafeFileMappingHandle.cs
- ObjectDataSourceFilteringEventArgs.cs
- TextStore.cs
- JsonQueryStringConverter.cs
- WindowsTooltip.cs
- RuntimeResourceSet.cs
- DesignerSerializationOptionsAttribute.cs
- PrintPageEvent.cs
- EmptyCollection.cs
- BitmapMetadataBlob.cs
- TriggerActionCollection.cs
- GradientStopCollection.cs
- IntPtr.cs
- Style.cs
- QuaternionValueSerializer.cs
- DataGridHeaderBorder.cs
- UxThemeWrapper.cs
- LinkedResourceCollection.cs