Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / System / Security / Cryptography / ECDsa.cs / 1305376 / ECDsa.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== using System; namespace System.Security.Cryptography { ////// Base class for implementations of elliptic curve DSA /// [System.Security.Permissions.HostProtection(MayLeakOnAbort = true)] public abstract class ECDsa : AsymmetricAlgorithm { public override string KeyExchangeAlgorithm { get { return null; } } public override string SignatureAlgorithm { get { return "ECDsa"; } } // // Creation factory methods // public static new ECDsa Create() { return Create(typeof(ECDsaCng).FullName); } public static new ECDsa Create(string algorithm) { if (algorithm == null) { throw new ArgumentNullException("algorithm"); } return CryptoConfig.CreateFromName(algorithm) as ECDsa; } // // Signature operations // public abstract byte[] SignHash(byte[] hash); public abstract bool VerifyHash(byte[] hash, byte[] signature); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== using System; namespace System.Security.Cryptography { ////// Base class for implementations of elliptic curve DSA /// [System.Security.Permissions.HostProtection(MayLeakOnAbort = true)] public abstract class ECDsa : AsymmetricAlgorithm { public override string KeyExchangeAlgorithm { get { return null; } } public override string SignatureAlgorithm { get { return "ECDsa"; } } // // Creation factory methods // public static new ECDsa Create() { return Create(typeof(ECDsaCng).FullName); } public static new ECDsa Create(string algorithm) { if (algorithm == null) { throw new ArgumentNullException("algorithm"); } return CryptoConfig.CreateFromName(algorithm) as ECDsa; } // // Signature operations // public abstract byte[] SignHash(byte[] hash); public abstract bool VerifyHash(byte[] hash, byte[] signature); } } // 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
- TdsParserStateObject.cs
- DecimalConverter.cs
- Location.cs
- CodeIdentifiers.cs
- QilSortKey.cs
- NetTcpSection.cs
- CellQuery.cs
- NativeMethods.cs
- Freezable.cs
- ColumnTypeConverter.cs
- SourceChangedEventArgs.cs
- XmlNodeChangedEventManager.cs
- EnterpriseServicesHelper.cs
- WorkflowServiceHostFactory.cs
- BitConverter.cs
- ParameterBuilder.cs
- MarginCollapsingState.cs
- DesignerAttributeInfo.cs
- UpdatePanel.cs
- OracleTimeSpan.cs
- MenuItem.cs
- PointCollectionConverter.cs
- SafeSecurityHelper.cs
- CapiHashAlgorithm.cs
- PlatformCulture.cs
- UrlPath.cs
- XmlReflectionImporter.cs
- FastPropertyAccessor.cs
- SerializationException.cs
- SystemResources.cs
- InvalidOperationException.cs
- CellParagraph.cs
- TdsParser.cs
- AppSettingsReader.cs
- PageTheme.cs
- OrderedDictionary.cs
- PlaceHolder.cs
- ParenthesizePropertyNameAttribute.cs
- ConfigurationValues.cs
- Timeline.cs
- Shared.cs
- EventLogPermissionAttribute.cs
- NoClickablePointException.cs
- ObjectStateFormatter.cs
- OpCopier.cs
- controlskin.cs
- ClosableStream.cs
- FloaterParagraph.cs
- ByteFacetDescriptionElement.cs
- PerformanceCountersElement.cs
- SqlDataSourceStatusEventArgs.cs
- ExpressionBindingCollection.cs
- SafeNativeMethods.cs
- SourceElementsCollection.cs
- WasEndpointConfigContainer.cs
- CodeIdentifiers.cs
- PrivateFontCollection.cs
- HelpEvent.cs
- HtmlDocument.cs
- ProcessModuleDesigner.cs
- WindowsIdentity.cs
- DataBoundLiteralControl.cs
- EventMappingSettings.cs
- DefaultBinder.cs
- AuthenticationManager.cs
- MediaElement.cs
- TdsParserSessionPool.cs
- HyperLinkStyle.cs
- RegisteredExpandoAttribute.cs
- DefaultAsyncDataDispatcher.cs
- SafeViewOfFileHandle.cs
- HttpResponseInternalWrapper.cs
- ConstNode.cs
- ImpersonateTokenRef.cs
- Propagator.cs
- PageBuildProvider.cs
- Popup.cs
- GenericTypeParameterBuilder.cs
- ImageAttributes.cs
- SqlUnionizer.cs
- AmbiguousMatchException.cs
- RefreshPropertiesAttribute.cs
- QilTernary.cs
- ProxyHelper.cs
- DelegatingTypeDescriptionProvider.cs
- SchemaImporterExtensionElement.cs
- _UriSyntax.cs
- SourceFileBuildProvider.cs
- XmlDataProvider.cs
- SqlUserDefinedTypeAttribute.cs
- IsolatedStorageFile.cs
- ListenerAdapter.cs
- XPathNode.cs
- DecimalAnimationUsingKeyFrames.cs
- TrackingStringDictionary.cs
- StorageEntitySetMapping.cs
- MatcherBuilder.cs
- PassportAuthenticationEventArgs.cs
- CultureTable.cs
- _HelperAsyncResults.cs