Home
last modified time | relevance | path

Searched refs:pubkey_len (Results 1 – 9 of 9) sorted by relevance

/external/wpa_supplicant_8/src/crypto/
Dcrypto_internal-modexp.c19 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 …]
Dcrypto_nettle.c310 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 …]
Dcrypto_gnutls.c289 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 …]
Dcrypto_libtomcrypt.c703 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()
Dcrypto_openssl.c523 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()
Dcrypto.h425 const u8 *pubkey, size_t pubkey_len,
Dcrypto_wolfssl.c831 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/
Dtpm-v1.c706 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/
Dtpm-v1.h429 size_t *pubkey_len);