Home
last modified time | relevance | path

Searched refs:in_buf (Results 1 – 23 of 23) sorted by relevance

/Zephyr-latest/drivers/crypto/
Dcrypto_tc_shim.c35 op->in_buf, op->in_len, in do_cbc_encrypt()
56 if (iv != op->in_buf) { in do_cbc_decrypt()
63 op->in_buf + TC_AES_BLOCK_SIZE, in do_cbc_decrypt()
65 op->in_buf, &data->session_key) == TC_CRYPTO_FAIL) { in do_cbc_decrypt()
88 if (tc_ctr_mode(op->out_buf, op->out_buf_max, op->in_buf, in do_ctr_op()
117 aead_op->ad, aead_op->ad_len, op->in_buf, in do_ccm_encrypt_mac()
160 if (aead_op->tag != op->in_buf + op->in_len) { in do_ccm_decrypt_auth()
167 op->in_buf, in do_ccm_decrypt_auth()
Dcrypto_smartbond.c393 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
395 if (in_buf == NULL) { in crypto_smartbond_set_in_out_buf()
403 uint32_t phy_addr = black_orca_phy_addr((uint32_t)in_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()
609 ret = crypto_smartbond_set_in_out_buf(pkt->in_buf, in crypto_smartbond_cipher_cbc_handler()
612 ret = crypto_smartbond_set_in_out_buf(pkt->in_buf + offset, in crypto_smartbond_cipher_cbc_handler()
664 if (pkt->in_buf == NULL || pkt->out_buf == NULL) { in crypto_smartbond_cipher_ctr_handler()
685 ret = crypto_smartbond_set_in_out_buf(pkt->in_buf, pkt->out_buf, pkt->in_len); in crypto_smartbond_cipher_ctr_handler()
[all …]
Dcrypto_mtls_shim.c86 pkt->in_buf, pkt->out_buf); in mtls_ecb_encrypt()
111 pkt->in_buf, pkt->out_buf); in mtls_ecb_decrypt()
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()
190 apkt->pkt->in_buf, in mtls_ccm_encrypt_auth()
219 apkt->pkt->in_buf, in mtls_ccm_decrypt_auth()
252 apkt->pkt->in_buf, in mtls_gcm_encrypt_auth()
281 apkt->pkt->in_buf, in mtls_gcm_decrypt_auth()
482 ret = mbedtls_sha256_update(sha256_ctx, pkt->in_buf, pkt->in_len); in mtls_sha256_compute()
517 ret = mbedtls_sha512_update(sha512_ctx, pkt->in_buf, pkt->in_len); in mtls_sha512_compute()
Dcrypto_stm32.c114 static int do_aes(struct cipher_ctx *ctx, hal_cryp_aes_op_func_t fn, uint8_t *in_buf, int in_len, 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()
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()
Dcrypto_mcux_dcp.c103 status = DCP_AES_EncryptCbc(cfg->base, &session->handle, pkt->in_buf, in crypto_dcp_aes_cbc_encrypt()
134 status = DCP_AES_DecryptCbc(cfg->base, &session->handle, pkt->in_buf + iv_bytes, 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()
253 status = DCP_HASH_Update(cfg->base, &session->hash_ctx, pkt->in_buf, pkt->in_len); in crypto_dcp_sha256()
Dcrypto_nrf_ecb.c45 if (pkt->in_buf != drv_state.data.cleartext) { in do_ecb_encrypt()
46 memcpy(drv_state.data.cleartext, pkt->in_buf, in do_ecb_encrypt()
Dcrypto_ataes132a.c239 if (!aead_op->pkt->in_buf || !aead_op->pkt->out_buf) { in ataes132a_aes_ccm_decrypt()
343 memcpy(param_buffer + 20, aead_op->pkt->in_buf, in_buf_len); in ataes132a_aes_ccm_decrypt()
437 if (!aead_op->pkt->in_buf || !aead_op->pkt->out_buf) { in ataes132a_aes_ccm_encrypt()
522 memcpy(param_buffer + 2, aead_op->pkt->in_buf, buf_len); in ataes132a_aes_ccm_encrypt()
627 if (!pkt->in_buf || !pkt->out_buf) { in ataes132a_aes_ecb_block()
636 memcpy(param_buffer + 3, pkt->in_buf, buf_len); in ataes132a_aes_ecb_block()
Dcrypto_it8xxx2_sha_v2.c164 pkt->in_buf[in_buf_idx++]; in it8xxx2_hash_handler()
180 pkt->in_buf[in_buf_idx++]; in it8xxx2_hash_handler()
Dcrypto_mchp_xec_symcr.c325 memcpy(&hs->blockbuf[hs->blklen], pkt->in_buf, pkt->in_len); in xec_symcr_do_hash()
361 ret = mchp_xec_rom_hash_feed_wrapper(c, (const uint8_t *)pkt->in_buf, fill_len); in xec_symcr_do_hash()
388 memcpy(hs->blockbuf, &pkt->in_buf[fill_len], rem_len); in xec_symcr_do_hash()
Dcrypto_intel_sha.c239 ret = intel_sha_device_run(ctx->device, pkt->in_buf, frag_length, frag_length, in intel_sha_compute()
250 pkt->in_buf += frag_length; in intel_sha_compute()
Dcrypto_it8xxx2_sha.c140 pkt->in_buf[in_buf_idx++]; in it8xxx2_hash_handler()
Dcrypto_npcx_sha.c115 ret = NPCX_NCL_SHA->update(npcx_ctx->handle, pkt->in_buf, pkt->in_len); in npcx_sha_compute()
Dcrypto_si32.c341 dma_block_cfg.source_address = (uintptr_t)pkt->in_buf + in_buf_offset; in crypto_si32_dma_setup_tx()
418 dest_address = (uintptr_t)pkt->in_buf; in crypto_si32_dma_setup_rx()
506 dma_block_cfg.source_address = (uintptr_t)pkt->in_buf; in crypto_si32_dma_setup_xor()
/Zephyr-latest/samples/drivers/crypto/src/
Dmain.c137 .in_buf = ecb_plaintext, in ecb_mode()
143 .in_buf = encrypt.out_buf, in ecb_mode()
219 .in_buf = plaintext, in cbc_mode()
225 .in_buf = encrypt.out_buf, in cbc_mode()
310 .in_buf = plaintext, in ctr_mode()
316 .in_buf = encrypted, in ctr_mode()
410 .in_buf = ccm_data, in ccm_mode()
428 .in_buf = encrypted, in ccm_mode()
522 .in_buf = gcm_data, in gcm_mode()
540 .in_buf = encrypted, in gcm_mode()
/Zephyr-latest/include/zephyr/crypto/
Dhash.h91 uint8_t *in_buf; member
Dcipher.h183 uint8_t *in_buf; member
/Zephyr-latest/subsys/mgmt/osdp/src/
Dosdp_common.c60 .in_buf = data, in osdp_encrypt()
107 .in_buf = data, in osdp_decrypt()
/Zephyr-latest/samples/boards/microchip/mec172xevb_assy6906/rom_api/src/
Dmain.c444 zhash_pkt.in_buf = (uint8_t *)msgptr; in test_zephyr_hash_chunk_block_size()
462 zhash_pkt.in_buf = (uint8_t *)msgptr; in test_zephyr_hash_chunk_block_size()
539 zhash_pkt.in_buf = (uint8_t *)msgptr; in test_zephyr_hash_chunk()
556 zhash_pkt.in_buf = (uint8_t *)msgptr; in test_zephyr_hash_chunk()
/Zephyr-latest/tests/crypto/crypto_hash/src/
Dmain.c163 .in_buf = test ## _i, \ in ZTEST_USER()
/Zephyr-latest/drivers/ieee802154/
Dieee802154_cc2520.c1176 uint8_t *in_buf; in insert_crypto_parameters() local
1200 if (apkt->pkt->in_buf && apkt->pkt->in_buf - apkt->ad_len != apkt->ad) { in insert_crypto_parameters()
1205 if (!apkt->pkt->in_buf) { in insert_crypto_parameters()
1211 in_buf = apkt->ad; in insert_crypto_parameters()
1216 in_buf = data; in insert_crypto_parameters()
1218 memcpy(in_buf, apkt->ad, apkt->ad_len); in insert_crypto_parameters()
1219 memcpy(in_buf + apkt->ad_len, in insert_crypto_parameters()
1220 apkt->pkt->in_buf, apkt->pkt->in_len); in insert_crypto_parameters()
1236 if (!cc2520_write_ram(cc2520, CC2520_MEM_DATA, in_buf, in_len)) { in insert_crypto_parameters()
/Zephyr-latest/samples/bluetooth/bap_broadcast_sink/src/
Dmain.c117 struct net_buf *in_buf; member
202 if (stream->in_buf == NULL) { in lc3_decoder_thread()
208 buf = net_buf_ref(stream->in_buf); in lc3_decoder_thread()
209 net_buf_unref(stream->in_buf); in lc3_decoder_thread()
210 stream->in_buf = NULL; in lc3_decoder_thread()
571 if (sink_stream->in_buf != NULL) { in stream_recv_cb()
572 net_buf_unref(sink_stream->in_buf); in stream_recv_cb()
573 sink_stream->in_buf = NULL; in stream_recv_cb()
576 sink_stream->in_buf = net_buf_ref(buf); in stream_recv_cb()
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_engine.c691 static uint8_t in_buf[NET_IPV6_MTU]; in socket_recv_message() local
697 len = zsock_recvfrom(client_ctx->sock_fd, in_buf, sizeof(in_buf) - 1, ZSOCK_MSG_DONTWAIT, in socket_recv_message()
717 in_buf[len] = 0U; in socket_recv_message()
718 lwm2m_udp_receive(client_ctx, in_buf, len, &from_addr); in socket_recv_message()
/Zephyr-latest/subsys/net/l2/ieee802154/
Dieee802154_security.c115 pkt->in_buf = is_encrypted && payload_len ? frame + ll_hdr_len : NULL; in prepare_cipher_aead_pkt()