Lines Matching defs:alg
54 static int compare_with_file(const char *alg, int type, BIO *membio)
96 BIO_snprintf(filename, sizeof(filename), "%s.%s", alg, suffix);
141 static int test_print_key_using_pem(const char *alg, const EVP_PKEY *pk)
184 || !TEST_true(compare_with_file(alg, PRIV_TEXT, membio))
187 || !TEST_true(compare_with_file(alg, PUB_PEM, membio))
191 || !TEST_true(compare_with_file(alg, PRIV_PEM, membio))
205 static int test_print_key_type_using_encoder(const char *alg, int type,
278 || !TEST_true(compare_with_file(alg, type, membio)))
304 || !TEST_true(compare_with_file(alg, type, membio)))
314 static int test_print_key_using_encoder(const char *alg, const EVP_PKEY *pk)
320 ret = ret && test_print_key_type_using_encoder(alg, i, pk);
326 static int test_print_key_using_encoder_public(const char *alg,
333 ret = ret && test_print_key_type_using_encoder(alg, i, pk);
912 const char *alg = NULL;
1043 alg = "X25519";
1051 alg = "X448";
1059 alg = "ED25519";
1067 alg = "ED448";
1073 ctx = EVP_PKEY_CTX_new_from_name(NULL, alg, NULL);
1137 ret = test_print_key_using_encoder_public(alg, pk);
1139 ret = test_print_key_using_pem(alg, pk)
1140 && test_print_key_using_encoder(alg, pk);
1169 const char *alg = "EC";
1240 ctx = EVP_PKEY_CTX_new_from_name(NULL, alg, NULL);
1323 ret = test_print_key_using_pem(alg, pk)
1324 && test_print_key_using_encoder(alg, pk);