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
- SqlError.cs
- AssemblyHash.cs
- RelationshipEntry.cs
- QilChoice.cs
- sitestring.cs
- UnauthorizedWebPart.cs
- SoapAttributeAttribute.cs
- ServiceHttpHandlerFactory.cs
- UDPClient.cs
- DrawingAttributesDefaultValueFactory.cs
- PositiveTimeSpanValidator.cs
- ListParagraph.cs
- _NTAuthentication.cs
- SQLCharsStorage.cs
- Hashtable.cs
- ExpressionBindingsDialog.cs
- _AutoWebProxyScriptHelper.cs
- PolicyStatement.cs
- IntAverageAggregationOperator.cs
- XmlnsCompatibleWithAttribute.cs
- ReflectionTypeLoadException.cs
- WindowsAuthenticationEventArgs.cs
- Semaphore.cs
- XhtmlBasicTextBoxAdapter.cs
- Hex.cs
- TypeUnloadedException.cs
- TimeStampChecker.cs
- ColumnMapProcessor.cs
- CodeSubDirectory.cs
- RequestCacheValidator.cs
- LZCodec.cs
- ArgIterator.cs
- SocketInformation.cs
- CommandBindingCollection.cs
- DisableDpiAwarenessAttribute.cs
- SoapReflectionImporter.cs
- ClearTypeHintValidation.cs
- DataBinder.cs
- ExceptionHandler.cs
- assemblycache.cs
- EntityCodeGenerator.cs
- ChannelParameterCollection.cs
- TargetConverter.cs
- DesignerTransactionCloseEvent.cs
- MenuItemCollection.cs
- PreviewKeyDownEventArgs.cs
- ZipIOExtraFieldElement.cs
- RectAnimationBase.cs
- _Connection.cs
- WindowsListBox.cs
- DispatcherTimer.cs
- JournalNavigationScope.cs
- DescendantBaseQuery.cs
- DispatcherProcessingDisabled.cs
- Size3DValueSerializer.cs
- PieceDirectory.cs
- ApplicationSettingsBase.cs
- SessionStateModule.cs
- NativeMethods.cs
- WebPartHeaderCloseVerb.cs
- TerminatorSinks.cs
- ImageListStreamer.cs
- SiteMapNode.cs
- SoapAttributeAttribute.cs
- Baml6ConstructorInfo.cs
- TableSectionStyle.cs
- RepeaterItemCollection.cs
- RSAPKCS1SignatureFormatter.cs
- ToolboxBitmapAttribute.cs
- DataStorage.cs
- RefreshPropertiesAttribute.cs
- EventHandlersStore.cs
- DescendentsWalkerBase.cs
- PtsHost.cs
- RSAOAEPKeyExchangeFormatter.cs
- HotSpot.cs
- webclient.cs
- AdornerDecorator.cs
- ChangeConflicts.cs
- FeatureManager.cs
- VectorCollectionConverter.cs
- HttpProcessUtility.cs
- HashCodeCombiner.cs
- RealizationContext.cs
- exports.cs
- GrammarBuilderPhrase.cs
- ImageAnimator.cs
- ManagementClass.cs
- LocatorManager.cs
- QueryContinueDragEventArgs.cs
- HttpTransportBindingElement.cs
- IsolatedStorageFile.cs
- SqlClientWrapperSmiStream.cs
- XPathCompiler.cs
- TableHeaderCell.cs
- SafePointer.cs
- ProfileGroupSettings.cs
- EntityTypeBase.cs
- PeerTransportSecuritySettings.cs
- RefreshEventArgs.cs