Home
last modified time | relevance | path

Searched refs:prk (Results 1 – 8 of 8) sorted by relevance

/openssl/include/internal/
H A Dhpke_util.h72 unsigned char *prk, size_t prklen,
78 const unsigned char *prk, size_t prklen,
82 unsigned char *prk, size_t prklen,
90 const unsigned char *prk, size_t prklen,
/openssl/crypto/dsa/
H A Ddsa_key.c46 BIGNUM *prk = BN_new(); in ossl_dsa_generate_public_key() local
48 if (prk == NULL) in ossl_dsa_generate_public_key()
50 BN_with_flags(prk, priv_key, BN_FLG_CONSTTIME); in ossl_dsa_generate_public_key()
53 if (!BN_mod_exp(pub_key, dsa->params.g, prk, dsa->params.p, ctx)) in ossl_dsa_generate_public_key()
57 BN_clear_free(prk); in ossl_dsa_generate_public_key()
/openssl/providers/implementations/kem/
H A Decx_kem.c302 uint8_t prk[EVP_MAX_MD_SIZE]; in dhkem_extract_and_expand() local
306 if (prklen > sizeof(prk)) in dhkem_extract_and_expand()
312 ret = ossl_hpke_labeled_extract(kctx, prk, prklen, in dhkem_extract_and_expand()
315 && ossl_hpke_labeled_expand(kctx, okm, okmlen, prk, prklen, in dhkem_extract_and_expand()
319 OPENSSL_cleanse(prk, prklen); in dhkem_extract_and_expand()
343 unsigned char prk[EVP_MAX_MD_SIZE]; in ossl_ecx_dhkem_derive_private() local
362 if (!ossl_hpke_labeled_extract(kdfctx, prk, info->Nsecret, in ossl_ecx_dhkem_derive_private()
367 if (!ossl_hpke_labeled_expand(kdfctx, privout, info->Nsk, prk, info->Nsecret, in ossl_ecx_dhkem_derive_private()
373 OPENSSL_cleanse(prk, sizeof(prk)); in ossl_ecx_dhkem_derive_private()
H A Dec_kem.c345 uint8_t prk[EVP_MAX_MD_SIZE]; in dhkem_extract_and_expand() local
349 if (prklen > sizeof(prk)) in dhkem_extract_and_expand()
355 ret = ossl_hpke_labeled_extract(kctx, prk, prklen, in dhkem_extract_and_expand()
358 && ossl_hpke_labeled_expand(kctx, okm, okmlen, prk, prklen, in dhkem_extract_and_expand()
362 OPENSSL_cleanse(prk, prklen); in dhkem_extract_and_expand()
387 unsigned char prk[OSSL_HPKE_MAX_SECRET]; in ossl_ec_dhkem_derive_private() local
418 if (!ossl_hpke_labeled_extract(kdfctx, prk, info->Nsecret, in ossl_ec_dhkem_derive_private()
426 prk, info->Nsecret, in ossl_ec_dhkem_derive_private()
442 OPENSSL_cleanse(prk, sizeof(prk)); in ossl_ec_dhkem_derive_private()
/openssl/crypto/hpke/
H A Dhpke_util.c274 unsigned char *prk, size_t prklen, in ossl_hpke_kdf_extract() argument
278 return kdf_derive(kctx, prk, prklen, EVP_KDF_HKDF_MODE_EXTRACT_ONLY, in ossl_hpke_kdf_extract()
285 const unsigned char *prk, size_t prklen, in ossl_hpke_kdf_expand() argument
289 NULL, 0, prk, prklen, info, infolen); in ossl_hpke_kdf_expand()
296 unsigned char *prk, size_t prklen, in ossl_hpke_labeled_extract() argument
333 ret = ossl_hpke_kdf_extract(kctx, prk, prklen, salt, saltlen, in ossl_hpke_labeled_extract()
347 const unsigned char *prk, size_t prklen, in ossl_hpke_labeled_expand() argument
385 prk, prklen, labeled_info, labeled_infolen); in ossl_hpke_labeled_expand()
/openssl/providers/implementations/kdfs/
H A Dhkdf.c62 unsigned char *prk, size_t prk_len);
64 const unsigned char *prk, size_t prk_len,
461 unsigned char prk[EVP_MAX_MD_SIZE]; in HKDF() local
472 salt, salt_len, ikm, ikm_len, prk, prk_len)) in HKDF()
476 ret = HKDF_Expand(evp_md, prk, prk_len, info, info_len, okm, okm_len); in HKDF()
477 OPENSSL_cleanse(prk, sizeof(prk)); in HKDF()
509 unsigned char *prk, size_t prk_len) in HKDF_Extract() argument
522 salt_len, ikm, ikm_len, prk, EVP_MD_get_size(evp_md), NULL) in HKDF_Extract()
566 const unsigned char *prk, size_t prk_len, in HKDF_Expand() argument
592 if (!HMAC_Init_ex(hmac, prk, prk_len, evp_md, NULL)) in HKDF_Expand()
/openssl/crypto/dh/
H A Ddh_key.c233 BIGNUM *prk = BN_new(); in ossl_dh_generate_public_key() local
236 if (prk == NULL) in ossl_dh_generate_public_key()
253 BN_with_flags(prk, priv_key, BN_FLG_CONSTTIME); in ossl_dh_generate_public_key()
256 if (!dh->meth->bn_mod_exp(dh, pub_key, dh->params.g, prk, dh->params.p, in ossl_dh_generate_public_key()
261 BN_clear_free(prk); in ossl_dh_generate_public_key()
/openssl/test/
H A Dtls13secretstest.c241 static int test_secret(SSL_CONNECTION *s, unsigned char *prk, in test_secret() argument
258 if (!tls13_hkdf_expand(s, md, prk, label, labellen, hash, hashsize, in test_secret()

Completed in 28 milliseconds