Lines Matching refs:kex
41 kex_kem_sntrup4591761x25519_keypair(struct kex *kex) in kex_kem_sntrup4591761x25519_keypair() argument
53 crypto_kem_sntrup4591761_keypair(cp, kex->sntrup4591761_client_key); in kex_kem_sntrup4591761x25519_keypair()
59 kexc25519_keygen(kex->c25519_client_key, cp); in kex_kem_sntrup4591761x25519_keypair()
63 kex->client_pub = buf; in kex_kem_sntrup4591761x25519_keypair()
71 kex_kem_sntrup4591761x25519_enc(struct kex *kex, in kex_kem_sntrup4591761x25519_enc() argument
127 if ((r = ssh_digest_buffer(kex->hash_alg, buf, hash, sizeof(hash))) != 0) in kex_kem_sntrup4591761x25519_enc()
140 ssh_digest_bytes(kex->hash_alg))) != 0) in kex_kem_sntrup4591761x25519_enc()
158 kex_kem_sntrup4591761x25519_dec(struct kex *kex, in kex_kem_sntrup4591761x25519_dec() argument
191 kex->sntrup4591761_client_key); in kex_kem_sntrup4591761x25519_dec()
192 if ((r = kexc25519_shared_key_ext(kex->c25519_client_key, server_pub, in kex_kem_sntrup4591761x25519_dec()
195 if ((r = ssh_digest_buffer(kex->hash_alg, buf, hash, sizeof(hash))) != 0) in kex_kem_sntrup4591761x25519_dec()
204 ssh_digest_bytes(kex->hash_alg))) != 0) in kex_kem_sntrup4591761x25519_dec()