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
- TypeDescriptionProviderAttribute.cs
- RegistrySecurity.cs
- PostBackOptions.cs
- AggregateNode.cs
- ExpressionBuilderCollection.cs
- StateDesigner.Layouts.cs
- OleDbRowUpdatedEvent.cs
- AssemblyResolver.cs
- Vector3DAnimation.cs
- followingsibling.cs
- DataKeyCollection.cs
- PointValueSerializer.cs
- PinnedBufferMemoryStream.cs
- LinkAreaEditor.cs
- TaskExceptionHolder.cs
- StructuralCache.cs
- RichTextBoxDesigner.cs
- UnauthorizedWebPart.cs
- WindowsToolbarAsMenu.cs
- Filter.cs
- InheritablePropertyChangeInfo.cs
- MailWebEventProvider.cs
- PopupEventArgs.cs
- ProcessProtocolHandler.cs
- DefaultExpressionVisitor.cs
- TableDetailsCollection.cs
- Point3DConverter.cs
- WindowHideOrCloseTracker.cs
- BinaryFormatterWriter.cs
- StreamGeometryContext.cs
- TextFormatterContext.cs
- SingleConverter.cs
- PersonalizationEntry.cs
- ThemeDictionaryExtension.cs
- DateTimeUtil.cs
- WindowPattern.cs
- StateMachineHelpers.cs
- PersonalizableAttribute.cs
- DoubleCollection.cs
- MenuItem.cs
- DynamicResourceExtensionConverter.cs
- TreeWalkHelper.cs
- HistoryEventArgs.cs
- SecurityCriticalDataForSet.cs
- SQLBinaryStorage.cs
- TextParaLineResult.cs
- SQlBooleanStorage.cs
- CodeMemberEvent.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- PreparingEnlistment.cs
- VirtualPathExtension.cs
- SpeechAudioFormatInfo.cs
- PropertyDescriptorGridEntry.cs
- DataContractSerializer.cs
- TextOnlyOutput.cs
- SystemColors.cs
- DynamicExpression.cs
- SharedPerformanceCounter.cs
- Queue.cs
- CorrelationService.cs
- HMACSHA1.cs
- InstanceCreationEditor.cs
- MdImport.cs
- ProxyAttribute.cs
- UInt32.cs
- Enumerable.cs
- FontCacheUtil.cs
- LineBreak.cs
- ExpressionReplacer.cs
- ConsoleEntryPoint.cs
- MenuItemCollection.cs
- HtmlInputHidden.cs
- ReadOnlyCollectionBase.cs
- EntitySetBase.cs
- EntityContainerEmitter.cs
- XmlDataSource.cs
- TimeSpanSecondsConverter.cs
- WebPartTransformerAttribute.cs
- ProcessModuleCollection.cs
- GroupBoxAutomationPeer.cs
- ReplyAdapterChannelListener.cs
- DoubleCollectionValueSerializer.cs
- SQlBooleanStorage.cs
- SHA384Cng.cs
- IndicFontClient.cs
- DictionaryContent.cs
- LinkButton.cs
- DateTimeStorage.cs
- InvalidFilterCriteriaException.cs
- SoapAttributes.cs
- PolicyManager.cs
- XmlHierarchicalDataSourceView.cs
- dataobject.cs
- PageCodeDomTreeGenerator.cs
- DbFunctionCommandTree.cs
- ToolStripContentPanel.cs
- DependencyPropertyHelper.cs
- Size.cs
- CompositeActivityTypeDescriptor.cs
- GACMembershipCondition.cs