Home
last modified time | relevance | path

Searched refs:shared_key (Results 1 – 3 of 3) sorted by relevance

/freebsd-13.1/crypto/openssh/
H A Dkexc25519.c62 u_char shared_key[CURVE25519_SIZE]; in kexc25519_shared_key_ext() local
66 crypto_scalarmult_curve25519(shared_key, key, pub); in kexc25519_shared_key_ext()
70 if (timingsafe_bcmp(zero, shared_key, CURVE25519_SIZE) == 0) in kexc25519_shared_key_ext()
74 dump_digest("shared secret", shared_key, CURVE25519_SIZE); in kexc25519_shared_key_ext()
77 r = sshbuf_put(out, shared_key, CURVE25519_SIZE); in kexc25519_shared_key_ext()
79 r = sshbuf_put_bignum2_bytes(out, shared_key, CURVE25519_SIZE); in kexc25519_shared_key_ext()
80 explicit_bzero(shared_key, CURVE25519_SIZE); in kexc25519_shared_key_ext()
/freebsd-13.1/sys/netinet/
H A Dsctp_usrreq.c4285 sctp_sharedkey_t *shared_key; local
4320 shared_key = sctp_alloc_sharedkey();
4321 if (shared_key == NULL) {
4328 shared_key->key = key;
4329 shared_key->keyid = sca->sca_keynumber;
4358 shared_key = sctp_alloc_sharedkey();
4359 if (shared_key == NULL) {
4366 shared_key->key = key;
4394 shared_key = sctp_alloc_sharedkey();
4395 if (shared_key == NULL) {
[all …]
H A Dsctp_pcb.c3328 sctp_sharedkey_t *shared_key, *nshared_key; in sctp_inpcb_free() local
3650 LIST_FOREACH_SAFE(shared_key, &inp->sctp_ep.shared_keys, next, nshared_key) { in sctp_inpcb_free()
3651 LIST_REMOVE(shared_key, next); in sctp_inpcb_free()
3652 sctp_free_sharedkey(shared_key); in sctp_inpcb_free()
4701 sctp_sharedkey_t *shared_key, *nshared_key; in sctp_free_assoc() local
5163 LIST_FOREACH_SAFE(shared_key, &asoc->shared_keys, next, nshared_key) { in sctp_free_assoc()
5164 LIST_REMOVE(shared_key, next); in sctp_free_assoc()
5165 sctp_free_sharedkey(shared_key); in sctp_free_assoc()