/external/wpa_supplicant_8/src/crypto/ |
D | crypto_internal-modexp.c | 19 size_t pubkey_len, pad; in crypto_dh_init() local 28 pubkey_len = prime_len; in crypto_dh_init() 30 pubkey, &pubkey_len) < 0) in crypto_dh_init() 32 if (pubkey_len < prime_len) { in crypto_dh_init() 33 pad = prime_len - pubkey_len; in crypto_dh_init() 34 os_memmove(pubkey + pad, pubkey, pubkey_len); in crypto_dh_init() 45 const u8 *pubkey, size_t pubkey_len, in crypto_dh_derive_secret() argument 51 if (pubkey_len > prime_len || in crypto_dh_derive_secret() 52 (pubkey_len == prime_len && in crypto_dh_derive_secret() 57 if (!pub || bignum_set_unsigned_bin(pub, pubkey, pubkey_len) < 0 || in crypto_dh_derive_secret() [all …]
|
D | crypto_nettle.c | 310 size_t pubkey_len, pad; in crypto_dh_init() local 319 pubkey_len = prime_len; in crypto_dh_init() 321 pubkey, &pubkey_len) < 0) in crypto_dh_init() 323 if (pubkey_len < prime_len) { in crypto_dh_init() 324 pad = prime_len - pubkey_len; in crypto_dh_init() 325 os_memmove(pubkey + pad, pubkey, pubkey_len); in crypto_dh_init() 336 const u8 *pubkey, size_t pubkey_len, in crypto_dh_derive_secret() argument 342 if (pubkey_len > prime_len || in crypto_dh_derive_secret() 343 (pubkey_len == prime_len && in crypto_dh_derive_secret() 348 mpz_import(pub, pubkey_len, 1, 1, 1, 0, pubkey); in crypto_dh_derive_secret() [all …]
|
D | crypto_gnutls.c | 289 size_t pubkey_len, pad; in crypto_dh_init() local 298 pubkey_len = prime_len; in crypto_dh_init() 300 pubkey, &pubkey_len) < 0) in crypto_dh_init() 302 if (pubkey_len < prime_len) { in crypto_dh_init() 303 pad = prime_len - pubkey_len; in crypto_dh_init() 304 os_memmove(pubkey + pad, pubkey, pubkey_len); in crypto_dh_init() 315 const u8 *pubkey, size_t pubkey_len, in crypto_dh_derive_secret() argument 321 if (pubkey_len > prime_len || in crypto_dh_derive_secret() 322 (pubkey_len == prime_len && in crypto_dh_derive_secret() 326 if (gcry_mpi_scan(&pub, GCRYMPI_FMT_USG, pubkey, pubkey_len, NULL) != in crypto_dh_derive_secret() [all …]
|
D | crypto_libtomcrypt.c | 703 size_t pubkey_len, pad; in crypto_dh_init() local 712 pubkey_len = prime_len; in crypto_dh_init() 714 pubkey, &pubkey_len) < 0) in crypto_dh_init() 716 if (pubkey_len < prime_len) { in crypto_dh_init() 717 pad = prime_len - pubkey_len; in crypto_dh_init() 718 os_memmove(pubkey + pad, pubkey, pubkey_len); in crypto_dh_init() 729 const u8 *pubkey, size_t pubkey_len, in crypto_dh_derive_secret() argument 733 return crypto_mod_exp(pubkey, pubkey_len, privkey, privkey_len, in crypto_dh_derive_secret()
|
D | crypto_openssl.c | 523 size_t pubkey_len, pad; in crypto_dh_init() local 532 pubkey_len = prime_len; in crypto_dh_init() 534 pubkey, &pubkey_len) < 0) in crypto_dh_init() 536 if (pubkey_len < prime_len) { in crypto_dh_init() 537 pad = prime_len - pubkey_len; in crypto_dh_init() 538 os_memmove(pubkey + pad, pubkey, pubkey_len); in crypto_dh_init() 549 const u8 *pubkey, size_t pubkey_len, in crypto_dh_derive_secret() argument 555 pub = BN_bin2bn(pubkey, pubkey_len, NULL); in crypto_dh_derive_secret() 580 res = crypto_mod_exp(pubkey, pubkey_len, privkey, privkey_len, in crypto_dh_derive_secret()
|
D | crypto.h | 425 const u8 *pubkey, size_t pubkey_len,
|
D | crypto_wolfssl.c | 831 const u8 *pubkey, size_t pubkey_len, in crypto_dh_derive_secret() argument 847 pubkey_len) != 0) in crypto_dh_derive_secret()
|
/external/u-boot/lib/ |
D | tpm-v1.c | 706 size_t *pubkey_len) in tpm_get_pub_key_oiap() argument 757 - TPM_RESPONSE_AUTH_LENGTH) > *pubkey_len) in tpm_get_pub_key_oiap() 759 *pubkey_len = response_length - TPM_RESPONSE_HEADER_LENGTH in tpm_get_pub_key_oiap()
|
/external/u-boot/include/ |
D | tpm-v1.h | 429 size_t *pubkey_len);
|