Code:
/ 4.0 / 4.0 / 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. // ==++== // // 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
- DateRangeEvent.cs
- SqlDataSourceCache.cs
- HtmlControlDesigner.cs
- DeobfuscatingStream.cs
- AsyncMethodInvoker.cs
- ScriptBehaviorDescriptor.cs
- RoleServiceManager.cs
- TypePropertyEditor.cs
- ImageCodecInfoPrivate.cs
- MatrixAnimationBase.cs
- WebPartTransformerAttribute.cs
- _SingleItemRequestCache.cs
- MenuCommands.cs
- DataGridViewColumn.cs
- BinaryWriter.cs
- DbConnectionClosed.cs
- EventTrigger.cs
- elementinformation.cs
- ChannelManagerService.cs
- MatrixCamera.cs
- PolicyUtility.cs
- XmlNullResolver.cs
- Base64Decoder.cs
- OptimalBreakSession.cs
- CultureSpecificCharacterBufferRange.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- dbdatarecord.cs
- WmlLinkAdapter.cs
- Int16Converter.cs
- ToolStripItemCollection.cs
- ResetableIterator.cs
- WpfWebRequestHelper.cs
- Exceptions.cs
- HttpCapabilitiesBase.cs
- WindowsListViewGroupHelper.cs
- SrgsElementFactory.cs
- WebPartDescription.cs
- COM2IDispatchConverter.cs
- EventSinkHelperWriter.cs
- Adorner.cs
- QilValidationVisitor.cs
- TemplateEditingFrame.cs
- SpotLight.cs
- ADMembershipUser.cs
- WebPartConnectionsCloseVerb.cs
- ObjectPersistData.cs
- WsatServiceCertificate.cs
- SmtpReplyReaderFactory.cs
- ExpressionBuilderCollection.cs
- RequestCache.cs
- NeutralResourcesLanguageAttribute.cs
- ParenthesizePropertyNameAttribute.cs
- FileClassifier.cs
- Gdiplus.cs
- KeyInstance.cs
- DayRenderEvent.cs
- GeneralTransform.cs
- InputLanguageCollection.cs
- WebEvents.cs
- InstanceDataCollectionCollection.cs
- TypeDelegator.cs
- WindowHelperService.cs
- DbParameterCollectionHelper.cs
- DataGridHelper.cs
- FlowDocument.cs
- ImmutableCollection.cs
- ViewLoader.cs
- QuaternionAnimationUsingKeyFrames.cs
- Executor.cs
- MDIClient.cs
- OracleBinary.cs
- COM2FontConverter.cs
- SqlInternalConnectionTds.cs
- OrderingInfo.cs
- HwndProxyElementProvider.cs
- CodeExporter.cs
- SmiXetterAccessMap.cs
- CompilationUtil.cs
- Stack.cs
- PrimitiveSchema.cs
- recordstate.cs
- HtmlControl.cs
- PeerApplication.cs
- WebPartConnectionsConfigureVerb.cs
- DetailsViewUpdateEventArgs.cs
- ObjectViewQueryResultData.cs
- DuplicateWaitObjectException.cs
- XslException.cs
- EventDescriptor.cs
- printdlgexmarshaler.cs
- Util.cs
- EncryptedHeaderXml.cs
- Guid.cs
- ToolStripItemClickedEventArgs.cs
- AppSettingsExpressionBuilder.cs
- PrintPreviewGraphics.cs
- Overlapped.cs
- Tuple.cs
- MediaSystem.cs
- LookupBindingPropertiesAttribute.cs