Home
last modified time | relevance | path

Searched refs:secret_len (Results 1 – 25 of 74) sorted by relevance

123

/third_party/lwip/src/netif/ppp/
Dchap_ms.c250 const unsigned char *secret, int secret_len, in chapms_verify_response() argument
273 ChapMS(pcb, (const u_char *)challenge, (const char *)secret, secret_len, md); in chapms_verify_response()
298 const unsigned char *secret, int secret_len, in chapms2_verify_response() argument
313 (const char *)secret, secret_len, md, in chapms2_verify_response()
375 const unsigned char *challenge, const char *secret, int secret_len, in chapms_make_response() argument
382 ChapMS(pcb, challenge, secret, secret_len, response); in chapms_make_response()
386 const unsigned char *challenge, const char *secret, int secret_len, in chapms2_make_response() argument
397 our_name, secret, secret_len, response, private_, in chapms2_make_response()
572 static void NTPasswordHash(u_char *secret, int secret_len, u_char hash[MD4_SIGNATURE_SIZE]) { in NTPasswordHash() argument
577 lwip_md4_update(&md4Context, secret, secret_len); in NTPasswordHash()
[all …]
Dchap-md5.c62 const unsigned char *secret, int secret_len, in chap_md5_verify_response() argument
79 lwip_md5_update(&ctx, secret, secret_len); in chap_md5_verify_response()
96 const unsigned char *challenge, const char *secret, int secret_len, in chap_md5_make_response() argument
108 lwip_md5_update(&ctx, (const u_char *)secret, secret_len); in chap_md5_make_response()
Dchap-new.c417 int secret_len; local
420 if (!get_secret(pcb, name, ourname, (char *)secret, &secret_len, 1)) {
424 ok = digest->verify_response(pcb, id, name, secret, secret_len, challenge,
438 int secret_len; local
469 if (!get_secret(pcb, pcb->chap_client.name, rname, secret, &secret_len, 0)) {
470 secret_len = 0; /* assume null secret if can't find one */
479 secret, secret_len, pcb->chap_client.priv);
480 memset(secret, 0, secret_len);
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/radius/
Dradius.h241 size_t secret_len);
243 size_t secret_len, const u8 *req_authenticator);
245 size_t secret_len,
248 size_t secret_len);
250 size_t secret_len,
253 size_t secret_len);
255 size_t secret_len,
264 size_t secret_len, struct radius_msg *sent_msg,
267 size_t secret_len, const u8 *req_auth);
273 const u8 *secret, size_t secret_len);
[all …]
Dradius.c368 size_t secret_len) in radius_msg_finish() argument
384 hmac_md5(secret, secret_len, wpabuf_head(msg->buf), in radius_msg_finish()
399 size_t secret_len, const u8 *req_authenticator) in radius_msg_finish_srv() argument
416 hmac_md5(secret, secret_len, wpabuf_head(msg->buf), in radius_msg_finish_srv()
427 len[3] = secret_len; in radius_msg_finish_srv()
440 size_t secret_len, in radius_msg_finish_das_resp() argument
458 hmac_md5(secret, secret_len, wpabuf_head(msg->buf), in radius_msg_finish_das_resp()
465 len[1] = secret_len; in radius_msg_finish_das_resp()
479 size_t secret_len) in radius_msg_finish_acct() argument
489 len[1] = secret_len; in radius_msg_finish_acct()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/radius/
Dradius.h241 size_t secret_len);
243 size_t secret_len, const u8 *req_authenticator);
245 size_t secret_len,
248 size_t secret_len);
250 size_t secret_len,
253 size_t secret_len);
255 size_t secret_len,
264 size_t secret_len, struct radius_msg *sent_msg,
267 size_t secret_len, const u8 *req_auth);
273 const u8 *secret, size_t secret_len);
[all …]
Dradius.c368 size_t secret_len) in radius_msg_finish() argument
384 hmac_md5(secret, secret_len, wpabuf_head(msg->buf), in radius_msg_finish()
399 size_t secret_len, const u8 *req_authenticator) in radius_msg_finish_srv() argument
416 hmac_md5(secret, secret_len, wpabuf_head(msg->buf), in radius_msg_finish_srv()
427 len[3] = secret_len; in radius_msg_finish_srv()
440 size_t secret_len, in radius_msg_finish_das_resp() argument
458 hmac_md5(secret, secret_len, wpabuf_head(msg->buf), in radius_msg_finish_das_resp()
465 len[1] = secret_len; in radius_msg_finish_das_resp()
479 size_t secret_len) in radius_msg_finish_acct() argument
489 len[1] = secret_len; in radius_msg_finish_acct()
[all …]
/third_party/boringssl/src/crypto/fipsmodule/tls/
Dkdf.c69 const uint8_t *secret, size_t secret_len, in tls1_P_hash() argument
83 if (!HMAC_Init_ex(&ctx_init, secret, secret_len, md, NULL) || in tls1_P_hash()
139 const uint8_t *secret, size_t secret_len, in CRYPTO_tls1_prf() argument
151 size_t secret_half = secret_len - (secret_len / 2); in CRYPTO_tls1_prf()
158 secret += secret_len - secret_half; in CRYPTO_tls1_prf()
159 secret_len = secret_half; in CRYPTO_tls1_prf()
163 return tls1_P_hash(out, out_len, digest, secret, secret_len, label, label_len, in CRYPTO_tls1_prf()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
Dsha256-tlsprf.c29 int tls_prf_sha256(const u8 *secret, size_t secret_len, const char *label, in tls_prf_sha256() argument
53 if (hmac_sha256_vector(secret, secret_len, 2, &addr[1], &len[1], A) < 0) in tls_prf_sha256()
58 if (hmac_sha256_vector(secret, secret_len, 3, addr, len, P) < in tls_prf_sha256()
60 hmac_sha256(secret, secret_len, A, SHA256_MAC_LEN, A) < 0) in tls_prf_sha256()
Dsha384-kdf.c32 int hmac_sha384_kdf(const u8 *secret, size_t secret_len, in hmac_sha384_kdf() argument
56 if (hmac_sha384_vector(secret, secret_len, 3, &addr[1], &len[1], T) < 0) in hmac_sha384_kdf()
77 if (hmac_sha384_vector(secret, secret_len, 4, addr, len, T) < 0) in hmac_sha384_kdf()
Dsha256-kdf.c32 int hmac_sha256_kdf(const u8 *secret, size_t secret_len, in hmac_sha256_kdf() argument
56 if (hmac_sha256_vector(secret, secret_len, 3, &addr[1], &len[1], T) < 0) in hmac_sha256_kdf()
77 if (hmac_sha256_vector(secret, secret_len, 4, addr, len, T) < 0) in hmac_sha256_kdf()
Dsha512-kdf.c32 int hmac_sha512_kdf(const u8 *secret, size_t secret_len, in hmac_sha512_kdf() argument
56 if (hmac_sha512_vector(secret, secret_len, 3, &addr[1], &len[1], T) < 0) in hmac_sha512_kdf()
77 if (hmac_sha512_vector(secret, secret_len, 4, addr, len, T) < 0) in hmac_sha512_kdf()
Dsha1-tlsprf.c30 int tls_prf_sha1_md5(const u8 *secret, size_t secret_len, const char *label, in tls_prf_sha1_md5() argument
63 L_S1 = L_S2 = (secret_len + 1) / 2; in tls_prf_sha1_md5()
66 if (secret_len & 1) { in tls_prf_sha1_md5()
Dsha256.h23 int tls_prf_sha256(const u8 *secret, size_t secret_len,
26 int hmac_sha256_kdf(const u8 *secret, size_t secret_len,
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
Dsha256-tlsprf.c29 int tls_prf_sha256(const u8 *secret, size_t secret_len, const char *label, in tls_prf_sha256() argument
53 if (hmac_sha256_vector(secret, secret_len, 2, &addr[1], &len[1], A) < 0) in tls_prf_sha256()
58 if (hmac_sha256_vector(secret, secret_len, 3, addr, len, P) < in tls_prf_sha256()
60 hmac_sha256(secret, secret_len, A, SHA256_MAC_LEN, A) < 0) in tls_prf_sha256()
Dsha256-kdf.c32 int hmac_sha256_kdf(const u8 *secret, size_t secret_len, in hmac_sha256_kdf() argument
56 if (hmac_sha256_vector(secret, secret_len, 3, &addr[1], &len[1], T) < 0) in hmac_sha256_kdf()
77 if (hmac_sha256_vector(secret, secret_len, 4, addr, len, T) < 0) in hmac_sha256_kdf()
Dsha384-kdf.c32 int hmac_sha384_kdf(const u8 *secret, size_t secret_len, in hmac_sha384_kdf() argument
56 if (hmac_sha384_vector(secret, secret_len, 3, &addr[1], &len[1], T) < 0) in hmac_sha384_kdf()
77 if (hmac_sha384_vector(secret, secret_len, 4, addr, len, T) < 0) in hmac_sha384_kdf()
Dsha512-kdf.c32 int hmac_sha512_kdf(const u8 *secret, size_t secret_len, in hmac_sha512_kdf() argument
56 if (hmac_sha512_vector(secret, secret_len, 3, &addr[1], &len[1], T) < 0) in hmac_sha512_kdf()
77 if (hmac_sha512_vector(secret, secret_len, 4, addr, len, T) < 0) in hmac_sha512_kdf()
Dsha1-tlsprf.c30 int tls_prf_sha1_md5(const u8 *secret, size_t secret_len, const char *label, in tls_prf_sha1_md5() argument
63 L_S1 = L_S2 = (secret_len + 1) / 2; in tls_prf_sha1_md5()
66 if (secret_len & 1) { in tls_prf_sha1_md5()
Dsha256.h23 int tls_prf_sha256(const u8 *secret, size_t secret_len,
26 int hmac_sha256_kdf(const u8 *secret, size_t secret_len,
/third_party/boringssl/src/crypto/hkdf/
Dhkdf.c27 const uint8_t *secret, size_t secret_len, const uint8_t *salt, in HKDF() argument
33 if (!HKDF_extract(prk, &prk_len, digest, secret, secret_len, salt, in HKDF()
43 const uint8_t *secret, size_t secret_len, const uint8_t *salt, in HKDF_extract() argument
50 if (HMAC(digest, salt, salt_len, secret, secret_len, out_key, &len) == NULL) { in HKDF_extract()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/
Dchap.c15 int chap_md5(u8 id, const u8 *secret, size_t secret_len, const u8 *challenge, in chap_md5() argument
24 len[1] = secret_len; in chap_md5()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/
Dchap.c15 int chap_md5(u8 id, const u8 *secret, size_t secret_len, const u8 *challenge, in chap_md5() argument
24 len[1] = secret_len; in chap_md5()
/third_party/boringssl/src/include/openssl/
Dhkdf.h36 const uint8_t *secret, size_t secret_len,
46 size_t secret_len, const uint8_t *salt,
/third_party/boringssl/src/crypto/ec_extra/
Dec_derive.c30 size_t secret_len) { in EC_KEY_derive_from_secret() argument
61 if (!HKDF(derived, derived_len, EVP_sha256(), secret, secret_len, in EC_KEY_derive_from_secret()

123