public override byte[] DeriveKeyTls(ECDiffieHellmanPublicKey otherPartyPublicKey, byte[] prfLabel, byte[] prfSeed) { ArgumentNullException.ThrowIfNull(otherPartyPublicKey); ArgumentNullException.ThrowIfNull(prfLabel); ArgumentNullException.ThrowIfNull(prfSeed); ThrowIfDisposed(); return(ECDiffieHellmanDerivation.DeriveKeyTls( otherPartyPublicKey, prfLabel, prfSeed, DeriveSecretAgreement)); }
public override byte[] DeriveKeyTls(ECDiffieHellmanPublicKey otherPartyPublicKey, byte[] prfLabel, byte[] prfSeed) { if (otherPartyPublicKey == null) throw new ArgumentNullException(nameof(otherPartyPublicKey)); if (prfLabel == null) throw new ArgumentNullException(nameof(prfLabel)); if (prfSeed == null) throw new ArgumentNullException(nameof(prfSeed)); return ECDiffieHellmanDerivation.DeriveKeyTls( otherPartyPublicKey, prfLabel, prfSeed, (pubKey, hasher) => DeriveSecretAgreement(pubKey, hasher)); }