Home
last modified time | relevance | path

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

/freebsd-10-stable/crypto/openssh/
Dkexc25519.c66 u_char shared_key[CURVE25519_SIZE]; in kexc25519_shared_key() local
70 explicit_bzero(shared_key, CURVE25519_SIZE); in kexc25519_shared_key()
71 if (timingsafe_bcmp(pub, shared_key, CURVE25519_SIZE) == 0) in kexc25519_shared_key()
74 crypto_scalarmult_curve25519(shared_key, key, pub); in kexc25519_shared_key()
76 dump_digest("shared secret", shared_key, CURVE25519_SIZE); in kexc25519_shared_key()
79 r = sshbuf_put_bignum2_bytes(out, shared_key, CURVE25519_SIZE); in kexc25519_shared_key()
80 explicit_bzero(shared_key, CURVE25519_SIZE); in kexc25519_shared_key()
/freebsd-10-stable/crypto/openssl/engines/ccgost/
Dgost94_keyx.c51 unsigned char *shared_key) in make_cp_exchange_key() argument
73 finish_hash(&hash_ctx, shared_key); in make_cp_exchange_key()
101 unsigned char shared_key[32], ukm[8], crypted_key[44]; in pkey_GOST94cp_encrypt() local
137 make_cp_exchange_key(gost_get0_priv_key(mykey), pubk, shared_key); in pkey_GOST94cp_encrypt()
150 keyWrapCryptoPro(&cctx, shared_key, ukm, key, crypted_key); in pkey_GOST94cp_encrypt()
Dgost2001_keyx.c22 static int VKO_compute_key(unsigned char *shared_key, size_t shared_key_size, in VKO_compute_key() argument
60 finish_hash(&hash_ctx, shared_key); in VKO_compute_key()
123 unsigned char ukm[8], shared_key[32], crypted_key[44]; in pkey_GOST01cp_encrypt() local
162 VKO_compute_key(shared_key, 32, in pkey_GOST01cp_encrypt()
166 keyWrapCryptoPro(&cctx, shared_key, ukm, key, crypted_key); in pkey_GOST01cp_encrypt()
/freebsd-10-stable/sys/netinet/
Dsctp_usrreq.c4241 sctp_sharedkey_t *shared_key; local
4276 shared_key = sctp_alloc_sharedkey();
4277 if (shared_key == NULL) {
4284 shared_key->key = key;
4285 shared_key->keyid = sca->sca_keynumber;
4286 error = sctp_insert_sharedkey(shared_keys, shared_key);
4313 shared_key = sctp_alloc_sharedkey();
4314 if (shared_key == NULL) {
4321 shared_key->key = key;
4322 shared_key->keyid = sca->sca_keynumber;
[all …]
Dsctp_pcb.c3339 sctp_sharedkey_t *shared_key, *nshared_key; in sctp_inpcb_free() local
3698 LIST_FOREACH_SAFE(shared_key, &inp->sctp_ep.shared_keys, next, nshared_key) { in sctp_inpcb_free()
3699 LIST_REMOVE(shared_key, next); in sctp_inpcb_free()
3700 sctp_free_sharedkey(shared_key); in sctp_inpcb_free()
4679 sctp_sharedkey_t *shared_key, *nshared_key; in sctp_free_assoc() local
5199 LIST_FOREACH_SAFE(shared_key, &asoc->shared_keys, next, nshared_key) { in sctp_free_assoc()
5200 LIST_REMOVE(shared_key, next); in sctp_free_assoc()
5201 sctp_free_sharedkey(shared_key); in sctp_free_assoc()