/Zephyr-Core-3.7.0/drivers/crypto/ |
D | crypto_tc_shim.c | 35 op->in_buf, op->in_len, in do_cbc_encrypt() 43 op->out_len = op->in_len; in do_cbc_encrypt() 64 op->in_len - TC_AES_BLOCK_SIZE, in do_cbc_decrypt() 71 op->out_len = op->in_len; in do_cbc_decrypt() 89 op->in_len, ctr, in do_ctr_op() 96 op->out_len = op->in_len; in do_ctr_op() 118 op->in_len, &ccm) == TC_CRYPTO_FAIL) { in do_ccm_encrypt_mac() 129 memcpy(aead_op->tag, op->out_buf + op->in_len, ccm.mlen); in do_ccm_encrypt_mac() 136 op->out_len = op->in_len + ccm.mlen; in do_ccm_encrypt_mac() 160 if (aead_op->tag != op->in_buf + op->in_len) { in do_ccm_decrypt_auth() [all …]
|
D | crypto_stm32.c | 68 static int do_encrypt(struct cipher_ctx *ctx, uint8_t *in_buf, int in_len, in do_encrypt() argument 85 status = HAL_CRYP_Encrypt(&data->hcryp, (uint32_t *)in_buf, in_len, in do_encrypt() 98 static int do_decrypt(struct cipher_ctx *ctx, uint8_t *in_buf, int in_len, in do_decrypt() argument 115 status = HAL_CRYP_Decrypt(&data->hcryp, (uint32_t *)in_buf, in_len, in do_decrypt() 136 if (pkt->in_len > 16) { in crypto_stm32_ecb_encrypt() 141 ret = do_encrypt(ctx, pkt->in_buf, pkt->in_len, pkt->out_buf); in crypto_stm32_ecb_encrypt() 157 if (pkt->in_len > 16) { in crypto_stm32_ecb_decrypt() 162 ret = do_decrypt(ctx, pkt->in_buf, pkt->in_len, pkt->out_buf); in crypto_stm32_ecb_decrypt() 189 ret = do_encrypt(ctx, pkt->in_buf, pkt->in_len, in crypto_stm32_cbc_encrypt() 192 pkt->out_len = pkt->in_len + out_offset; in crypto_stm32_cbc_encrypt() [all …]
|
D | crypto_smartbond.c | 189 static int crypto_smartbond_check_in_restrictions(uint16_t in_len) in crypto_smartbond_check_in_restrictions() argument 199 if (not_last_in_block && (in_len & 0x7)) { in crypto_smartbond_check_in_restrictions() 203 if (in_len & 0xF) { in crypto_smartbond_check_in_restrictions() 508 if (pkt->out_buf_max < pkt->in_len) { in crypto_smartbond_cipher_ecb_handler() 518 if (pkt->in_len > 16) { in crypto_smartbond_cipher_ecb_handler() 525 ret = crypto_smartbond_check_in_restrictions(pkt->in_len); in crypto_smartbond_cipher_ecb_handler() 532 ret = crypto_smartbond_set_in_out_buf(pkt->in_buf, pkt->out_buf, pkt->in_len); in crypto_smartbond_cipher_ecb_handler() 552 pkt->out_len = pkt->in_len; in crypto_smartbond_cipher_ecb_handler() 573 if ((is_op_encryption && pkt->out_buf_max < (pkt->in_len + 16)) || in crypto_smartbond_cipher_cbc_handler() 574 pkt->out_buf_max < (pkt->in_len - 16)) { in crypto_smartbond_cipher_cbc_handler() [all …]
|
D | crypto_mtls_shim.c | 80 if (pkt->in_len > 16) { in mtls_ecb_encrypt() 105 if (pkt->in_len > 16) { in mtls_ecb_decrypt() 141 ret = mbedtls_aes_crypt_cbc(cbc_ctx, MBEDTLS_AES_ENCRYPT, pkt->in_len, in mtls_cbc_encrypt() 148 pkt->out_len = pkt->in_len + iv_bytes; in mtls_cbc_encrypt() 168 ret = mbedtls_aes_crypt_cbc(cbc_ctx, MBEDTLS_AES_DECRYPT, pkt->in_len, in mtls_cbc_decrypt() 175 pkt->out_len = pkt->in_len - iv_bytes; in mtls_cbc_decrypt() 187 ret = mbedtls_ccm_encrypt_and_tag(mtls_ctx, apkt->pkt->in_len, nonce, in mtls_ccm_encrypt_auth() 203 apkt->pkt->out_len = apkt->pkt->in_len; in mtls_ccm_encrypt_auth() 216 ret = mbedtls_ccm_auth_decrypt(mtls_ctx, apkt->pkt->in_len, nonce, in mtls_ccm_decrypt_auth() 234 apkt->pkt->out_len = apkt->pkt->in_len; in mtls_ccm_decrypt_auth() [all …]
|
D | crypto_mcux_dcp.c | 104 pkt->out_buf + iv_bytes, pkt->in_len, p_iv); in crypto_dcp_aes_cbc_encrypt() 111 pkt->out_len = pkt->in_len + iv_bytes; in crypto_dcp_aes_cbc_encrypt() 135 pkt->out_buf, pkt->in_len, p_iv); in crypto_dcp_aes_cbc_decrypt() 142 pkt->out_len = pkt->in_len - iv_bytes; in crypto_dcp_aes_cbc_decrypt() 155 pkt->in_len); in crypto_dcp_aes_ecb_encrypt() 162 pkt->out_len = pkt->in_len; in crypto_dcp_aes_ecb_encrypt() 175 pkt->in_len); in crypto_dcp_aes_ecb_decrypt() 182 pkt->out_len = pkt->in_len; in crypto_dcp_aes_ecb_decrypt() 253 status = DCP_HASH_Update(cfg->base, &session->hash_ctx, pkt->in_buf, pkt->in_len); in crypto_dcp_sha256()
|
D | crypto_mchp_xec_symcr.c | 319 if (!finish && !pkt->in_len) { in xec_symcr_do_hash() 324 if (!finish && ((hs->blklen + pkt->in_len) < hs->blksz)) { in xec_symcr_do_hash() 325 memcpy(&hs->blockbuf[hs->blklen], pkt->in_buf, pkt->in_len); in xec_symcr_do_hash() 326 hs->blklen += pkt->in_len; in xec_symcr_do_hash() 341 fill_len = pkt->in_len; in xec_symcr_do_hash() 344 rem_len = pkt->in_len & (hs->blksz - 1u); in xec_symcr_do_hash() 345 fill_len = pkt->in_len & ~(hs->blksz - 1u); in xec_symcr_do_hash() 347 fill_len = ((hs->blklen + pkt->in_len) & ~(hs->blksz - 1u)) - hs->blklen; in xec_symcr_do_hash() 348 rem_len = pkt->in_len - fill_len; in xec_symcr_do_hash()
|
D | crypto_nrf_ecb.c | 36 if (pkt->in_len != ECB_AES_BLOCK_SIZE) { in do_ecb_encrypt() 40 if (pkt->out_buf_max < pkt->in_len) { in do_ecb_encrypt() 64 pkt->out_len = pkt->in_len; in do_ecb_encrypt()
|
D | crypto_intel_sha.c | 231 frag_length = pkt->in_len > SHA_API_MAX_FRAG_LEN ? in intel_sha_compute() 233 pkt->in_len; in intel_sha_compute() 235 if ((frag_length == pkt->in_len) && finish) { in intel_sha_compute() 249 pkt->in_len -= frag_length; in intel_sha_compute() 251 } while (pkt->in_len > 0); in intel_sha_compute()
|
D | crypto_ataes132a.c | 210 in_buf_len = aead_op->pkt->in_len; in ataes132a_aes_ccm_decrypt() 409 buf_len = aead_op->pkt->in_len; in ataes132a_aes_ccm_encrypt() 588 buf_len = pkt->in_len; in ataes132a_aes_ecb_block() 681 if (aead_op->pkt->in_len <= 16 && in do_ccm_encrypt_mac() 687 if (aead_op->pkt->in_len > 16 && in do_ccm_encrypt_mac() 693 if (aead_op->pkt->in_len <= 16) { in do_ccm_encrypt_mac() 695 } else if (aead_op->pkt->in_len > 16) { in do_ccm_encrypt_mac() 730 if (aead_op->pkt->in_len <= 16 && in do_ccm_decrypt_auth() 736 if (aead_op->pkt->in_len > 16 && in do_ccm_decrypt_auth()
|
D | crypto_it8xxx2_sha.c | 135 uint32_t rem_len = pkt->in_len; in it8xxx2_hash_handler() 145 chip_ctx.total_len += pkt->in_len; in it8xxx2_hash_handler()
|
D | crypto_npcx_sha.c | 114 if (pkt->in_len != 0) { in npcx_sha_compute() 115 ret = NPCX_NCL_SHA->update(npcx_ctx->handle, pkt->in_buf, pkt->in_len); in npcx_sha_compute()
|
D | crypto_it8xxx2_sha_v2.c | 150 uint32_t rem_len = pkt->in_len; in it8xxx2_hash_handler() 200 chip_ctx.total_len += pkt->in_len; in it8xxx2_hash_handler()
|
/Zephyr-Core-3.7.0/subsys/net/lib/lwm2m/ |
D | lwm2m_rw_opaque.c | 58 uint16_t in_len; in get_opaque() local 61 coap_packet_get_payload(in->in_cpkt, &in_len); in get_opaque() 63 if (in_len == 0) { in get_opaque() 82 opaque->remaining = in_len; in get_opaque() 88 opaque->len = in_len; in get_opaque() 89 opaque->remaining = in_len; in get_opaque()
|
D | lwm2m_rw_plain_text.c | 252 uint16_t in_len; in get_string() local 254 coap_packet_get_payload(in->in_cpkt, &in_len); in get_string() 256 if (in_len > buflen) { in get_string() 258 in_len = buflen - 1; in get_string() 261 if (buf_read(value, in_len, CPKT_BUF_READ(in->in_cpkt), in get_string() 267 value[in_len] = '\0'; in get_string() 268 return (size_t)in_len; in get_string()
|
D | lwm2m_rw_senml_json.c | 1220 int in_len, ret; in get_opaque() local 1266 in_len = opaque->remaining; in get_opaque() 1268 if (in_len > buflen) { in get_opaque() 1269 in_len = buflen; in get_opaque() 1272 if (in_len > val_opaque->length) { in get_opaque() 1273 in_len = val_opaque->length; in get_opaque() 1276 opaque->remaining -= in_len; in get_opaque() 1281 memcpy(value, data_ptr, in_len); in get_opaque() 1283 return in_len; in get_opaque() 1474 uint16_t in_len; in do_write_op_senml_json() local [all …]
|
D | lwm2m_registry.c | 1099 uint32_t in_len = opaque->remaining; in lwm2m_engine_get_opaque_more() local 1102 if (in_len > buflen) { in lwm2m_engine_get_opaque_more() 1103 in_len = buflen; in lwm2m_engine_get_opaque_more() 1106 if (in_len > remaining) { in lwm2m_engine_get_opaque_more() 1107 in_len = remaining; in lwm2m_engine_get_opaque_more() 1110 opaque->remaining -= in_len; in lwm2m_engine_get_opaque_more() 1111 remaining -= in_len; in lwm2m_engine_get_opaque_more() 1116 if (buf_read(buf, in_len, CPKT_BUF_READ(in->in_cpkt), &in->offset) < 0) { in lwm2m_engine_get_opaque_more() 1121 return (size_t)in_len; in lwm2m_engine_get_opaque_more()
|
/Zephyr-Core-3.7.0/samples/drivers/crypto/src/ |
D | main.c | 138 .in_len = sizeof(ecb_plaintext), in ecb_mode() 144 .in_len = sizeof(encrypted), in ecb_mode() 220 .in_len = sizeof(plaintext), in cbc_mode() 226 .in_len = sizeof(encrypted), in cbc_mode() 311 .in_len = sizeof(plaintext), in ctr_mode() 317 .in_len = sizeof(encrypted), in ctr_mode() 413 .in_len = sizeof(ccm_data), in ccm_mode() 431 .in_len = sizeof(ccm_data), in ccm_mode() 530 .in_len = sizeof(gcm_data), in gcm_mode() 548 .in_len = sizeof(gcm_data), in gcm_mode()
|
/Zephyr-Core-3.7.0/include/zephyr/sys/ |
D | cbprintf.h | 519 size_t in_len, 579 size_t in_len, in cbprintf_package_copy() argument 592 return cbprintf_package_convert(in_packaged, in_len, in cbprintf_package_copy() 627 size_t in_len, in cbprintf_fsc_package() argument 631 return cbprintf_package_copy(in_packaged, in_len, packaged, len, in cbprintf_fsc_package()
|
/Zephyr-Core-3.7.0/drivers/ieee802154/ |
D | ieee802154_cc2520.c | 1107 uint8_t in_len, in instruct_uccm_ccm() argument 1129 input_addr, output_addr, in_len, m); in instruct_uccm_ccm() 1139 cmd[7] = (in_len & 0x7f); in instruct_uccm_ccm() 1163 nonce[14] = (uint8_t)(apkt->pkt->in_len >> 8); in generate_nonce() 1164 nonce[15] = (uint8_t)(apkt->pkt->in_len); in generate_nonce() 1177 uint8_t in_len; in insert_crypto_parameters() local 1212 in_len = apkt->ad_len; in insert_crypto_parameters() 1220 apkt->pkt->in_buf, apkt->pkt->in_len); in insert_crypto_parameters() 1221 in_len = apkt->ad_len + apkt->pkt->in_len; in insert_crypto_parameters() 1223 *auth_crypt = !apkt->tag ? apkt->pkt->in_len : in insert_crypto_parameters() [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/crypto/ |
D | hash.h | 94 size_t in_len; member
|
D | cipher.h | 186 int in_len; member
|
/Zephyr-Core-3.7.0/subsys/mgmt/osdp/src/ |
D | osdp_common.c | 61 .in_len = len, in osdp_encrypt() 108 .in_len = len, in osdp_decrypt()
|
/Zephyr-Core-3.7.0/lib/os/ |
D | cbprintf_packaged.c | 913 size_t in_len, in cbprintf_package_convert() argument 930 in_len = in_len != 0 ? in_len : get_package_len(in_packaged); in cbprintf_package_convert() 952 cb(in_packaged, in_len, ctx); in cbprintf_package_convert() 955 return in_len; in cbprintf_package_convert() 975 out_len = (int)in_len; in cbprintf_package_convert() 1138 size_t strs_len = in_len - (args_size + ros_nbr + 2 * rws_nbr); in cbprintf_package_convert()
|
/Zephyr-Core-3.7.0/samples/boards/mec172xevb_assy6906/rom_api/src/ |
D | main.c | 445 zhash_pkt.in_len = updatesz; in test_zephyr_hash_chunk_block_size() 463 zhash_pkt.in_len = msgsz; in test_zephyr_hash_chunk_block_size() 540 zhash_pkt.in_len = updatesz; in test_zephyr_hash_chunk() 557 zhash_pkt.in_len = remsz; in test_zephyr_hash_chunk()
|
/Zephyr-Core-3.7.0/tests/crypto/crypto_hash/src/ |
D | main.c | 164 .in_len = sizeof(test ## _i), \ in ZTEST_USER()
|