Home
last modified time | relevance | path

Searched refs:shared_secret (Results 1 – 25 of 36) sorted by relevance

12

/external/openssh/
Dkexc25519s.c60 struct sshbuf *shared_secret = NULL; in input_kex_c25519_init() local
99 if ((shared_secret = sshbuf_new()) == NULL) { in input_kex_c25519_init()
104 shared_secret)) < 0) in input_kex_c25519_init()
121 sshbuf_ptr(shared_secret), sshbuf_len(shared_secret), in input_kex_c25519_init()
149 if ((r = kex_derive_keys(ssh, hash, hashlen, shared_secret)) == 0) in input_kex_c25519_init()
157 sshbuf_free(shared_secret); in input_kex_c25519_init()
Dkexc25519c.c77 struct sshbuf *shared_secret = NULL; in input_kex_c25519_reply() local
121 if ((shared_secret = sshbuf_new()) == NULL) { in input_kex_c25519_reply()
126 shared_secret)) < 0) in input_kex_c25519_reply()
140 sshbuf_ptr(shared_secret), sshbuf_len(shared_secret), in input_kex_c25519_reply()
159 if ((r = kex_derive_keys(ssh, hash, hashlen, shared_secret)) == 0) in input_kex_c25519_reply()
168 sshbuf_free(shared_secret); in input_kex_c25519_reply()
Dkexecdhs.c69 BIGNUM *shared_secret = NULL; in input_kex_ecdh_init() local
127 (shared_secret = BN_new()) == NULL) { in input_kex_ecdh_init()
133 BN_bin2bn(kbuf, klen, shared_secret) == NULL) { in input_kex_ecdh_init()
156 shared_secret, in input_kex_ecdh_init()
187 if ((r = kex_derive_keys_bn(ssh, hash, hashlen, shared_secret)) == 0) in input_kex_ecdh_init()
201 if (shared_secret) in input_kex_ecdh_init()
202 BN_clear_free(shared_secret); in input_kex_ecdh_init()
Dkexdhc.c100 BIGNUM *dh_server_pub = NULL, *shared_secret = NULL; in input_kex_dh() local
151 (shared_secret = BN_new()) == NULL) { in input_kex_dh()
156 BN_bin2bn(kbuf, kout, shared_secret) == NULL) { in input_kex_dh()
174 shared_secret, in input_kex_dh()
193 if ((r = kex_derive_keys_bn(ssh, hash, hashlen, shared_secret)) == 0) in input_kex_dh()
205 if (shared_secret) in input_kex_dh()
206 BN_clear_free(shared_secret); in input_kex_dh()
Dkexecdhc.c105 BIGNUM *shared_secret = NULL; in input_kex_ecdh_reply() local
161 (shared_secret = BN_new()) == NULL) { in input_kex_ecdh_reply()
167 BN_bin2bn(kbuf, klen, shared_secret) == NULL) { in input_kex_ecdh_reply()
187 shared_secret, in input_kex_ecdh_reply()
206 if ((r = kex_derive_keys_bn(ssh, hash, hashlen, shared_secret)) == 0) in input_kex_ecdh_reply()
220 if (shared_secret) in input_kex_ecdh_reply()
221 BN_clear_free(shared_secret); in input_kex_ecdh_reply()
Dkexdhs.c91 BIGNUM *shared_secret = NULL, *dh_client_pub = NULL; in input_kex_dh_init() local
143 (shared_secret = BN_new()) == NULL) { in input_kex_dh_init()
148 BN_bin2bn(kbuf, kout, shared_secret) == NULL) { in input_kex_dh_init()
168 shared_secret, in input_kex_dh_init()
198 if ((r = kex_derive_keys_bn(ssh, hash, hashlen, shared_secret)) == 0) in input_kex_dh_init()
210 if (shared_secret) in input_kex_dh_init()
211 BN_clear_free(shared_secret); in input_kex_dh_init()
Dkexgexs.c127 BIGNUM *shared_secret = NULL, *dh_client_pub = NULL; in input_kex_dh_gex_init() local
179 (shared_secret = BN_new()) == NULL) { in input_kex_dh_gex_init()
184 BN_bin2bn(kbuf, kout, shared_secret) == NULL) { in input_kex_dh_gex_init()
207 shared_secret, in input_kex_dh_gex_init()
237 if ((r = kex_derive_keys_bn(ssh, hash, hashlen, shared_secret)) == 0) in input_kex_dh_gex_init()
248 if (shared_secret) in input_kex_dh_gex_init()
249 BN_clear_free(shared_secret); in input_kex_dh_gex_init()
Dkexgexc.c150 BIGNUM *dh_server_pub = NULL, *shared_secret = NULL; in input_kex_dh_gex_reply() local
206 (shared_secret = BN_new()) == NULL) { in input_kex_dh_gex_reply()
211 BN_bin2bn(kbuf, kout, shared_secret) == NULL) { in input_kex_dh_gex_reply()
234 shared_secret, in input_kex_dh_gex_reply()
253 if ((r = kex_derive_keys_bn(ssh, hash, hashlen, shared_secret)) == 0) in input_kex_dh_gex_reply()
265 if (shared_secret) in input_kex_dh_gex_reply()
266 BN_clear_free(shared_secret); in input_kex_dh_gex_reply()
Dkexecdh.c60 const BIGNUM *shared_secret, in kex_ecdh_hash() argument
82 (r = sshbuf_put_bignum2(b, shared_secret)) != 0) { in kex_ecdh_hash()
Dkexdh.c53 const BIGNUM *shared_secret, in kex_dh_hash() argument
75 (r = sshbuf_put_bignum2(b, shared_secret)) != 0) { in kex_dh_hash()
Dkex.c760 const struct sshbuf *shared_secret, u_char **keyp) in derive_key() argument
779 ssh_digest_update_buffer(hashctx, shared_secret) != 0 || in derive_key()
798 ssh_digest_update_buffer(hashctx, shared_secret) != 0 || in derive_key()
825 const struct sshbuf *shared_secret) in kex_derive_keys() argument
834 shared_secret, &keys[i])) != 0) { in kex_derive_keys()
855 struct sshbuf *shared_secret; in kex_derive_keys_bn() local
858 if ((shared_secret = sshbuf_new()) == NULL) in kex_derive_keys_bn()
860 if ((r = sshbuf_put_bignum2(shared_secret, secret)) == 0) in kex_derive_keys_bn()
861 r = kex_derive_keys(ssh, hash, hashlen, shared_secret); in kex_derive_keys_bn()
862 sshbuf_free(shared_secret); in kex_derive_keys_bn()
Dkexgex.c57 const BIGNUM *shared_secret, in kexgex_hash() argument
84 (r = sshbuf_put_bignum2(b, shared_secret)) != 0) { in kexgex_hash()
Dkexc25519.c94 const u_char *shared_secret, size_t secretlen, in kex_c25519_hash() argument
116 (r = sshbuf_put(b, shared_secret, secretlen)) < 0) { in kex_c25519_hash()
/external/wpa_supplicant_8/src/radius/
Dradius_client.c67 const u8 *shared_secret,
130 const u8 *shared_secret; member
280 const u8 *shared_secret, in radius_client_register() argument
445 radius_msg_finish_acct(entry->msg, entry->shared_secret, in radius_client_retransmit()
648 const u8 *shared_secret, in radius_client_list_add() argument
671 entry->shared_secret = shared_secret; in radius_client_list_add()
728 const u8 *shared_secret; in radius_client_send() local
739 conf->acct_server->shared_secret == NULL) { in radius_client_send()
746 shared_secret = conf->acct_server->shared_secret; in radius_client_send()
748 radius_msg_finish_acct(msg, shared_secret, shared_secret_len); in radius_client_send()
[all …]
Dradius_das.c21 u8 *shared_secret; member
236 if (radius_msg_verify_das_req(msg, das->shared_secret, in radius_das_receive()
300 if (radius_msg_finish_das_resp(reply, das->shared_secret, in radius_das_receive()
355 if (conf->port == 0 || conf->shared_secret == NULL || in radius_das_init()
371 das->shared_secret = os_malloc(conf->shared_secret_len); in radius_das_init()
372 if (das->shared_secret == NULL) { in radius_das_init()
376 os_memcpy(das->shared_secret, conf->shared_secret, in radius_das_init()
408 os_free(das->shared_secret); in radius_das_deinit()
Dradius_client.h41 u8 *shared_secret; member
241 const u8 *shared_secret, size_t shared_secret_len,
Dradius_server.c105 char *shared_secret; member
780 (u8 *) client->shared_secret, in radius_server_encapsulate_eap()
836 if (radius_msg_finish_srv(msg, (u8 *) client->shared_secret, in radius_server_encapsulate_eap()
879 (u8 *) client->shared_secret, in radius_server_macacl()
917 if (radius_msg_finish_srv(msg, (u8 *) client->shared_secret, in radius_server_macacl()
962 if (radius_msg_finish_srv(msg, (u8 *) client->shared_secret, in radius_server_reject()
1275 if (radius_msg_verify_msg_auth(msg, (u8 *) client->shared_secret, in radius_server_receive_auth()
1387 if (radius_msg_verify_acct_req(msg, (u8 *) client->shared_secret, in radius_server_receive_acct()
1403 radius_msg_finish_acct_resp(resp, (u8 *) client->shared_secret, in radius_server_receive_acct()
1523 os_free(prev->shared_secret); in radius_server_free_clients()
[all …]
Dradius_das.h42 const u8 *shared_secret; member
/external/ImageMagick/MagickCore/
Ddistribute-cache.c182 *shared_secret; in ConnectPixelCacheServer() local
204 shared_secret=GetPolicyValue("shared-secret"); in ConnectPixelCacheServer()
205 if (shared_secret == (char *) NULL) in ConnectPixelCacheServer()
207 shared_secret=DestroyString(shared_secret); in ConnectPixelCacheServer()
212 shared_secret=DestroyString(shared_secret); in ConnectPixelCacheServer()
771 *shared_secret; in DistributePixelCacheClient() local
808 shared_secret=GetPolicyValue("shared-secret"); in DistributePixelCacheClient()
809 if (shared_secret == (char *) NULL) in DistributePixelCacheClient()
812 (void) CopyMagickString((char *) p,shared_secret,MagickPathExtent); in DistributePixelCacheClient()
813 p+=strlen(shared_secret); in DistributePixelCacheClient()
[all …]
/external/wpa_supplicant_8/src/eap_server/
Dikev2.c28 os_free(data->shared_secret); in ikev2_initiator_deinit()
619 &data->keys, 0, data->shared_secret, in ikev2_process_auth_secret()
1069 &data->keys, 1, data->shared_secret, in ikev2_build_auth()
1141 os_free(data->shared_secret); in ikev2_build_sa_auth()
1142 data->shared_secret = os_malloc(16); in ikev2_build_sa_auth()
1143 if (data->shared_secret == NULL) in ikev2_build_sa_auth()
1146 if (random_get_bytes(data->shared_secret, 16)) in ikev2_build_sa_auth()
1149 os_free(data->shared_secret); in ikev2_build_sa_auth()
1150 data->shared_secret = os_malloc(secret_len); in ikev2_build_sa_auth()
1151 if (data->shared_secret == NULL) in ikev2_build_sa_auth()
[all …]
Dikev2.h43 u8 *shared_secret; member
/external/wpa_supplicant_8/src/ap/
Dieee802_11_auth.c172 hapd->conf->radius->auth_server->shared_secret, in hostapd_radius_acl_query()
428 const u8 *shared_secret, in decode_tunnel_passwords() argument
444 msg, &passphraselen, shared_secret, shared_secret_len, in decode_tunnel_passwords()
504 const u8 *shared_secret, size_t shared_secret_len, in hostapd_acl_recv_radius() argument
527 if (radius_msg_verify(msg, shared_secret, shared_secret_len, req, 0)) { in hostapd_acl_recv_radius()
576 decode_tunnel_passwords(hapd, shared_secret, shared_secret_len, in hostapd_acl_recv_radius()
/external/wpa_supplicant_8/src/eap_common/
Deap_eke_common.c435 NULL, 0, sess->shared_secret) < 0) in eap_eke_shared_secret()
438 sess->shared_secret, sess->auth_len); in eap_eke_shared_secret()
482 if (eap_eke_prfplus(sess->prf, sess->shared_secret, sess->prf_len, in eap_eke_derive_ke_ki()
530 if (eap_eke_prfplus(sess->prf, sess->shared_secret, sess->prf_len, in eap_eke_derive_ka()
575 if (eap_eke_prfplus(sess->prf, sess->shared_secret, sess->prf_len, in eap_eke_derive_msk()
746 os_memset(sess->shared_secret, 0, EAP_EKE_MAX_HASH_LEN); in eap_eke_session_clean()
/external/wpa_supplicant_8/src/eap_peer/
Dikev2.h44 u8 *shared_secret; member
/external/wpa_supplicant_8/wpa_supplicant/
Deapol_test.c675 os_free(e->radius_conf->auth_server->shared_secret); in test_eapol_clean()
846 const u8 *shared_secret, in ieee802_1x_get_keys() argument
853 keys = radius_msg_get_ms_keys(msg, req, shared_secret, in ieee802_1x_get_keys()
857 keys = radius_msg_get_cisco_keys(msg, req, shared_secret, in ieee802_1x_get_keys()
904 const u8 *shared_secret, size_t shared_secret_len, in ieee802_1x_receive_auth() argument
919 } else if (radius_msg_verify(msg, shared_secret, shared_secret_len, in ieee802_1x_receive_auth()
942 ieee802_1x_get_keys(e, msg, req, shared_secret, in ieee802_1x_receive_auth()
1040 as->shared_secret = (u8 *) os_strdup(secret); in wpa_init_conf()

12