Lines Matching refs:priv
123 BIGNUM *priv = NULL; in test_ec_dhkem_derivekey_fail() local
161 BN_free(priv); in test_ec_dhkem_derivekey_fail()
272 EVP_PKEY *priv = NULL; in test_ec_invalid_private_key() local
281 ret = TEST_ptr(priv = new_raw_private_key("P-256", order, sizeof(order), in test_ec_invalid_private_key()
283 && TEST_ptr(ctx = EVP_PKEY_CTX_new_from_pkey(libctx, priv, NULL)) in test_ec_invalid_private_key()
285 EVP_PKEY_free(priv); in test_ec_invalid_private_key()
397 EVP_PKEY *priv = NULL; in test_nopublic() local
404 if (!TEST_ptr(priv = new_raw_private_key(t->curve, t->rpriv, t->rprivlen, in test_nopublic()
407 if (!TEST_ptr(ctx = EVP_PKEY_CTX_new_from_pkey(libctx, priv, NULL))) in test_nopublic()
422 EVP_PKEY_free(priv); in test_nopublic()
475 BIGNUM *priv = NULL; in test_ec_dhkem_derivekey() local
491 &priv)) in test_ec_dhkem_derivekey()
492 && TEST_int_gt(privkeylen = BN_bn2bin(priv, privkey), 0) in test_ec_dhkem_derivekey()
494 && TEST_mem_eq(privkey, privkeylen, t->priv, t->privlen) in test_ec_dhkem_derivekey()
497 BN_free(priv); in test_ec_dhkem_derivekey()
718 memcpy(masked_priv, t->priv, t->privlen); in test_ecx_dhkem_derivekey()