Searched refs:shared_key (Results 1 – 2 of 2) sorted by relevance
/external/openssh/ |
D | kexc25519.c | 66 u_char shared_key[CURVE25519_SIZE]; in kexc25519_shared_key() local 69 crypto_scalarmult_curve25519(shared_key, key, pub); in kexc25519_shared_key() 71 dump_digest("shared secret", shared_key, CURVE25519_SIZE); in kexc25519_shared_key() 74 r = sshbuf_put_bignum2_bytes(out, shared_key, CURVE25519_SIZE); in kexc25519_shared_key() 75 explicit_bzero(shared_key, CURVE25519_SIZE); in kexc25519_shared_key()
|
/external/boringssl/src/crypto/dh/ |
D | dh_impl.c | 261 BIGNUM *shared_key; in compute_key() local 276 shared_key = BN_CTX_get(ctx); in compute_key() 277 if (shared_key == NULL) { in compute_key() 298 if (!BN_mod_exp_mont(shared_key, pub_key, &local_priv, dh->p, ctx, in compute_key() 304 ret = BN_bn2bin(shared_key, out); in compute_key()
|