Lines Matching refs:pubKeyB
625 const bytevec& pubKeyB, bool senderIsA) { in consructKdfContext() argument
626 if (privKeyA.empty() || pubKeyA.empty() || pubKeyB.empty()) { in consructKdfContext()
635 .add(senderIsA ? pubKeyA : pubKeyB)) in consructKdfContext()
639 .add(senderIsA ? pubKeyB : pubKeyA)) in consructKdfContext()
648 const bytevec& pubKeyB, bool senderIsA) { in ECDH_HKDF_DeriveKey() argument
649 if (privKeyA.empty() || pubKeyA.empty() || pubKeyB.empty()) { in ECDH_HKDF_DeriveKey()
656 publicKey.insert(publicKey.end(), pubKeyB.begin(), pubKeyB.end()); in ECDH_HKDF_DeriveKey()
660 auto kdfContext = consructKdfContext(pubKeyA, privKeyA, pubKeyB, senderIsA); in ECDH_HKDF_DeriveKey()
677 const bytevec& pubKeyB, bool senderIsA) { in x25519_HKDF_DeriveKey() argument
678 if (privKeyA.empty() || pubKeyA.empty() || pubKeyB.empty()) { in x25519_HKDF_DeriveKey()
683 if (!::X25519(rawSharedKey.data(), privKeyA.data(), pubKeyB.data())) { in x25519_HKDF_DeriveKey()
687 auto kdfContext = consructKdfContext(pubKeyA, privKeyA, pubKeyB, senderIsA); in x25519_HKDF_DeriveKey()