Home
last modified time | relevance | path

Searched refs:data_len (Results 1 – 17 of 17) sorted by relevance

/trusted-firmware-a-3.7.0/drivers/brcm/
Dspi_sf.c18 size_t data_len) in spi_flash_read_write() argument
23 if (data_len == 0) in spi_flash_read_write()
30 } else if (data_len != 0) { in spi_flash_read_write()
31 ret = spi_xfer(data_len * BITS_PER_BYTE, data_out, in spi_flash_read_write()
35 data_len, ret); in spi_flash_read_write()
44 size_t data_len) in spi_flash_cmd_read() argument
46 return spi_flash_read_write(cmd, cmd_len, NULL, data, data_len); in spi_flash_cmd_read()
57 size_t data_len) in spi_flash_cmd_write() argument
59 return spi_flash_read_write(cmd, cmd_len, data, NULL, data_len); in spi_flash_cmd_write()
Dspi_flash.c142 void *data, size_t data_len) in spi_flash_read_common() argument
146 ret = spi_flash_cmd_read(cmd, cmd_len, data, data_len); in spi_flash_read_common()
/trusted-firmware-a-3.7.0/drivers/auth/
Dcrypto_mod.c79 int crypto_mod_verify_signature(void *data_ptr, unsigned int data_len, in crypto_mod_verify_signature() argument
85 assert(data_len != 0); in crypto_mod_verify_signature()
93 return crypto_lib_desc.verify_signature(data_ptr, data_len, in crypto_mod_verify_signature()
107 int crypto_mod_verify_hash(void *data_ptr, unsigned int data_len, in crypto_mod_verify_hash() argument
111 assert(data_len != 0); in crypto_mod_verify_hash()
115 return crypto_lib_desc.verify_hash(data_ptr, data_len, in crypto_mod_verify_hash()
133 unsigned int data_len, in crypto_mod_calc_hash() argument
137 assert(data_len != 0); in crypto_mod_calc_hash()
140 return crypto_lib_desc.calc_hash(alg, data_ptr, data_len, output); in crypto_mod_calc_hash()
Dauth_mod.c94 unsigned int data_len, hash_der_len; in auth_hash() local
109 img, img_len, &data_ptr, &data_len); in auth_hash()
117 rc = crypto_mod_verify_hash(data_ptr, data_len, in auth_hash()
160 unsigned int data_len, pk_len, cnv_pk_len, pk_plat_len, sig_len, sig_alg_len; in auth_signature() local
166 img, img_len, &data_ptr, &data_len); in auth_signature()
292 rc = crypto_mod_verify_signature(data_ptr, data_len, in auth_signature()
328 unsigned int data_len, len, i; in auth_nvctr() local
336 img, img_len, &data_ptr, &data_len); in auth_nvctr()
351 if ((data_len < 3) || (*p != ASN1_INTEGER)) { in auth_nvctr()
362 if ((len > 4) || (data_len - 2 != len)) { in auth_nvctr()
/trusted-firmware-a-3.7.0/include/drivers/auth/
Dcrypto_mod.h55 int (*verify_signature)(void *data_ptr, unsigned int data_len,
61 int (*verify_hash)(void *data_ptr, unsigned int data_len,
66 unsigned int data_len,
95 int crypto_mod_verify_signature(void *data_ptr, unsigned int data_len,
99 int crypto_mod_verify_hash(void *data_ptr, unsigned int data_len,
113 unsigned int data_len,
/trusted-firmware-a-3.7.0/drivers/nxp/crypto/caam/src/auth/
Dnxp_crypto.c41 static int verify_signature(void *data_ptr, unsigned int data_len, in verify_signature() argument
53 ret = rsa_verify_signature(data_ptr, data_len, sig_ptr, sig_len, in verify_signature()
77 static int verify_hash(void *data_ptr, unsigned int data_len, in verify_hash() argument
94 ret = hash_update(algo, ctx, data_ptr, data_len); in verify_hash()
Dhash.c65 unsigned int data_len) in hash_update() argument
83 flush_dcache_range((uintptr_t)data_ptr, data_len); in hash_update()
96 (data_len & SG_ENTRY_LENGTH_MASK)); in hash_update()
100 ctx->len += data_len; in hash_update()
/trusted-firmware-a-3.7.0/include/drivers/st/
Dstm32_saes.h53 uint8_t *data_in, uint8_t *data_out, size_t data_len);
55 uint8_t *data, size_t data_len);
57 uint8_t *data_in, uint8_t *data_out, size_t data_len);
/trusted-firmware-a-3.7.0/drivers/auth/mbedtls/
Dmbedtls_crypto.c74 static int verify_signature(void *data_ptr, unsigned int data_len, in verify_signature() argument
132 rc = mbedtls_md(md_info, p, data_len, hash); in verify_signature()
163 static int verify_hash(void *data_ptr, unsigned int data_len, in verify_hash() argument
219 rc = mbedtls_md(md_info, p, data_len, data_hash); in verify_hash()
262 unsigned int data_len, in calc_hash() argument
277 return mbedtls_md(md_info, data_ptr, data_len, output); in calc_hash()
Dmbedtls_psa_crypto.c301 static int verify_signature(void *data_ptr, unsigned int data_len, in verify_signature() argument
407 data_ptr, data_len, in verify_signature()
434 static int verify_hash(void *data_ptr, unsigned int data_len, in verify_hash() argument
491 data_ptr, (size_t)data_len, in verify_hash()
532 unsigned int data_len, in calc_hash() argument
547 status = psa_hash_compute(psa_md_alg, data_ptr, (size_t)data_len, in calc_hash()
/trusted-firmware-a-3.7.0/include/drivers/brcm/
Dsf.h86 void *data, size_t data_len);
89 const void *data, size_t data_len);
/trusted-firmware-a-3.7.0/plat/nvidia/tegra/soc/t210/drivers/se/
Dsecurity_engine.c420 se_dev->dst_ll_buf->buffer[0].data_len = SE_CTX_SAVE_RANDOM_DATA_SIZE; in tegra_se_lp_generate_random_data()
474 se_dev->src_ll_buf->buffer[0].data_len = data_size; in tegra_se_lp_data_context_save()
476 se_dev->dst_ll_buf->buffer[0].data_len = data_size; in tegra_se_lp_data_context_save()
517 se_dev->dst_ll_buf->buffer[0].data_len = SE_CTX_SAVE_STICKY_BITS_SIZE; in tegra_se_lp_sticky_bits_context_save()
556 se_dev->dst_ll_buf->buffer[0].data_len = TEGRA_SE_KEY_128_SIZE; in tegra_se_aeskeytable_context_save()
580 se_dev->dst_ll_buf->buffer[0].data_len = TEGRA_SE_AES_IV_SIZE; in tegra_se_aeskeytable_context_save()
600 se_dev->dst_ll_buf->buffer[0].data_len = TEGRA_SE_AES_IV_SIZE; in tegra_se_aeskeytable_context_save()
643 se_dev->dst_ll_buf->buffer[0].data_len = TEGRA_SE_KEY_128_SIZE; in tegra_se_lp_rsakeytable_context_save()
684 se_dev->dst_ll_buf->buffer[0].data_len = TEGRA_SE_AES_BLOCK_SIZE; in tegra_se_pkakeytable_sticky_bits_save()
712 se_dev->dst_ll_buf->buffer[0].data_len = TEGRA_SE_KEY_128_SIZE; in tegra_se_pkakeytable_context_save()
/trusted-firmware-a-3.7.0/plat/nvidia/tegra/include/drivers/
Dsecurity_engine.h20 uint32_t data_len; member
/trusted-firmware-a-3.7.0/include/drivers/nxp/crypto/caam/
Dhash.h81 unsigned int data_len);
/trusted-firmware-a-3.7.0/plat/st/common/
Dstm32mp_crypto_lib.c305 static int crypto_verify_signature(void *data_ptr, unsigned int data_len, in crypto_verify_signature() argument
436 ret = stm32_hash_final_update((uint8_t *)data_ptr, data_len, image_hash); in crypto_verify_signature()
445 static int crypto_verify_hash(void *data_ptr, unsigned int data_len, in crypto_verify_hash() argument
468 ret = stm32_hash_final_update(data_ptr, data_len, calc_hash); in crypto_verify_hash()
571 static int stm32_decrypt_aes_gcm(void *data, size_t data_len, in stm32_decrypt_aes_gcm() argument
597 ret = stm32_saes_update_load(&ctx, true, data, data, data_len); in stm32_decrypt_aes_gcm()
/trusted-firmware-a-3.7.0/drivers/mtd/nand/
Draw_nand.c235 unsigned int data_len) in nand_check_crc() argument
241 for (i = 0U; i < data_len; i++) { in nand_check_crc()
/trusted-firmware-a-3.7.0/docs/design/
Dauth-framework.rst235 int (*verify_signature)(void *data_ptr, unsigned int data_len,
240 unsigned int data_len,
242 int (*verify_hash)(void *data_ptr, unsigned int data_len,
982 int verify_signature(void *data_ptr, unsigned int data_len,
987 unsigned int data_len,
989 int verify_hash(void *data_ptr, unsigned int data_len,