Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / System / Security / Cryptography / ECDiffieHellman.cs / 1305376 / ECDiffieHellman.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
using System;
using System.Runtime.Serialization;
namespace System.Security.Cryptography {
///
/// Abstract base class for implementations of elliptic curve Diffie-Hellman to derive from
///
[System.Security.Permissions.HostProtection(MayLeakOnAbort = true)]
public abstract class ECDiffieHellman : AsymmetricAlgorithm {
public override string KeyExchangeAlgorithm {
get { return "ECDiffieHellman"; }
}
public override string SignatureAlgorithm {
get { return null; }
}
//
// Creation factory methods
//
public static new ECDiffieHellman Create() {
return Create(typeof(ECDiffieHellmanCng).FullName);
}
public static new ECDiffieHellman Create(string algorithm) {
if (algorithm == null) {
throw new ArgumentNullException("algorithm");
}
return CryptoConfig.CreateFromName(algorithm) as ECDiffieHellman;
}
//
// Key derivation
//
public abstract ECDiffieHellmanPublicKey PublicKey { get; }
public abstract byte[] DeriveKeyMaterial(ECDiffieHellmanPublicKey otherPartyPublicKey);
}
}
// 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
- Animatable.cs
- PreProcessInputEventArgs.cs
- IODescriptionAttribute.cs
- TextTreeFixupNode.cs
- FileDialog_Vista_Interop.cs
- _ListenerRequestStream.cs
- MarkupWriter.cs
- UnconditionalPolicy.cs
- Control.cs
- SortedDictionary.cs
- UIAgentAsyncEndRequest.cs
- DataGridCell.cs
- ListViewEditEventArgs.cs
- EventEntry.cs
- WebPartConnectionsEventArgs.cs
- ApplicationFileCodeDomTreeGenerator.cs
- SecurityPolicySection.cs
- SoapFault.cs
- RegularExpressionValidator.cs
- SqlClientWrapperSmiStream.cs
- TreeViewEvent.cs
- SqlUserDefinedTypeAttribute.cs
- EventLogEntryCollection.cs
- RenamedEventArgs.cs
- RegexGroupCollection.cs
- DetailsViewPageEventArgs.cs
- WeakReferenceEnumerator.cs
- GridItemProviderWrapper.cs
- ListItem.cs
- RenderDataDrawingContext.cs
- RuntimeHandles.cs
- TrustLevel.cs
- BamlResourceContent.cs
- FigureParaClient.cs
- ParallelDesigner.xaml.cs
- ReferentialConstraint.cs
- CryptoStream.cs
- NameValuePermission.cs
- nulltextnavigator.cs
- ImageMetadata.cs
- SamlAudienceRestrictionCondition.cs
- SmtpFailedRecipientException.cs
- OutputCacheModule.cs
- FormsAuthenticationEventArgs.cs
- WorkflowQueuingService.cs
- OleDbConnectionInternal.cs
- NetworkInformationException.cs
- QueryFunctions.cs
- CodeAttributeDeclarationCollection.cs
- BigInt.cs
- WebBrowser.cs
- ZoneButton.cs
- ImmutableCollection.cs
- XmlNamespaceManager.cs
- FontWeight.cs
- SqlHelper.cs
- BadImageFormatException.cs
- IsolationInterop.cs
- NativeMethods.cs
- RankException.cs
- OptimalBreakSession.cs
- TransformerInfo.cs
- MetadataItemEmitter.cs
- RegexWorker.cs
- Schema.cs
- TransportConfigurationTypeElementCollection.cs
- ParallelLoopState.cs
- EpmCustomContentWriterNodeData.cs
- FixedStringLookup.cs
- AddInAttribute.cs
- ResXResourceWriter.cs
- ComplusEndpointConfigContainer.cs
- WebPartDisplayModeCancelEventArgs.cs
- FullTrustAssembly.cs
- DoubleStorage.cs
- BindingElementExtensionElement.cs
- LogRestartAreaEnumerator.cs
- WebServiceHandlerFactory.cs
- SoapElementAttribute.cs
- Boolean.cs
- relpropertyhelper.cs
- DashStyles.cs
- AppSecurityManager.cs
- _UncName.cs
- HostedImpersonationContext.cs
- NetCodeGroup.cs
- FixedStringLookup.cs
- basecomparevalidator.cs
- AtlasWeb.Designer.cs
- FormsAuthenticationEventArgs.cs
- DuplicateDetector.cs
- DESCryptoServiceProvider.cs
- TrustLevelCollection.cs
- wgx_render.cs
- _CacheStreams.cs
- AdornerHitTestResult.cs
- ProviderManager.cs
- BitmapPalette.cs
- RelatedImageListAttribute.cs
- HelloMessageCD1.cs