Searched refs:cbor_len (Results 1 – 4 of 4) sorted by relevance
/openbsd/lib/libfido2/src/ |
H A D | config.c | 19 size_t cbor_len; in config_prepare_hmac() local 25 if ((cbor_len = cbor_serialize(item, cbor, sizeof(cbor))) == 0) { in config_prepare_hmac() 29 if ((hmac->ptr = malloc(cbor_len + sizeof(prefix))) == NULL) { in config_prepare_hmac() 34 memcpy(hmac->ptr + sizeof(prefix), cbor, cbor_len); in config_prepare_hmac() 35 hmac->len = cbor_len + sizeof(prefix); in config_prepare_hmac()
|
H A D | largeblob.c | 833 size_t *cbor_len) in fido_dev_largeblob_get_array() argument 842 if (cbor_ptr == NULL || cbor_len == NULL) { in fido_dev_largeblob_get_array() 844 (const void *)cbor_ptr, (const void *)cbor_len); in fido_dev_largeblob_get_array() 848 *cbor_len = 0; in fido_dev_largeblob_get_array() 858 *cbor_len = cbor.len; in fido_dev_largeblob_get_array() 868 size_t cbor_len, const char *pin) in fido_dev_largeblob_set_array() argument 875 if (cbor_ptr == NULL || cbor_len == 0) { in fido_dev_largeblob_set_array() 877 (const void *)cbor_ptr, cbor_len); in fido_dev_largeblob_set_array() 880 if ((item = cbor_load(cbor_ptr, cbor_len, &cbor_result)) == NULL) { in fido_dev_largeblob_set_array()
|
H A D | bio.c | 26 size_t cbor_len; in bio_prepare_hmac() local 37 if ((cbor_len = cbor_serialize_alloc(*param, &cbor, in bio_prepare_hmac() 38 &cbor_alloc_len)) == 0 || cbor_len > SIZE_MAX - sizeof(prefix)) { in bio_prepare_hmac() 43 if ((hmac_data->ptr = malloc(cbor_len + sizeof(prefix))) == NULL) { in bio_prepare_hmac() 49 memcpy(hmac_data->ptr + sizeof(prefix), cbor, cbor_len); in bio_prepare_hmac() 50 hmac_data->len = cbor_len + sizeof(prefix); in bio_prepare_hmac()
|
H A D | cbor.c | 402 size_t cbor_len; in cbor_build_frame() local 409 cbor_len = cbor_serialize_alloc(flat, &cbor, &cbor_alloc_len); in cbor_build_frame() 410 if (cbor_len == 0 || cbor_len == SIZE_MAX) { in cbor_build_frame() 411 fido_log_debug("%s: cbor_len=%zu", __func__, cbor_len); in cbor_build_frame() 415 if ((f->ptr = malloc(cbor_len + 1)) == NULL) in cbor_build_frame() 418 f->len = cbor_len + 1; in cbor_build_frame()
|