Lines Matching refs:auth

249     EVP_PKEY *auth = NULL;  in test_ec_auth_key_curve_mismatch()  local
251 if (!TEST_ptr(auth = EVP_PKEY_Q_keygen(libctx, NULL, "EC", "P-521"))) in test_ec_auth_key_curve_mismatch()
254 ret = TEST_int_eq(EVP_PKEY_auth_encapsulate_init(rctx[0], auth, opparam), 0); in test_ec_auth_key_curve_mismatch()
255 EVP_PKEY_free(auth); in test_ec_auth_key_curve_mismatch()
431 EVP_PKEY *auth = NULL; in test_noauthpublic() local
439 if (!TEST_ptr(auth = new_raw_private_key(t->curve, t->rpriv, in test_noauthpublic()
444 if (!TEST_int_eq(EVP_PKEY_auth_encapsulate_init(ctx, auth, in test_noauthpublic()
448 if (!TEST_int_eq(EVP_PKEY_auth_decapsulate_init(ctx, auth, in test_noauthpublic()
458 EVP_PKEY_free(auth); in test_noauthpublic()
509 int ret = 0, auth = 0; in test_ec_noikme() local
524 auth = 1; in test_ec_noikme()
529 auth ? " with auth" : ""); in test_ec_noikme()
533 || (auth in test_ec_noikme()
539 || (auth in test_ec_noikme()
649 EVP_PKEY *auth = NULL; in test_ec_badauth() local
662 if (!TEST_ptr(auth = new_raw_private_key(t->curve, t->rpriv, t->rprivlen, in test_ec_badauth()
666 if (!TEST_int_eq(EVP_PKEY_auth_encapsulate_init(ctx, auth, in test_ec_badauth()
672 if (!TEST_int_eq(EVP_PKEY_auth_decapsulate_init(ctx, auth, opparam), 1) in test_ec_badauth()
682 EVP_PKEY_free(auth); in test_ec_badauth()
758 EVP_PKEY *auth = NULL; in test_ecx_auth_key_curve_mismatch() local
760 if (!TEST_ptr(auth = EVP_PKEY_Q_keygen(libctx, NULL, "X448"))) in test_ecx_auth_key_curve_mismatch()
764 auth, opparam), 0); in test_ecx_auth_key_curve_mismatch()
765 EVP_PKEY_free(auth); in test_ecx_auth_key_curve_mismatch()