<PackageReference Include="BouncyCastle.Cryptography" Version="2.7.0" />

Org.BouncyCastle.Tls.Crypto.Impl.BC.BcTlsECDomain

public class BcTlsECDomain : TlsECDomain
namespace Org.BouncyCastle.Tls.Crypto.Impl.BC { public class BcTlsECDomain : TlsECDomain { protected readonly BcTlsCrypto m_crypto; protected readonly TlsECConfig m_config; protected readonly ECDomainParameters m_domainParameters; public static BcTlsSecret CalculateECDHAgreement(BcTlsCrypto crypto, ECPrivateKeyParameters privateKey, ECPublicKeyParameters publicKey); public static ECDomainParameters GetDomainParameters(TlsECConfig ecConfig); public static ECDomainParameters GetDomainParameters(int namedGroup); public BcTlsECDomain(BcTlsCrypto crypto, TlsECConfig ecConfig); public virtual BcTlsSecret CalculateECDHAgreement(ECPrivateKeyParameters privateKey, ECPublicKeyParameters publicKey); public virtual TlsAgreement CreateECDH(); public virtual ECPoint DecodePoint(byte[] encoding); public virtual ECPublicKeyParameters DecodePublicKey(byte[] encoding); public virtual byte[] EncodePoint(ECPoint point); public virtual byte[] EncodePublicKey(ECPublicKeyParameters publicKey); public virtual AsymmetricCipherKeyPair GenerateKeyPair(); } } namespace Org.BouncyCastle.Asn1.Pkcs { public class EncryptedPrivateKeyInfo : Asn1Encodable { public Asn1OctetString EncryptedData { get; } public AlgorithmIdentifier EncryptionAlgorithm { get; } public static EncryptedPrivateKeyInfo GetInstance(object obj); public static EncryptedPrivateKeyInfo GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit); public static EncryptedPrivateKeyInfo GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit); public EncryptedPrivateKeyInfo(AlgorithmIdentifier algId, byte[] encoding); public EncryptedPrivateKeyInfo(AlgorithmIdentifier encryptionAlgorithm, Asn1OctetString encryptedData); public byte[] GetEncryptedData(); } }