Lines Matching refs:prime
1406 static int crypto_mbedtls_dh_set_bin_pg(mbedtls_dhm_context *ctx, u8 generator, const u8 *prime, si… in crypto_mbedtls_dh_set_bin_pg() argument
1412 int ret = mbedtls_mpi_lset(&G, generator) || mbedtls_mpi_read_binary(&P, prime, prime_len) || in crypto_mbedtls_dh_set_bin_pg()
1420 …mbedtls_dhm_context *ctx, u8 generator, const u8 *prime, size_t prime_len, u8 *privkey, u8 *pubkey) in crypto_mbedtls_dh_init_public() argument
1422 if (crypto_mbedtls_dh_set_bin_pg(ctx, generator, prime, prime_len) || in crypto_mbedtls_dh_init_public()
1430 int crypto_dh_init(u8 generator, const u8 *prime, size_t prime_len, u8 *privkey, u8 *pubkey) in crypto_dh_init() argument
1439 int ret = crypto_mbedtls_dh_init_public(&ctx, generator, prime, prime_len, privkey, pubkey); in crypto_dh_init()
1447 const u8 *prime, in crypto_dh_derive_secret() argument
1481 os_memcpy(buf + 2, prime, prime_len); in crypto_dh_derive_secret()
1519 const unsigned char *const prime = RFC3526_PRIME_1536; in dh5_init() local
1530 … crypto_mbedtls_dh_init_public(ctx, generator, prime, prime_len, wpabuf_put(wpriv, prime_len), in dh5_init()
1550 const unsigned char *const prime = RFC3526_PRIME_1536; in dh5_init_fixed() local
1559 if (crypto_mbedtls_dh_set_bin_pg(ctx, generator, prime, prime_len) == 0 in dh5_init_fixed()