/hal_espressif-3.6.0/components/bt/esp_ble_mesh/mesh_common/tinycrypt/src/ |
D | ecc_dh.c | 89 curve->num_bytes, in uECC_make_key_with_d() 91 uECC_vli_nativeToBytes(public_key + curve->num_bytes, in uECC_make_key_with_d() 92 curve->num_bytes, in uECC_make_key_with_d() 130 curve->num_bytes, in uECC_make_key() 132 uECC_vli_nativeToBytes(public_key + curve->num_bytes, in uECC_make_key() 133 curve->num_bytes, in uECC_make_key() 157 wordcount_t num_bytes = curve->num_bytes; in uECC_shared_secret() local 166 num_bytes); in uECC_shared_secret() 168 public_key + num_bytes, in uECC_shared_secret() 169 num_bytes); in uECC_shared_secret() [all …]
|
D | ecc_dsa.c | 140 uECC_vli_nativeToBytes(signature, curve->num_bytes, p); /* store r */ in uECC_sign_with_k() 152 if (uECC_vli_numBits(s, num_n_words) > (bitcount_t)curve->num_bytes * 8) { in uECC_sign_with_k() 156 uECC_vli_nativeToBytes(signature + curve->num_bytes, curve->num_bytes, s); in uECC_sign_with_k() 218 uECC_vli_bytesToNative(_public, public_key, curve->num_bytes); in uECC_verify() 219 uECC_vli_bytesToNative(_public + num_words, public_key + curve->num_bytes, in uECC_verify() 220 curve->num_bytes); in uECC_verify() 221 uECC_vli_bytesToNative(r, signature, curve->num_bytes); in uECC_verify() 222 uECC_vli_bytesToNative(s, signature + curve->num_bytes, curve->num_bytes); in uECC_verify()
|
D | ecc.c | 84 return 2 * curve->num_bytes; in uECC_curve_public_key_size() 813 void uECC_vli_nativeToBytes(uint8_t *bytes, int num_bytes, in uECC_vli_nativeToBytes() argument 817 for (i = 0; i < num_bytes; ++i) { in uECC_vli_nativeToBytes() 818 unsigned b = num_bytes - 1 - i; in uECC_vli_nativeToBytes() 825 int num_bytes) in uECC_vli_bytesToNative() argument 828 uECC_vli_clear(native, (num_bytes + (uECC_WORD_SIZE - 1)) / uECC_WORD_SIZE); in uECC_vli_bytesToNative() 829 for (i = 0; i < num_bytes; ++i) { in uECC_vli_bytesToNative() 830 unsigned b = num_bytes - 1 - i; in uECC_vli_bytesToNative() 895 uECC_vli_bytesToNative(_public, public_key, curve->num_bytes); in uECC_valid_public_key() 898 public_key + curve->num_bytes, in uECC_valid_public_key() [all …]
|
/hal_espressif-3.6.0/components/bootloader/subproject/components/micro-ecc/micro-ecc/ |
D | uECC.c | 141 wordcount_t num_bytes; member 163 unsigned num_bytes) { in bcopy() argument 164 while (0 != num_bytes) { in bcopy() 165 num_bytes--; in bcopy() 166 dst[num_bytes] = src[num_bytes]; in bcopy() 203 return 2 * curve->num_bytes; in uECC_curve_public_key_size() 938 int num_bytes, in uECC_vli_nativeToBytes() argument 941 for (i = 0; i < num_bytes; ++i) { in uECC_vli_nativeToBytes() 942 bytes[i] = native[(num_bytes - 1) - i]; in uECC_vli_nativeToBytes() 948 int num_bytes) { in uECC_vli_bytesToNative() argument [all …]
|
/hal_espressif-3.6.0/components/wpa_supplicant/src/crypto/ |
D | crypto_mbedtls-bignum.c | 59 int num_bytes, offset; in crypto_bignum_to_bin() local 66 num_bytes = mbedtls_mpi_size((mbedtls_mpi *) a); in crypto_bignum_to_bin() 68 if ((size_t) num_bytes > buflen) { in crypto_bignum_to_bin() 71 if (padlen > (size_t) num_bytes) { in crypto_bignum_to_bin() 72 offset = padlen - num_bytes; in crypto_bignum_to_bin() 80 return num_bytes + offset; in crypto_bignum_to_bin() 227 int num_bytes, offset; in crypto_bignum_to_string() local 234 num_bytes = mbedtls_mpi_size((mbedtls_mpi *) a); in crypto_bignum_to_string() 236 if (padlen > (size_t) num_bytes) { in crypto_bignum_to_string() 237 offset = padlen - num_bytes; in crypto_bignum_to_string()
|
/hal_espressif-3.6.0/components/bootloader/subproject/components/micro-ecc/ |
D | uECC_verify_antifault.c | 49 bcopy((uint8_t *) r, signature, curve->num_bytes); in uECC_verify_antifault() 50 bcopy((uint8_t *) s, signature + curve->num_bytes, curve->num_bytes); in uECC_verify_antifault() 52 uECC_vli_bytesToNative(_public, public_key, curve->num_bytes); in uECC_verify_antifault() 54 _public + num_words, public_key + curve->num_bytes, curve->num_bytes); in uECC_verify_antifault() 55 uECC_vli_bytesToNative(r, signature, curve->num_bytes); in uECC_verify_antifault() 56 uECC_vli_bytesToNative(s, signature + curve->num_bytes, curve->num_bytes); in uECC_verify_antifault()
|
/hal_espressif-3.6.0/components/esptool_py/esptool/espefuse/efuse/esp32/ |
D | operations.py | 227 num_bytes = efuse.bit_len // 8 236 if len(data) != num_bytes: 240 % (len(data), num_bytes, num_bytes * 8) 286 num_bytes = efuse.bit_len // 8 287 if len(digest) != num_bytes: 291 % (len(digest), num_bytes, num_bytes * 8)
|
/hal_espressif-3.6.0/components/esptool_py/esptool/espefuse/efuse/esp32c2/ |
D | operations.py | 235 num_bytes = efuse.bit_len // 8 245 if len(data) != num_bytes: 249 % (len(data), num_bytes, num_bytes * 8) 294 num_bytes = efuses["BLOCK_KEY0_HI_128"].bit_len // 8 295 if len(digest) != num_bytes: 299 % (len(digest), num_bytes, num_bytes * 8)
|
/hal_espressif-3.6.0/components/usb/test/hcd/ |
D | test_hcd_ctrl.c | 57 urb_list[i]->transfer.num_bytes = sizeof(usb_setup_packet_t) + TRANSFER_MAX_BYTES; 79 TEST_ASSERT_LESS_OR_EQUAL(urb->transfer.num_bytes, urb->transfer.actual_num_bytes); 103 TEST_ASSERT_LESS_OR_EQUAL(urb->transfer.num_bytes, urb->transfer.actual_num_bytes); 152 urb_list[i]->transfer.num_bytes = sizeof(usb_setup_packet_t) + TRANSFER_MAX_BYTES; 183 TEST_ASSERT_LESS_OR_EQUAL(urb->transfer.num_bytes, urb->transfer.actual_num_bytes); 212 TEST_ASSERT_LESS_OR_EQUAL(urb->transfer.num_bytes, urb->transfer.actual_num_bytes); 258 urb_list[i]->transfer.num_bytes = sizeof(usb_setup_packet_t) + TRANSFER_MAX_BYTES; 287 TEST_ASSERT_LESS_OR_EQUAL(urb->transfer.num_bytes, urb->transfer.actual_num_bytes);
|
D | test_hcd_bulk.c | 24 urb->transfer.num_bytes = sizeof(usb_setup_packet_t); in mock_msc_reset_req() 74 urb_cbw->transfer.num_bytes = sizeof(mock_msc_bulk_cbw_t); 75 urb_data->transfer.num_bytes = TEST_NUM_SECTORS_PER_XFER * MOCK_MSC_SCSI_SECTOR_SIZE; 76 …urb_csw->transfer.num_bytes = sizeof(mock_msc_bulk_csw_t) + (mock_msc_scsi_bulk_in_ep_desc.wMaxPac…
|
D | test_hcd_isoc.c | 62 urb_list[urb_idx]->transfer.num_bytes = URB_DATA_BUFF_SIZE; 65 urb_list[urb_idx]->transfer.isoc_packet_desc[pkt_idx].num_bytes = ISOC_PACKET_SIZE; 144 urb_list[urb_idx]->transfer.num_bytes = URB_DATA_BUFF_SIZE; 147 urb_list[urb_idx]->transfer.isoc_packet_desc[pkt_idx].num_bytes = ISOC_PACKET_SIZE;
|
D | test_hcd_port.c | 57 urb_list[i]->transfer.num_bytes = sizeof(usb_setup_packet_t) + TRANSFER_MAX_BYTES; 93 TEST_ASSERT_LESS_OR_EQUAL(urb->transfer.num_bytes, urb->transfer.actual_num_bytes); 204 urb_list[i]->transfer.num_bytes = sizeof(usb_setup_packet_t) + TRANSFER_MAX_BYTES; 239 TEST_ASSERT_LESS_OR_EQUAL(urb->transfer.num_bytes, urb->transfer.actual_num_bytes);
|
/hal_espressif-3.6.0/components/esptool_py/esptool/espefuse/efuse/esp32c6/ |
D | operations.py | 264 num_bytes = efuse.bit_len // 8 282 if len(data) != num_bytes: 285 "of raw binary key data." % (len(data), num_bytes, num_bytes * 8) 359 num_bytes = efuse.bit_len // 8 361 if len(digest) != num_bytes: 364 "of raw binary key data." % (len(digest), num_bytes, num_bytes * 8)
|
/hal_espressif-3.6.0/components/esptool_py/esptool/espefuse/efuse/esp32h2/ |
D | operations.py | 264 num_bytes = efuse.bit_len // 8 282 if len(data) != num_bytes: 285 "of raw binary key data." % (len(data), num_bytes, num_bytes * 8) 359 num_bytes = efuse.bit_len // 8 361 if len(digest) != num_bytes: 364 "of raw binary key data." % (len(digest), num_bytes, num_bytes * 8)
|
/hal_espressif-3.6.0/components/esptool_py/esptool/espefuse/efuse/esp32h2beta1/ |
D | operations.py | 264 num_bytes = efuse.bit_len // 8 282 if len(data) != num_bytes: 285 "of raw binary key data." % (len(data), num_bytes, num_bytes * 8) 358 num_bytes = efuse.bit_len // 8 360 if len(digest) != num_bytes: 363 "binary key data." % (len(digest), num_bytes, num_bytes * 8)
|
/hal_espressif-3.6.0/components/esptool_py/esptool/espefuse/efuse/esp32c3/ |
D | operations.py | 264 num_bytes = efuse.bit_len // 8 282 if len(data) != num_bytes: 285 "of raw binary key data." % (len(data), num_bytes, num_bytes * 8) 359 num_bytes = efuse.bit_len // 8 361 if len(digest) != num_bytes: 364 "of raw binary key data." % (len(digest), num_bytes, num_bytes * 8)
|
/hal_espressif-3.6.0/components/usb/include/usb/ |
D | usb_helpers.h | 166 static inline int usb_round_up_to_mps(int num_bytes, int mps) in usb_round_up_to_mps() argument 168 if (num_bytes <= 0 || mps <= 0) { //MPS can never be zero in usb_round_up_to_mps() 171 return ((num_bytes + mps - 1) / mps) * mps; in usb_round_up_to_mps()
|
D | usb_types_stack.h | 85 …int num_bytes; /**< Number of bytes to transmit/receive in the pa… member 128 int num_bytes; /**< Number of bytes to transfer. member
|
/hal_espressif-3.6.0/components/usb/test/usb_host/ |
D | msc_client_async_seq.c | 66 TEST_ASSERT_EQUAL(transfer->num_bytes, transfer->actual_num_bytes); in msc_transfer_cb() 192 xfer_out->num_bytes = sizeof(usb_setup_packet_t); in msc_client_async_seq_task() 201 xfer_out->num_bytes = sizeof(mock_msc_bulk_cbw_t); in msc_client_async_seq_task() 209 …xfer_in->num_bytes = usb_round_up_to_mps(MOCK_MSC_SCSI_SECTOR_SIZE * msc_obj.test_param.num_sector… in msc_client_async_seq_task() 217 … xfer_in->num_bytes = usb_round_up_to_mps(sizeof(mock_msc_bulk_csw_t), MOCK_MSC_SCSI_BULK_EP_MPS); in msc_client_async_seq_task()
|
D | msc_client_async_dconn.c | 66 TEST_ASSERT_EQUAL(transfer->num_bytes, transfer->actual_num_bytes); in msc_reset_cbw_transfer_cb() 85 TEST_ASSERT_EQUAL(transfer->num_bytes, transfer->actual_num_bytes); in msc_data_transfer_cb() 202 xfer_out->num_bytes = sizeof(usb_setup_packet_t); in msc_client_async_dconn_task() 211 xfer_out->num_bytes = sizeof(mock_msc_bulk_cbw_t); in msc_client_async_dconn_task() 221 … xfer_in[i]->num_bytes = usb_round_up_to_mps(MOCK_MSC_SCSI_SECTOR_SIZE, MOCK_MSC_SCSI_BULK_EP_MPS); in msc_client_async_dconn_task()
|
/hal_espressif-3.6.0/components/esptool_py/esptool/espefuse/efuse/esp32s2/ |
D | operations.py | 373 num_bytes = efuse.bit_len // 8 391 if len(data) != num_bytes: 394 "of raw binary key data." % (len(data), num_bytes, num_bytes * 8) 469 num_bytes = efuse.bit_len // 8 471 if len(digest) != num_bytes: 474 "binary key data." % (len(digest), num_bytes, num_bytes * 8)
|
/hal_espressif-3.6.0/components/esptool_py/esptool/espefuse/efuse/esp32s3/ |
D | operations.py | 372 num_bytes = efuse.bit_len // 8 390 if len(data) != num_bytes: 393 "of raw binary key data." % (len(data), num_bytes, num_bytes * 8) 468 num_bytes = efuse.bit_len // 8 470 if len(digest) != num_bytes: 473 "of raw binary key data." % (len(digest), num_bytes, num_bytes * 8)
|
/hal_espressif-3.6.0/components/esptool_py/esptool/espefuse/efuse/esp32s3beta2/ |
D | operations.py | 372 num_bytes = efuse.bit_len // 8 390 if len(data) != num_bytes: 393 "of raw binary key data." % (len(data), num_bytes, num_bytes * 8) 468 num_bytes = efuse.bit_len // 8 470 if len(digest) != num_bytes: 473 "of raw binary key data." % (len(digest), num_bytes, num_bytes * 8)
|
/hal_espressif-3.6.0/components/esptool_py/esptool/espefuse/efuse/ |
D | base_operations.py | 586 num_bytes = block.get_block_len() 587 if offset >= num_bytes: 590 % (block.id, num_bytes) 602 num_bytes = block.get_block_len() 605 data = data + (b"\x00" * (num_bytes - len(data))) 606 if len(data) != num_bytes: 610 % (block.id, num_bytes, len(data), offset)
|
/hal_espressif-3.6.0/components/usb/ |
D | hub.c | 328 …transfer->num_bytes = sizeof(usb_setup_packet_t) + usb_round_up_to_mps(ENUM_SHORT_DESC_REQ_LEN, en… in enum_stage_transfer() 335 transfer->num_bytes = sizeof(usb_setup_packet_t); //No data stage in enum_stage_transfer() 341 …transfer->num_bytes = sizeof(usb_setup_packet_t) + usb_round_up_to_mps(sizeof(usb_device_desc_t), … in enum_stage_transfer() 349 …transfer->num_bytes = sizeof(usb_setup_packet_t) + usb_round_up_to_mps(ENUM_SHORT_DESC_REQ_LEN, en… in enum_stage_transfer() 357 …transfer->num_bytes = sizeof(usb_setup_packet_t) + usb_round_up_to_mps(enum_ctrl->wTotalLength, en… in enum_stage_transfer() 364 transfer->num_bytes = sizeof(usb_setup_packet_t); //No data stage in enum_stage_transfer() 378 …transfer->num_bytes = sizeof(usb_setup_packet_t) + usb_round_up_to_mps(sizeof(usb_str_desc_t), enu… in enum_stage_transfer() 393 …transfer->num_bytes = sizeof(usb_setup_packet_t) + usb_round_up_to_mps(enum_ctrl->str_desc_bLength… in enum_stage_transfer()
|