Home
last modified time | relevance | path

Searched refs:authdata (Results 1 – 10 of 10) sorted by relevance

/openbsd-src/lib/libfido2/src/
H A Dcred.c37 &cred->authdata_cbor, &cred->authdata, &cred->attcred, in parse_makecred_reply()
352 if (fido_check_rp_id(cred->rp.id, cred->authdata.rp_id_hash) != 0) { in fido_cred_verify()
358 if (fido_check_flags(cred->authdata.flags, FIDO_OPT_TRUE, in fido_cred_verify()
379 if (get_signed_hash_u2f(&dgst, cred->authdata.rp_id_hash, in fido_cred_verify()
380 sizeof(cred->authdata.rp_id_hash), &cred->cdh, in fido_cred_verify()
438 if (fido_check_rp_id(cred->rp.id, cred->authdata.rp_id_hash) != 0) { in fido_cred_verify_self()
444 if (fido_check_flags(cred->authdata.flags, FIDO_OPT_TRUE, in fido_cred_verify_self()
465 if (get_signed_hash_u2f(&dgst, cred->authdata.rp_id_hash, in fido_cred_verify_self()
466 sizeof(cred->authdata.rp_id_hash), &cred->cdh, in fido_cred_verify_self()
523 memset(&cred->authdata, 0, sizeof(cred->authdata)); in fido_cred_clean_authdata()
[all …]
H A Du2f.c483 fido_authdata_t authdata; in encode_cred_authdata() local
494 memset(&authdata, 0, sizeof(authdata)); in encode_cred_authdata()
509 authdata.rp_id_hash) != authdata.rp_id_hash) { in encode_cred_authdata()
514 authdata.flags = (CTAP_AUTHDATA_ATT_CRED | CTAP_AUTHDATA_USER_PRESENT); in encode_cred_authdata()
515 authdata.sigcount = 0; in encode_cred_authdata()
520 len = authdata_blob.len = sizeof(authdata) + sizeof(attcred_raw) + in encode_cred_authdata()
529 if (fido_buf_write(&ptr, &len, &authdata, sizeof(authdata)) < 0 || in encode_cred_authdata()
H A Dcbor.c1285 fido_blob_t *authdata_cbor, fido_authdata_t *authdata, in cbor_decode_cred_authdata() argument
1309 if (fido_buf_read(&buf, &len, authdata, sizeof(*authdata)) < 0) { in cbor_decode_cred_authdata()
1314 authdata->sigcount = be32toh(authdata->sigcount); in cbor_decode_cred_authdata()
1317 if ((authdata->flags & CTAP_AUTHDATA_ATT_CRED) == 0 || in cbor_decode_cred_authdata()
1323 if ((authdata->flags & CTAP_AUTHDATA_EXT_DATA) != 0 && in cbor_decode_cred_authdata()
1335 fido_authdata_t *authdata, fido_assert_extattr_t *authdata_ext) in cbor_decode_assert_authdata() argument
1359 if (fido_buf_read(&buf, &len, authdata, sizeof(*authdata)) < 0) { in cbor_decode_assert_authdata()
1364 authdata->sigcount = be32toh(authdata->sigcount); in cbor_decode_assert_authdata()
1366 if ((authdata->flags & CTAP_AUTHDATA_EXT_DATA) != 0) { in cbor_decode_assert_authdata()
H A Dassert.c66 &stmt->authdata, &stmt->authdata_ext)); in parse_assert_reply()
454 if (fido_check_flags(stmt->authdata.flags, assert->up, in fido_assert_verify()
467 if (fido_check_rp_id(assert->rp_id, stmt->authdata.rp_id_hash) != 0) { in fido_assert_verify()
739 return (assert->stmt[idx].authdata.flags); in fido_assert_flags()
748 return (assert->stmt[idx].authdata.sigcount); in fido_assert_sigcount()
909 memset(&stmt->authdata, 0, sizeof(stmt->authdata)); in fido_assert_clean_authdata()
934 &stmt->authdata, &stmt->authdata_ext) < 0) { in fido_assert_set_authdata()
972 &stmt->authdata, &stmt->authdata_ext) < 0) { in fido_assert_set_authdata_raw()
H A Dtpm.c146 get_signed_sha1(tpm_sha1_data_t *dgst, const fido_blob_t *authdata,
157 EVP_DigestUpdate(ctx, authdata->ptr, authdata->len) != 1 ||
/openbsd-src/lib/libc/gen/
H A Dauth_subr.c86 struct authdata { struct
87 struct authdata *next; argument
106 struct authdata *data; /* additional data to send to scripts */ argument
184 struct authdata *data; in auth_clean()
233 struct authdata *data; in auth_close()
595 struct authdata *data, *dp; in auth_setdata()
809 struct authdata *data; in auth_call()
/openbsd-src/lib/libfido2/src/fido/
H A Dtypes.h154 fido_authdata_t authdata; /* decoded authdata payload */ member
173 fido_authdata_t authdata; /* decoded authdata payload */ member
/openbsd-src/usr.bin/ssh/
H A Dsk-api.h51 uint8_t *authdata; member
H A Dssh-sk.c171 freezero(r->authdata, r->authdata_len); in sshsk_free_enroll_response()
448 resp->authdata, resp->authdata_len)) != 0 || in sshsk_enroll()
H A Dsk-usbhid.c878 skdebug(__func__, "authdata len=%zu", len); in sk_enroll()
879 if ((response->authdata = calloc(1, len)) == NULL) { in sk_enroll()
880 skdebug(__func__, "calloc authdata failed"); in sk_enroll()
883 memcpy(response->authdata, ptr, len); in sk_enroll()
896 free(response->authdata); in sk_enroll()