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
- XMLSyntaxException.cs
- RemoteAsymmetricSignatureFormatter.cs
- ThrowHelper.cs
- SqlTriggerContext.cs
- PriorityRange.cs
- FileInfo.cs
- SqlVersion.cs
- Container.cs
- PatternMatcher.cs
- MembershipValidatePasswordEventArgs.cs
- SystemThemeKey.cs
- HttpWebRequest.cs
- ListenerElementsCollection.cs
- FontWeights.cs
- SystemResources.cs
- __Error.cs
- PathParser.cs
- TheQuery.cs
- CacheHelper.cs
- URLAttribute.cs
- ColumnPropertiesGroup.cs
- WindowsListViewItem.cs
- ZipIOLocalFileDataDescriptor.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- FragmentQuery.cs
- SocketException.cs
- ToolStripDropDownItem.cs
- ThreadAbortException.cs
- VirtualizingStackPanel.cs
- NullableConverter.cs
- DisplayNameAttribute.cs
- AxisAngleRotation3D.cs
- TypedDatasetGenerator.cs
- ExtentCqlBlock.cs
- Solver.cs
- BooleanAnimationBase.cs
- XmlC14NWriter.cs
- DataSourceCacheDurationConverter.cs
- EventInfo.cs
- DetailsViewCommandEventArgs.cs
- RTLAwareMessageBox.cs
- typedescriptorpermissionattribute.cs
- ManagedIStream.cs
- EDesignUtil.cs
- CatalogZone.cs
- DesignerOptionService.cs
- WindowsToolbarAsMenu.cs
- DataPointer.cs
- DataGridViewUtilities.cs
- RunClient.cs
- BevelBitmapEffect.cs
- EdmType.cs
- XmlAttributeCollection.cs
- CodeMemberField.cs
- SimplePropertyEntry.cs
- DataGridViewCellStyle.cs
- FixedPageAutomationPeer.cs
- DocumentViewer.cs
- ValidateNames.cs
- TabletDeviceInfo.cs
- QueryTask.cs
- TcpStreams.cs
- CodeNamespaceImport.cs
- DbConnectionPoolCounters.cs
- SubpageParaClient.cs
- CompletedAsyncResult.cs
- XmlNamespaceMapping.cs
- XPathSelfQuery.cs
- BindingRestrictions.cs
- _LoggingObject.cs
- Crc32Helper.cs
- DesignTimeParseData.cs
- SemanticResultValue.cs
- SafeLocalAllocation.cs
- HotSpotCollection.cs
- ItemChangedEventArgs.cs
- HttpVersion.cs
- ExpressionVisitor.cs
- AsyncCodeActivityContext.cs
- ImageCodecInfo.cs
- ActionFrame.cs
- Module.cs
- ScrollBarRenderer.cs
- StatusBarAutomationPeer.cs
- MouseActionConverter.cs
- ImportContext.cs
- LinearQuaternionKeyFrame.cs
- UpdatePanelTrigger.cs
- Context.cs
- DesignerWebPartChrome.cs
- SqlDataSourceRefreshSchemaForm.cs
- GiveFeedbackEvent.cs
- CodeExporter.cs
- CrossAppDomainChannel.cs
- CommandID.cs
- DataGridViewCellStyleChangedEventArgs.cs
- TypeGenericEnumerableViewSchema.cs
- SqlBulkCopyColumnMapping.cs
- SemaphoreFullException.cs
- HWStack.cs