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
- ByteKeyFrameCollection.cs
- RegistryKey.cs
- Vector3DCollectionValueSerializer.cs
- Debug.cs
- TraceHandler.cs
- RuleSettingsCollection.cs
- WindowsEditBox.cs
- CompoundFileIOPermission.cs
- SoundPlayer.cs
- HtmlTableCellCollection.cs
- SkinBuilder.cs
- BindingGraph.cs
- SimpleHandlerFactory.cs
- _NegoStream.cs
- QueryableFilterUserControl.cs
- TreeViewHitTestInfo.cs
- _FtpControlStream.cs
- DataGridViewTextBoxColumn.cs
- TextAnchor.cs
- ComponentConverter.cs
- CacheDependency.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- DeviceContexts.cs
- AutomationPeer.cs
- ScriptMethodAttribute.cs
- FunctionQuery.cs
- DragDeltaEventArgs.cs
- OdbcParameterCollection.cs
- ExportOptions.cs
- EditorPart.cs
- TargetPerspective.cs
- Floater.cs
- ConstNode.cs
- SqlWriter.cs
- DeferredElementTreeState.cs
- EntityType.cs
- VirtualizingStackPanel.cs
- AsymmetricSignatureDeformatter.cs
- AccessedThroughPropertyAttribute.cs
- EntityContainerEmitter.cs
- SplitterPanel.cs
- ResponseStream.cs
- JsonFormatReaderGenerator.cs
- IntranetCredentialPolicy.cs
- Base64Encoding.cs
- FieldTemplateUserControl.cs
- TextParagraphView.cs
- ThrowHelper.cs
- EncodingTable.cs
- StylusSystemGestureEventArgs.cs
- SqlNode.cs
- Attributes.cs
- EntityDataSourceUtil.cs
- EventWaitHandle.cs
- SendingRequestEventArgs.cs
- BCryptSafeHandles.cs
- ListViewGroupItemCollection.cs
- Certificate.cs
- HMACMD5.cs
- InfoCardTrace.cs
- smtpconnection.cs
- Rect3D.cs
- LineVisual.cs
- DataRowComparer.cs
- SizeAnimation.cs
- DocumentCollection.cs
- SecurityBindingElementImporter.cs
- OutputScopeManager.cs
- MachineKeyConverter.cs
- NamedPipeHostedTransportConfiguration.cs
- AsymmetricAlgorithm.cs
- WorkflowTimerService.cs
- TransportationConfigurationTypeInstallComponent.cs
- ManifestSignatureInformation.cs
- SizeKeyFrameCollection.cs
- RoutedEvent.cs
- ValidationErrorCollection.cs
- LassoHelper.cs
- DataSvcMapFileSerializer.cs
- Visitor.cs
- BufferModeSettings.cs
- GroupedContextMenuStrip.cs
- GenericEnumConverter.cs
- FileCodeGroup.cs
- XmlQueryTypeFactory.cs
- AddInEnvironment.cs
- CreateWorkflowOwnerCommand.cs
- ScriptResourceDefinition.cs
- PolicyLevel.cs
- PageEventArgs.cs
- TextSegment.cs
- DiscoveryEndpointValidator.cs
- UrlPath.cs
- ActivationArguments.cs
- XmlAttributeOverrides.cs
- StringWriter.cs
- RenameRuleObjectDialog.Designer.cs
- HMACSHA1.cs
- DynamicPropertyHolder.cs
- DictionaryBase.cs