/Zephyr-latest/samples/drivers/crypto/src/ |
D | main.c | 140 .out_buf = encrypted, in ecb_mode() 143 .in_buf = encrypt.out_buf, in ecb_mode() 145 .out_buf = decrypted, in ecb_mode() 162 if (memcmp(encrypt.out_buf, ecb_ciphertext, sizeof(ecb_ciphertext))) { in ecb_mode() 165 print_buffer_comparison(ecb_ciphertext, encrypt.out_buf, in ecb_mode() 186 if (memcmp(decrypt.out_buf, ecb_plaintext, sizeof(ecb_plaintext))) { in ecb_mode() 189 print_buffer_comparison(ecb_plaintext, decrypt.out_buf, in ecb_mode() 222 .out_buf = encrypted, in cbc_mode() 225 .in_buf = encrypt.out_buf, in cbc_mode() 227 .out_buf = decrypted, in cbc_mode() [all …]
|
/Zephyr-latest/tests/crypto/crypto_hash/src/ |
D | main.c | 161 uint8_t out_buf[32] = {0}; \ in ZTEST_USER() 165 .out_buf = out_buf, \ in ZTEST_USER() 169 ret = memcmp(pkt.out_buf, sha256_results[_i - 1], 32); \ in ZTEST_USER()
|
/Zephyr-latest/tests/subsys/shell/shell_history/src/ |
D | shell_history_test.c | 34 uint8_t out_buf[HIST_BUF_SIZE]; in test_get() local 37 out_len = sizeof(out_buf); in test_get() 39 res = z_shell_history_get(&history, up, out_buf, &out_len); in test_get() 46 zassert_equal(memcmp(out_buf, exp_buf, out_len), 0, in test_get() 142 uint8_t out_buf[HIST_BUF_SIZE]; in get_max_buffer_len() local 150 out_len = sizeof(out_buf); in get_max_buffer_len() 151 if (z_shell_history_get(&history, true, out_buf, &out_len)) { in get_max_buffer_len()
|
/Zephyr-latest/samples/bluetooth/bap_unicast_client/src/ |
D | stream_lc3.c | 133 static bool encode_frame(struct tx_stream *stream, uint8_t index, struct net_buf *out_buf) in encode_frame() argument 142 octets_per_frame, net_buf_tail(out_buf)); in encode_frame() 149 out_buf->len += octets_per_frame; in encode_frame() 154 static bool encode_frame_block(struct tx_stream *stream, struct net_buf *out_buf) in encode_frame_block() argument 160 if (!encode_frame(stream, i, out_buf)) { in encode_frame_block()
|
/Zephyr-latest/drivers/crypto/ |
D | crypto_smartbond.c | 393 static int crypto_smartbond_set_in_out_buf(uint8_t *in_buf, uint8_t *out_buf, int len) in crypto_smartbond_set_in_out_buf() argument 423 if (out_buf) { in crypto_smartbond_set_in_out_buf() 430 if (IS_SYSRAM_ADDRESS(out_buf) || in crypto_smartbond_set_in_out_buf() 431 (IS_REMAPPED_ADDRESS(out_buf) && remap_adr0 == 3)) { in crypto_smartbond_set_in_out_buf() 432 AES_HASH->CRYPTO_DEST_ADDR_REG = black_orca_phy_addr((uint32_t)out_buf); in crypto_smartbond_set_in_out_buf() 513 if (pkt->in_buf == NULL || pkt->out_buf == NULL) { 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() 579 if (pkt->in_buf == NULL || pkt->out_buf == NULL) { in crypto_smartbond_cipher_cbc_handler() 588 memcpy(pkt->out_buf, iv, offset); in crypto_smartbond_cipher_cbc_handler() 610 pkt->out_buf + offset, pkt->in_len); in crypto_smartbond_cipher_cbc_handler() [all …]
|
D | crypto_tc_shim.c | 33 if (tc_cbc_mode_encrypt(op->out_buf, in do_cbc_encrypt() 61 if (tc_cbc_mode_decrypt(op->out_buf, in do_cbc_decrypt() 88 if (tc_ctr_mode(op->out_buf, op->out_buf_max, op->in_buf, in do_ctr_op() 116 if (tc_ccm_generation_encryption(op->out_buf, op->out_buf_max, in do_ccm_encrypt_mac() 129 memcpy(aead_op->tag, op->out_buf + op->in_len, ccm.mlen); in do_ccm_encrypt_mac() 165 if (tc_ccm_decryption_verification(op->out_buf, op->out_buf_max, in do_ccm_decrypt_auth()
|
D | crypto_mtls_shim.c | 86 pkt->in_buf, pkt->out_buf); in mtls_ecb_encrypt() 111 pkt->in_buf, pkt->out_buf); in mtls_ecb_decrypt() 133 memcpy(pkt->out_buf, iv, 16); in mtls_cbc_encrypt() 142 p_iv, pkt->in_buf, pkt->out_buf + iv_bytes); in mtls_cbc_encrypt() 169 p_iv, pkt->in_buf + iv_bytes, pkt->out_buf); in mtls_cbc_decrypt() 191 apkt->pkt->out_buf, apkt->tag, in mtls_ccm_encrypt_auth() 220 apkt->pkt->out_buf, apkt->tag, in mtls_ccm_decrypt_auth() 253 apkt->pkt->out_buf, in mtls_gcm_encrypt_auth() 282 apkt->pkt->out_buf); in mtls_gcm_decrypt_auth() 491 ret = mbedtls_sha256_finish(sha256_ctx, pkt->out_buf); in mtls_sha256_compute() [all …]
|
D | crypto_stm32.c | 115 uint8_t *out_buf) in do_aes() argument 138 status = fn(&data->hcryp, in_buf, in_len, out_buf, HAL_MAX_DELAY); in do_aes() 179 ret = do_aes(ctx, hal_ecb_encrypt_op, pkt->in_buf, pkt->in_len, pkt->out_buf); in crypto_stm32_ecb_encrypt() 200 ret = do_aes(ctx, hal_ecb_decrypt_op, pkt->in_buf, pkt->in_len, pkt->out_buf); in crypto_stm32_ecb_decrypt() 223 memcpy(pkt->out_buf, iv, 16); in crypto_stm32_cbc_encrypt() 227 ret = do_aes(ctx, hal_cbc_encrypt_op, pkt->in_buf, pkt->in_len, pkt->out_buf + out_offset); in crypto_stm32_cbc_encrypt() 252 ret = do_aes(ctx, hal_cbc_decrypt_op, pkt->in_buf + in_offset, pkt->in_len, pkt->out_buf); in crypto_stm32_cbc_decrypt() 275 ret = do_aes(ctx, hal_ctr_encrypt_op, pkt->in_buf, pkt->in_len, pkt->out_buf); in crypto_stm32_ctr_encrypt() 298 ret = do_aes(ctx, hal_ctr_decrypt_op, pkt->in_buf, pkt->in_len, pkt->out_buf); in crypto_stm32_ctr_decrypt()
|
D | crypto_mcux_dcp.c | 94 memcpy(pkt->out_buf, iv, 16U); in crypto_dcp_aes_cbc_encrypt() 104 pkt->out_buf + iv_bytes, pkt->in_len, p_iv); in crypto_dcp_aes_cbc_encrypt() 135 pkt->out_buf, pkt->in_len, p_iv); in crypto_dcp_aes_cbc_decrypt() 154 status = DCP_AES_EncryptEcb(cfg->base, &session->handle, pkt->in_buf, pkt->out_buf, in crypto_dcp_aes_ecb_encrypt() 174 status = DCP_AES_DecryptEcb(cfg->base, &session->handle, pkt->in_buf, pkt->out_buf, in crypto_dcp_aes_ecb_decrypt() 262 status = DCP_HASH_Finish(cfg->base, &session->hash_ctx, pkt->out_buf, NULL); in crypto_dcp_sha256()
|
D | crypto_nrf_ecb.c | 60 if (pkt->out_buf != drv_state.data.ciphertext) { in do_ecb_encrypt() 61 memcpy(pkt->out_buf, drv_state.data.ciphertext, in do_ecb_encrypt()
|
D | crypto_ataes132a.c | 239 if (!aead_op->pkt->in_buf || !aead_op->pkt->out_buf) { in ataes132a_aes_ccm_decrypt() 378 memcpy(aead_op->pkt->out_buf, param_buffer + 1, out_len - 1); in ataes132a_aes_ccm_decrypt() 437 if (!aead_op->pkt->in_buf || !aead_op->pkt->out_buf) { in ataes132a_aes_ccm_encrypt() 553 memcpy(aead_op->pkt->out_buf, param_buffer + 17, out_len - 17U); in ataes132a_aes_ccm_encrypt() 627 if (!pkt->in_buf || !pkt->out_buf) { in ataes132a_aes_ecb_block() 662 memcpy(pkt->out_buf, param_buffer + 1, 16); in ataes132a_aes_ecb_block()
|
D | crypto_si32.c | 417 if (pkt->out_buf == NULL) { in crypto_si32_dma_setup_rx() 425 dest_address = (uintptr_t)(pkt->out_buf + out_buf_offset); in crypto_si32_dma_setup_rx() 596 if ((ctx->flags & CAP_INPLACE_OPS) && (pkt->out_buf != NULL)) { in crypto_si32_aes_ecb_op() 735 if (!pkt->out_buf) { in crypto_si32_aes_cbc_op() 739 memcpy(pkt->out_buf, iv, 16); in crypto_si32_aes_cbc_op()
|
D | crypto_intel_sha.c | 204 uint32_t *hash_int_ptr = (uint32_t *)(pkt->out_buf); in intel_sha_compute() 270 ret = intel_sha_device_get_hash(ctx->device, pkt->out_buf, output_size); in intel_sha_compute()
|
D | crypto_it8xxx2_sha.c | 148 uint32_t *ob_ptr = (uint32_t *)pkt->out_buf; in it8xxx2_hash_handler()
|
D | crypto_npcx_sha.c | 125 ret = NPCX_NCL_SHA->finish(npcx_ctx->handle, pkt->out_buf); in npcx_sha_compute()
|
D | crypto_it8xxx2_sha_v2.c | 203 uint32_t *ob_ptr = (uint32_t *)pkt->out_buf; in it8xxx2_hash_handler()
|
/Zephyr-latest/tests/subsys/fs/littlefs/src/ |
D | test_lfs_perf.c | 84 goto out_buf; in write_read() 106 goto out_buf; in write_read() 111 goto out_buf; in write_read() 123 goto out_buf; in write_read() 151 out_buf: in write_read()
|
/Zephyr-latest/include/zephyr/crypto/ |
D | hash.h | 101 uint8_t *out_buf; member
|
D | cipher.h | 192 uint8_t *out_buf; member
|
/Zephyr-latest/subsys/mgmt/osdp/src/ |
D | osdp_common.c | 62 .out_buf = data, in osdp_encrypt() 109 .out_buf = data, in osdp_decrypt()
|
/Zephyr-latest/drivers/usb/udc/ |
D | udc_kinetis.c | 125 struct net_buf *out_buf[2]; member 248 priv->out_buf[cfg->stat.odd] = buf; in usbfsotg_ctrl_feed_start() 272 priv->out_buf[!cfg->stat.odd] = buf; in usbfsotg_ctrl_feed_start_next() 565 if (priv->out_buf[odd] != NULL) { in isr_handle_xfer_done() 566 net_buf_add(priv->out_buf[odd], len); in isr_handle_xfer_done() 567 udc_ep_buf_set_setup(priv->out_buf[odd]); in isr_handle_xfer_done() 568 udc_buf_put(ep_cfg, priv->out_buf[odd]); in isr_handle_xfer_done() 570 priv->out_buf[odd] = NULL; in isr_handle_xfer_done() 583 buf = priv->out_buf[odd]; in isr_handle_xfer_done() 585 priv->out_buf[odd] = NULL; in isr_handle_xfer_done() [all …]
|
/Zephyr-latest/samples/boards/microchip/mec172xevb_assy6906/rom_api/src/ |
D | main.c | 446 zhash_pkt.out_buf = digest; in test_zephyr_hash_chunk_block_size() 464 zhash_pkt.out_buf = digest; in test_zephyr_hash_chunk_block_size() 541 zhash_pkt.out_buf = digest; in test_zephyr_hash_chunk() 558 zhash_pkt.out_buf = digest; in test_zephyr_hash_chunk()
|
/Zephyr-latest/subsys/net/l2/ieee802154/ |
D | ieee802154_security.c | 122 pkt->out_buf = frame + out_buf_offset; in prepare_cipher_aead_pkt()
|
/Zephyr-latest/drivers/ieee802154/ |
D | ieee802154_cc2520.c | 1180 if (!apkt->pkt->out_buf || !apkt->pkt->out_buf_max) { in insert_crypto_parameters() 1293 apkt->pkt->out_buf, apkt->pkt->out_len)) { in cc2520_crypto_ccm() 1299 memcpy(apkt->tag, apkt->pkt->out_buf + apkt->pkt->in_len, in cc2520_crypto_ccm() 1335 apkt->pkt->out_buf, apkt->pkt->out_len)) { in cc2520_crypto_uccm()
|
/Zephyr-latest/subsys/mgmt/ec_host_cmd/backends/ |
D | ec_host_cmd_backend_shi_npcx.c | 1048 uint8_t *out_buf = data->out_msg + EC_SHI_FRAME_START_LENGTH; in shi_npcx_backend_send() local 1062 ((uint8_t *)out_buf)[data->tx->len] = EC_SHI_PAST_END; in shi_npcx_backend_send()
|