| /src/external/bsd/libfido2/dist/src/ |
| touch.c | 18 unsigned char cdh[SHA256_DIGEST_LENGTH]; local 26 memset(cdh, 0, sizeof(cdh)); 33 if (SHA256((const void *)clientdata, strlen(clientdata), cdh) != cdh) { 49 if ((argv[0] = cbor_build_bytestring(cdh, sizeof(cdh))) == NULL ||
|
| assert.c | 98 if (assert->rp_id == NULL || assert->cdh.ptr == NULL) { 99 fido_log_debug("%s: rp_id=%p, cdh.ptr=%p", __func__, 100 (void *)assert->rp_id, (void *)assert->cdh.ptr); 106 (argv[1] = fido_blob_encode(&assert->cdh)) == NULL) { 133 if ((r = cbor_add_uv_params(dev, cmd, &assert->cdh, pk, ecdh, 321 if (assert->rp_id == NULL || assert->cdh.ptr == NULL) { 322 fido_log_debug("%s: rp_id=%p, cdh.ptr=%p", __func__, 323 (void *)assert->rp_id, (void *)assert->cdh.ptr); 518 if (assert->cdh.ptr == NULL || assert->rp_id == NULL || 520 fido_log_debug("%s: cdh=%p, rp_id=%s, authdata=%p, sig=%p" [all...] |
| cred.c | 67 if (cred->cdh.ptr == NULL || cred->type == 0) { 68 fido_log_debug("%s: cdh=%p, type=%d", __func__, 69 (void *)cred->cdh.ptr, cred->type); 74 if ((argv[0] = fido_blob_encode(&cred->cdh)) == NULL || 107 if ((r = cbor_add_uv_params(dev, cmd, &cred->cdh, pk, ecdh, 361 if (cred->cdh.ptr == NULL || cred->authdata_cbor.ptr == NULL || 365 fido_log_debug("%s: cdh=%p, authdata=%p, x5c=%p, sig=%p, " 366 "fmt=%p id=%p, rp.id=%s", __func__, (void *)cred->cdh.ptr, 398 if (fido_get_signed_hash(cose_alg, &dgst, &cred->cdh, 406 sizeof(cred->authdata.rp_id_hash), &cred->cdh, [all...] |
| u2f.c | 314 do_auth(fido_dev_t *dev, const fido_blob_t *cdh, const char *rp_id, 328 if (cdh->len != SHA256_DIGEST_LENGTH || key_id->len > UINT8_MAX || 347 iso7816_add(apdu, cdh->ptr, cdh->len) < 0 || 681 if (cred->type != COSE_ES256 || cred->cdh.ptr == NULL || 682 cred->rp.id == NULL || cred->cdh.len != SHA256_DIGEST_LENGTH) { 683 fido_log_debug("%s: type=%d, cdh=(%p,%zu)" , __func__, 684 cred->type, (void *)cred->cdh.ptr, cred->cdh.len); 714 iso7816_add(apdu, cred->cdh.ptr, cred->cdh.len) < 0 | [all...] |
| /src/external/bsd/libfido2/dist/tools/ |
| cred_make.c | 23 struct blob cdh; local 29 memset(&cdh, 0, sizeof(cdh)); 32 r = base64_read(in_f, &cdh); 42 xxd(cdh.ptr, cdh.len); 54 r = fido_cred_set_clientdata(cred, cdh.ptr, cdh.len); 56 r = fido_cred_set_clientdata_hash(cred, cdh.ptr, cdh.len) 94 char *cdh = NULL; local [all...] |
| assert_get.c | 82 struct blob cdh; local 88 memset(&cdh, 0, sizeof(cdh)); 92 r = base64_read(in_f, &cdh); 104 xxd(cdh.ptr, cdh.len); 119 r = fido_assert_set_clientdata(assert, cdh.ptr, cdh.len); 121 r = fido_assert_set_clientdata_hash(assert, cdh.ptr, cdh.len) 162 char *cdh = NULL; local [all...] |
| assert_verify.c | 28 struct blob cdh; local 34 memset(&cdh, 0, sizeof(cdh)); 38 r = base64_read(in_f, &cdh); 47 xxd(cdh.ptr, cdh.len); 60 if ((r = fido_assert_set_clientdata_hash(assert, cdh.ptr, 61 cdh.len)) != FIDO_OK || 83 free(cdh.ptr);
|
| cred_verify.c | 23 struct blob cdh; local 32 memset(&cdh, 0, sizeof(cdh)); 38 r = base64_read(in_f, &cdh); 51 xxd(cdh.ptr, cdh.len); 68 (r = fido_cred_set_clientdata_hash(cred, cdh.ptr, 69 cdh.len)) != FIDO_OK || 92 free(cdh.ptr);
|
| /src/external/bsd/libfido2/dist/fuzz/ |
| fuzz_assert.c | 27 struct blob cdh; member in struct:param 96 unpack_blob(v[14], &p->cdh) < 0) 136 (argv[14] = pack_blob(&p->cdh)) == NULL) 179 dummy.cdh.len = sizeof(dummy_cdh); 186 memcpy(&dummy.cdh.body, &dummy_cdh, dummy.cdh.len); 206 get_assert(fido_assert_t *assert, uint8_t opt, const struct blob *cdh, 232 fido_assert_set_clientdata_hash(assert, cdh->body, cdh->len); 238 fido_assert_set_clientdata_hash(assert, cdh->body, cdh->len) [all...] |
| fuzz_cred.c | 31 struct blob cdh; member in struct:param 101 unpack_blob(v[13], &p->cdh) < 0 || 143 (argv[13] = pack_blob(&p->cdh)) == NULL || 192 dummy.cdh.len = sizeof(dummy_cdh); 196 memcpy(&dummy.cdh.body, &dummy_cdh, dummy.cdh.len); 214 make_cred(fido_cred_t *cred, uint8_t opt, int type, const struct blob *cdh, 231 fido_cred_set_clientdata_hash(cred, cdh->body, cdh->len); 256 fido_cred_set_clientdata_hash(cred, cdh->body, cdh->len) [all...] |
| fuzz_attobj.c | 24 struct blob cdh; member in struct:param 184 unpack_blob(v[2], &p->cdh) < 0 || 214 (argv[2] = pack_blob(&p->cdh)) == NULL || 255 dummy.cdh.len = sizeof(dummy_cdh); 258 memcpy(&dummy.cdh.body, &dummy_cdh, dummy.cdh.len); 321 r = fido_cred_set_clientdata_hash(cred, p->cdh.body, p->cdh.len);
|
| /src/external/bsd/libfido2/dist/regress/ |
| assert.c | 69 static const unsigned char cdh[32] = { variable 330 assert(fido_assert_set_clientdata_hash(a, cdh, sizeof(cdh)) == FIDO_OK); 378 assert(fido_assert_set_clientdata_hash(a, cdh, sizeof(cdh)) == FIDO_OK); 400 assert(fido_assert_set_clientdata_hash(a, cdh, sizeof(cdh)) == FIDO_OK); 421 assert(fido_assert_set_clientdata_hash(a, cdh, sizeof(cdh)) == FIDO_OK); 441 junk = malloc(sizeof(cdh)); [all...] |
| cred.c | 305 static const unsigned char cdh[32] = { variable 2261 assert(fido_cred_set_clientdata_hash(c, cdh, sizeof(cdh)) == FIDO_OK); 2311 assert(fido_cred_set_clientdata_hash(c, cdh, sizeof(cdh)) == FIDO_OK); 2336 assert(fido_cred_set_clientdata_hash(c, cdh, sizeof(cdh)) == FIDO_OK); 2364 assert(fido_cred_set_clientdata_hash(c, cdh, sizeof(cdh)) == FIDO_OK); 2389 assert(fido_cred_set_clientdata_hash(c, cdh, sizeof(cdh)) == FIDO_OK) [all...] |
| /src/external/bsd/pam-u2f/dist/pamu2fcfg/ |
| pamu2fcfg.c | 57 unsigned char cdh[32]; local 80 if (!random_bytes(cdh, sizeof(cdh))) { 85 if ((r = fido_cred_set_clientdata_hash(cred, cdh, sizeof(cdh))) != FIDO_OK) {
|
| /src/external/bsd/libfido2/dist/src/fido/ |
| types.h | 176 fido_blob_t cdh; /* client data hash */ member in struct:fido_cred 210 fido_blob_t sig; /* signature of cdh + authdata */ 223 fido_blob_t cdh; /* client data hash */ member in struct:fido_assert
|
| /src/external/bsd/pam-u2f/dist/ |
| util.c | 952 unsigned char cdh[32]; local 955 if (!random_bytes(cdh, sizeof(cdh))) { 960 r = fido_assert_set_clientdata_hash(assert, cdh, sizeof(cdh));
|
| /src/crypto/external/bsd/openssl.old/dist/ssl/statem/ |
| statem_srvr.c | 3172 DH *cdh; local 3209 cdh = EVP_PKEY_get0_DH(ckey); 3211 if (pub_key == NULL || cdh == NULL || !DH_set0_key(cdh, pub_key, NULL)) {
|