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);
921 const char *alg = NULL;
1052 alg = "X25519";
1060 alg = "X448";
1068 alg = "ED25519";
1076 alg = "ED448";
1082 ctx = EVP_PKEY_CTX_new_from_name(NULL, alg, NULL);
1152 ret = test_print_key_using_encoder_public(alg, pk);
1154 ret = test_print_key_using_pem(alg, pk)
1155 && test_print_key_using_encoder(alg, pk);
1187 const char *alg = "EC";
1258 ctx = EVP_PKEY_CTX_new_from_name(NULL, alg, NULL);
1350 ret = test_print_key_using_pem(alg, pk)
1351 && test_print_key_using_encoder(alg, pk);