cose_key
if (cose_key.kty != COSE_KTY_OKP ||
cose_key.crv != COSE_ED25519) {
if (cose_key.kty != COSE_KTY_RSA) {
fido_log_debug("%s: unknown alg %d", __func__, cose_key.alg);
*cose_alg = cose_key.alg;
struct cose_key *cose_key = arg;
cbor_get_int(val) > INT_MAX || cose_key->kty != 0) {
cose_key->kty = (int)cbor_get_int(val);
cbor_get_int(val) > INT_MAX || cose_key->alg != 0) {
cose_key->alg = -(int)cbor_get_int(val) - 1;
cose_key->crv == 0)
cose_key->crv = (int)cbor_get_int(val);
struct cose_key cose_key;
memset(&cose_key, 0, sizeof(cose_key));
cbor_map_iter(item, &cose_key, find_cose_alg) < 0) {
switch (cose_key.alg) {
if (cose_key.kty != COSE_KTY_EC2 ||
cose_key.crv != COSE_P256) {