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
- StatusCommandUI.cs
- MenuItemBindingCollection.cs
- ToolboxDataAttribute.cs
- Mutex.cs
- BlurEffect.cs
- ConstraintManager.cs
- EdmToObjectNamespaceMap.cs
- Utils.cs
- AtomParser.cs
- ConsumerConnectionPoint.cs
- XmlSerializerFactory.cs
- MethodRental.cs
- GetIsBrowserClientRequest.cs
- GeometryValueSerializer.cs
- SecurityKeyUsage.cs
- MasterPageParser.cs
- EventPrivateKey.cs
- MouseEvent.cs
- ArrayConverter.cs
- WorkflowWebHostingModule.cs
- DataDocumentXPathNavigator.cs
- OletxTransactionManager.cs
- TimeoutValidationAttribute.cs
- BitmapEffectInput.cs
- WpfSharedBamlSchemaContext.cs
- RequestCacheEntry.cs
- DesignerSerializationOptionsAttribute.cs
- X509Extension.cs
- DecoderReplacementFallback.cs
- FileDialog.cs
- ProxyGenerationError.cs
- PersonalizableAttribute.cs
- keycontainerpermission.cs
- EntityKeyElement.cs
- XmlC14NWriter.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- XamlStyleSerializer.cs
- ProjectedSlot.cs
- StringPropertyBuilder.cs
- PropertyValueUIItem.cs
- SizeLimitedCache.cs
- DesignerOptionService.cs
- References.cs
- InternalRelationshipCollection.cs
- PopupControlService.cs
- NativeMethods.cs
- _HelperAsyncResults.cs
- FileDataSourceCache.cs
- QuestionEventArgs.cs
- LayoutTableCell.cs
- DataGridViewRowsAddedEventArgs.cs
- AsyncOperationManager.cs
- DataGridViewRowStateChangedEventArgs.cs
- TreeNodeCollectionEditor.cs
- ListSortDescriptionCollection.cs
- BamlTreeNode.cs
- GeometryGroup.cs
- OracleBFile.cs
- TextWriterEngine.cs
- MetafileHeader.cs
- SchemaLookupTable.cs
- CharUnicodeInfo.cs
- OracleConnection.cs
- TypeConverterMarkupExtension.cs
- BitmapCache.cs
- EnterpriseServicesHelper.cs
- LoginView.cs
- ToolStripSeparatorRenderEventArgs.cs
- MSG.cs
- RegexNode.cs
- SQLCharsStorage.cs
- XPathMessageFilterElementCollection.cs
- OpCellTreeNode.cs
- DataGridViewDataConnection.cs
- XamlGridLengthSerializer.cs
- StateBag.cs
- ListViewSelectEventArgs.cs
- XmlSerializationReader.cs
- ClientTargetSection.cs
- LineServices.cs
- CollectionViewProxy.cs
- httpserverutility.cs
- PageTheme.cs
- CodeNamespace.cs
- ProfessionalColorTable.cs
- Publisher.cs
- RequestSecurityToken.cs
- SpinLock.cs
- ScrollEvent.cs
- DependencyObjectPropertyDescriptor.cs
- ColumnCollectionEditor.cs
- PartDesigner.cs
- InfoCardService.cs
- GrammarBuilderRuleRef.cs
- QilCloneVisitor.cs
- StylusDevice.cs
- HttpRuntime.cs
- ManualResetEvent.cs
- MailSettingsSection.cs
- DesignerLinkAdapter.cs