Home
last modified time | relevance | path

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

/Zephyr-Core-3.4.0/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_stm32.c71 static int do_encrypt(struct cipher_ctx *ctx, uint8_t *in_buf, int in_len, in do_encrypt() argument
88 status = HAL_CRYP_Encrypt(&data->hcryp, (uint32_t *)in_buf, in_len, in do_encrypt()
101 static int do_decrypt(struct cipher_ctx *ctx, uint8_t *in_buf, int in_len, in do_decrypt() argument
118 status = HAL_CRYP_Decrypt(&data->hcryp, (uint32_t *)in_buf, in_len, in do_decrypt()
144 ret = do_encrypt(ctx, pkt->in_buf, pkt->in_len, pkt->out_buf); in crypto_stm32_ecb_encrypt()
165 ret = do_decrypt(ctx, pkt->in_buf, pkt->in_len, pkt->out_buf); in crypto_stm32_ecb_decrypt()
191 ret = do_encrypt(ctx, pkt->in_buf, pkt->in_len, in crypto_stm32_cbc_encrypt()
216 ret = do_decrypt(ctx, pkt->in_buf + in_offset, pkt->in_len, in crypto_stm32_cbc_decrypt()
237 ret = do_encrypt(ctx, pkt->in_buf, pkt->in_len, pkt->out_buf); in crypto_stm32_ctr_encrypt()
257 ret = do_decrypt(ctx, pkt->in_buf, pkt->in_len, pkt->out_buf); in crypto_stm32_ctr_decrypt()
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_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()
430 if (!aead_op->pkt->in_buf || !aead_op->pkt->out_buf) { in ataes132a_aes_ccm_encrypt()
515 memcpy(param_buffer + 2, aead_op->pkt->in_buf, buf_len); in ataes132a_aes_ccm_encrypt()
619 if (!pkt->in_buf || !pkt->out_buf) { in ataes132a_aes_ecb_block()
628 memcpy(param_buffer + 3, pkt->in_buf, buf_len); in ataes132a_aes_ecb_block()
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_npcx_sha.c131 ret = NPCX_NCL_SHA->update(npcx_ctx->handle, pkt->in_buf, pkt->in_len); in npcx_sha_compute()
/Zephyr-Core-3.4.0/samples/drivers/crypto/src/
Dmain.c133 .in_buf = ecb_plaintext, in ecb_mode()
139 .in_buf = encrypt.out_buf, in ecb_mode()
215 .in_buf = plaintext, in cbc_mode()
221 .in_buf = encrypt.out_buf, in cbc_mode()
306 .in_buf = plaintext, in ctr_mode()
312 .in_buf = encrypted, in ctr_mode()
408 .in_buf = ccm_data, in ccm_mode()
426 .in_buf = encrypted, in ccm_mode()
525 .in_buf = gcm_data, in gcm_mode()
543 .in_buf = encrypted, in gcm_mode()
/Zephyr-Core-3.4.0/include/zephyr/crypto/
Dhash.h91 uint8_t *in_buf; member
Dcipher.h183 uint8_t *in_buf; member
/Zephyr-Core-3.4.0/subsys/mgmt/osdp/src/
Dosdp_common.c60 .in_buf = data, in osdp_encrypt()
107 .in_buf = data, in osdp_decrypt()
/Zephyr-Core-3.4.0/samples/boards/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-Core-3.4.0/tests/crypto/crypto_hash/src/
Dmain.c142 .in_buf = test ## _i, \ in ZTEST_USER()
/Zephyr-Core-3.4.0/drivers/ieee802154/
Dieee802154_cc2520.c1157 uint8_t *in_buf; in insert_crypto_parameters() local
1181 if (apkt->pkt->in_buf && apkt->pkt->in_buf - apkt->ad_len != apkt->ad) { in insert_crypto_parameters()
1186 if (!apkt->pkt->in_buf) { in insert_crypto_parameters()
1192 in_buf = apkt->ad; in insert_crypto_parameters()
1197 in_buf = data; in insert_crypto_parameters()
1199 memcpy(in_buf, apkt->ad, apkt->ad_len); in insert_crypto_parameters()
1200 memcpy(in_buf + apkt->ad_len, in insert_crypto_parameters()
1201 apkt->pkt->in_buf, apkt->pkt->in_len); in insert_crypto_parameters()
1217 if (!cc2520_write_ram(cc2520, CC2520_MEM_DATA, in_buf, in_len)) { in insert_crypto_parameters()
/Zephyr-Core-3.4.0/samples/bluetooth/unicast_audio_server/src/
Dmain.c515 const uint8_t *in_buf; in stream_recv_lc3_codec() local
527 in_buf = NULL; in stream_recv_lc3_codec()
529 in_buf = buf->data; in stream_recv_lc3_codec()
540 err = lc3_decode(lc3_decoder, in_buf + offset, octets_per_frame, in stream_recv_lc3_codec()
543 if (in_buf != NULL) { in stream_recv_lc3_codec()
/Zephyr-Core-3.4.0/subsys/net/lib/lwm2m/
Dlwm2m_engine.c570 static uint8_t in_buf[NET_IPV6_MTU]; in socket_recv_message() local
576 len = zsock_recvfrom(client_ctx->sock_fd, in_buf, sizeof(in_buf) - 1, 0, &from_addr, in socket_recv_message()
596 in_buf[len] = 0U; in socket_recv_message()
597 lwm2m_udp_receive(client_ctx, in_buf, len, &from_addr, handle_request); in socket_recv_message()
/Zephyr-Core-3.4.0/subsys/net/l2/ieee802154/
Dieee802154_security.c115 pkt->in_buf = is_encrypted && payload_len ? frame + hdr_len : NULL; in prepare_cipher_aead_pkt()