Searched refs:cose_alg (Results 1 - 7 of 7) sorted by relevance

/netbsd-current/external/bsd/libfido2/dist/fuzz/
H A Dfuzz_cred.c353 int cose_alg = 0; local
360 cose_alg = COSE_ES256;
363 cose_alg = COSE_RS256;
366 cose_alg = COSE_ES384;
369 cose_alg = COSE_EDDSA;
375 make_cred(cred, p->opt, cose_alg, &p->cdh, p->rp_id, p->rp_name,
379 verify_cred(cose_alg,
H A Dfuzz_assert.c392 int cose_alg = 0; local
402 cose_alg = COSE_ES256;
414 cose_alg = COSE_RS256;
426 cose_alg = COSE_ES384;
439 cose_alg = COSE_EDDSA;
462 verify_assert(cose_alg,
/netbsd-current/external/bsd/libfido2/dist/src/
H A Dcbor.c472 cbor_encode_pubkey_param(int cose_alg) argument
483 cose_alg > -1 || cose_alg < INT16_MIN)
488 if (-cose_alg - 1 > UINT8_MAX)
489 alg.value = cbor_build_negint16((uint16_t)(-cose_alg - 1));
491 alg.value = cbor_build_negint8((uint8_t)(-cose_alg - 1));
980 get_cose_alg(const cbor_item_t *item, int *cose_alg) argument
986 *cose_alg = 0;
1029 *cose_alg = cose_key.alg;
1068 fido_log_debug("%s: invalid cose_alg
1076 decode_attcred(const unsigned char **buf, size_t *len, int cose_alg, fido_attcred_t *attcred) argument
1291 cbor_decode_cred_authdata(const cbor_item_t *item, int cose_alg, fido_blob_t *authdata_cbor, fido_authdata_t *authdata, fido_attcred_t *attcred, fido_cred_ext_t *authdata_ext) argument
[all...]
H A Dcred.c337 int cose_alg; local
377 if ((cose_alg = cred->attstmt.alg) == COSE_UNSPEC)
378 cose_alg = COSE_ES256; /* backwards compat */
381 if (fido_get_signed_hash(cose_alg, &dgst, &cred->cdh,
505 fido_log_debug("%s: unsupported cose_alg %d", __func__,
987 fido_cred_set_type(fido_cred_t *cred, int cose_alg) argument
991 if (cose_alg != COSE_ES256 && cose_alg != COSE_ES384 &&
992 cose_alg != COSE_RS256 && cose_alg !
[all...]
H A Dassert.c452 fido_get_signed_hash(int cose_alg, fido_blob_t *dgst, argument
460 fido_log_debug("%s: cose_alg=%d", __func__, cose_alg);
471 switch (cose_alg) {
483 fido_log_debug("%s: unknown cose_alg", __func__);
494 fido_assert_verify(const fido_assert_t *assert, size_t idx, int cose_alg, argument
542 if (fido_get_signed_hash(cose_alg, &dgst, &assert->cdh,
549 switch (cose_alg) {
563 fido_log_debug("%s: unsupported cose_alg %d", __func__,
564 cose_alg);
[all...]
H A Du2f.c438 encode_cred_attstmt(int cose_alg, const fido_blob_t *x5c, argument
443 const uint8_t alg_cbor = (uint8_t)(-cose_alg - 1);
/netbsd-current/crypto/external/bsd/openssh/dist/
H A Dsk-usbhid.c721 int cose_alg; local
741 cose_alg = COSE_ES256;
745 cose_alg = COSE_EDDSA;
778 if ((r = fido_cred_set_type(cred, cose_alg)) != FIDO_OK) {

Completed in 195 milliseconds