Tpm2Lib.TpmPublic.EcdhGetKeyExchangeKey C# (CSharp) Method

EcdhGetKeyExchangeKey() public method

Get an ECDH key exchange key (one pass ephemeral) and the public key of the ephemeral key using ECDH with encodingParms as input to the KDF (ECC only)
public EcdhGetKeyExchangeKey ( byte encodingParms, TpmAlgId decryptKeyNameAlg, EccPoint &pubEphem ) : byte[]
encodingParms byte
decryptKeyNameAlg TpmAlgId
pubEphem EccPoint
return byte[]
        public byte[] EcdhGetKeyExchangeKey(byte[] encodingParms, TpmAlgId decryptKeyNameAlg, out EccPoint pubEphem)
        {
            using (AsymCryptoSystem encryptor = AsymCryptoSystem.CreateFrom(this))
            {
                return encryptor.EcdhGetKeyExchangeKey(encodingParms, decryptKeyNameAlg, out pubEphem);
            }
        }