Home
last modified time | relevance | path

Searched refs:pkA (Results 1 – 4 of 4) sorted by relevance

/freebsd/contrib/libfido2/regress/
H A Drs256.c119 EVP_PKEY *pkA = NULL; in rs256_pk_cmp() local
124 if ((pkA = EVP_PKEY_from_PEM(ptr, len)) == NULL) { in rs256_pk_cmp()
132 if ((r = rs256_pk_from_EVP_PKEY(k, pkA)) != FIDO_OK) { in rs256_pk_cmp()
140 if ((r = EVP_PKEY_cmp(pkA, pkB)) != 1) { in rs256_pk_cmp()
147 EVP_PKEY_free(pkA); in rs256_pk_cmp()
173 rs256_pk_t *pkA; in valid_size() local
177 ASSERT_NOT_NULL((pkA = rs256_pk_new())); in valid_size()
179 ASSERT_OK(rs256_pk_from_EVP_PKEY(pkA, pkeyA)); in valid_size()
187 rs256_pk_free(&pkA); in valid_size()
H A Deddsa.c69 EVP_PKEY *pkA = NULL; in eddsa_pk_cmp() local
74 if ((pkA = EVP_PKEY_from_PEM(ptr, len)) == NULL) { in eddsa_pk_cmp()
82 if ((r = eddsa_pk_from_EVP_PKEY(k, pkA)) != FIDO_OK) { in eddsa_pk_cmp()
90 if ((r = EVP_PKEY_cmp(pkA, pkB)) != 1) { in eddsa_pk_cmp()
97 EVP_PKEY_free(pkA); in eddsa_pk_cmp()
123 eddsa_pk_t *pkA = NULL; in valid_key() local
135 ASSERT_NOT_NULL((pkA = eddsa_pk_new())); in valid_key()
137 ASSERT_OK(eddsa_pk_from_EVP_PKEY(pkA, pkeyA)); in valid_key()
146 eddsa_pk_free(&pkA); in valid_key()
H A Des256.c99 EVP_PKEY *pkA = NULL; in es256_pk_cmp() local
104 if ((pkA = EVP_PKEY_from_PEM(ptr, len)) == NULL) { in es256_pk_cmp()
112 if ((r = es256_pk_from_EVP_PKEY(k, pkA)) != FIDO_OK) { in es256_pk_cmp()
120 if ((r = EVP_PKEY_cmp(pkA, pkB)) != 1) { in es256_pk_cmp()
127 EVP_PKEY_free(pkA); in es256_pk_cmp()
168 es256_pk_t *pkA; in valid_curve() local
172 ASSERT_NOT_NULL((pkA = es256_pk_new())); in valid_curve()
174 ASSERT_OK(es256_pk_from_EVP_PKEY(pkA, pkeyA)); in valid_curve()
181 es256_pk_free(&pkA); in valid_curve()
H A Des384.c111 EVP_PKEY *pkA = NULL; in es384_pk_cmp() local
116 if ((pkA = EVP_PKEY_from_PEM(ptr, len)) == NULL) { in es384_pk_cmp()
124 if ((r = es384_pk_from_EVP_PKEY(k, pkA)) != FIDO_OK) { in es384_pk_cmp()
132 if ((r = EVP_PKEY_cmp(pkA, pkB)) != 1) { in es384_pk_cmp()
139 EVP_PKEY_free(pkA); in es384_pk_cmp()
182 es384_pk_t *pkA; in valid_curve() local
186 ASSERT_NOT_NULL((pkA = es384_pk_new())); in valid_curve()
188 ASSERT_OK(es384_pk_from_EVP_PKEY(pkA, pkeyA)); in valid_curve()
195 es384_pk_free(&pkA); in valid_curve()