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
- WmlPanelAdapter.cs
- PropertySourceInfo.cs
- UnsafeNativeMethods.cs
- LabelEditEvent.cs
- COAUTHINFO.cs
- FontWeight.cs
- ErrorFormatter.cs
- ConfigurationManagerHelper.cs
- XPathNode.cs
- InvalidWMPVersionException.cs
- RepeatBehaviorConverter.cs
- Stack.cs
- HttpsChannelFactory.cs
- AppSecurityManager.cs
- TextWriterEngine.cs
- AppSettingsSection.cs
- XmlWellformedWriter.cs
- ElementHostPropertyMap.cs
- ThemeConfigurationDialog.cs
- TCPClient.cs
- GestureRecognizer.cs
- BookmarkCallbackWrapper.cs
- DCSafeHandle.cs
- FileReader.cs
- StrongNameKeyPair.cs
- ClockController.cs
- EntitySetDataBindingList.cs
- AppearanceEditorPart.cs
- DesignTimeParseData.cs
- DateTimeParse.cs
- OdbcParameter.cs
- OpCopier.cs
- tibetanshape.cs
- FtpWebResponse.cs
- AnimatedTypeHelpers.cs
- HttpClientCertificate.cs
- BitmapScalingModeValidation.cs
- SelectingProviderEventArgs.cs
- ListViewPagedDataSource.cs
- InstalledFontCollection.cs
- GraphicsPathIterator.cs
- LockedBorderGlyph.cs
- SqlCrossApplyToCrossJoin.cs
- BitmapCache.cs
- DbProviderManifest.cs
- ResXResourceSet.cs
- EntityContainerEntitySet.cs
- ModifiableIteratorCollection.cs
- MarkupCompilePass2.cs
- Config.cs
- WindowsAuthenticationModule.cs
- TransactionFormatter.cs
- AssemblyInfo.cs
- ValidationRule.cs
- IISMapPath.cs
- PipeSecurity.cs
- PreviewPrintController.cs
- LogicalExpr.cs
- TemplateBindingExpressionConverter.cs
- DriveNotFoundException.cs
- HttpsChannelFactory.cs
- PassportPrincipal.cs
- LogPolicy.cs
- StreamResourceInfo.cs
- SingleConverter.cs
- ServiceConfigurationTraceRecord.cs
- RequestCachingSection.cs
- SamlAction.cs
- WindowsComboBox.cs
- HttpChannelListener.cs
- OleDbError.cs
- odbcmetadatacolumnnames.cs
- SecurityKeyIdentifier.cs
- SqlExpressionNullability.cs
- SHA384Managed.cs
- IProducerConsumerCollection.cs
- documentsequencetextpointer.cs
- LinqDataSourceEditData.cs
- PasswordRecovery.cs
- EditingScopeUndoUnit.cs
- MonitoringDescriptionAttribute.cs
- Parser.cs
- ContentFileHelper.cs
- FillRuleValidation.cs
- METAHEADER.cs
- XamlWriter.cs
- SR.cs
- XdrBuilder.cs
- WorkflowRuntimeService.cs
- ClientScriptManagerWrapper.cs
- SafeReadContext.cs
- CapabilitiesState.cs
- Profiler.cs
- RightsManagementLicense.cs
- ElementHostPropertyMap.cs
- XamlSerializerUtil.cs
- Baml2006KnownTypes.cs
- XmlSerializerAssemblyAttribute.cs
- InternalPolicyElement.cs
- SignedInfo.cs