/optee_os/core/crypto/ |
A D | aes-cts.c | 101 int block_size = 16; in cbc_cts_update() local 109 nb_blocks = (len + block_size - 1) / block_size; in cbc_cts_update() 112 len_last_block = len % block_size; in cbc_cts_update() 114 len_last_block = block_size; in cbc_cts_update() 122 block_size - len_last_block); in cbc_cts_update() 135 mode, 0, tmp_block, block_size, in cbc_cts_update() 144 block_size, tmp2_block); in cbc_cts_update() 152 block_size - len_last_block); in cbc_cts_update() 163 block_size, dst); in cbc_cts_update() 169 mode, 0, tmp_block, block_size, in cbc_cts_update() [all …]
|
A D | cbc-mac.c | 194 size_t block_size = 0; in crypto_cbc_mac_alloc_ctx() local 196 res = crypto_cipher_get_block_size(cbc_algo, &block_size); in crypto_cbc_mac_alloc_ctx() 213 ctx->block_len = block_size; in crypto_cbc_mac_alloc_ctx()
|
/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | cmac.c | 124 size_t olen, block_size; in cmac_generate_subkeys() local 128 block_size = ctx->cipher_info->block_size; in cmac_generate_subkeys() 240 size_t n, j, olen, block_size; in mbedtls_cipher_cmac_update() local 247 block_size = ctx->cipher_info->block_size; in mbedtls_cipher_cmac_update() 273 n = ( ilen + block_size - 1 ) / block_size; in mbedtls_cipher_cmac_update() 285 ilen -= block_size; in mbedtls_cipher_cmac_update() 286 input += block_size; in mbedtls_cipher_cmac_update() 311 size_t olen, block_size; in mbedtls_cipher_cmac_finish() local 318 block_size = ctx->cipher_info->block_size; in mbedtls_cipher_cmac_finish() 821 ( ret = memcmp( K2, &subkeys[block_size], block_size ) ) != 0 ) in cmac_test_subkeys() [all …]
|
A D | md.c | 328 2 * ctx->md_info->block_size ); in mbedtls_md_free() 391 memcpy( dst->hmac_ctx, src->hmac_ctx, 2 * src->md_info->block_size ); in mbedtls_md_clone() 468 ctx->hmac_ctx = mbedtls_calloc( 2, md_info->block_size ); in mbedtls_md_setup() 712 if( keylen > (size_t) ctx->md_info->block_size ) in mbedtls_md_hmac_starts() 726 opad = (unsigned char *) ctx->hmac_ctx + ctx->md_info->block_size; in mbedtls_md_hmac_starts() 728 memset( ipad, 0x36, ctx->md_info->block_size ); in mbedtls_md_hmac_starts() 729 memset( opad, 0x5C, ctx->md_info->block_size ); in mbedtls_md_hmac_starts() 740 ctx->md_info->block_size ) ) != 0 ) in mbedtls_md_hmac_starts() 766 opad = (unsigned char *) ctx->hmac_ctx + ctx->md_info->block_size; in mbedtls_md_hmac_finish() 773 ctx->md_info->block_size ) ) != 0 ) in mbedtls_md_hmac_finish() [all …]
|
A D | cipher.c | 542 size_t block_size; in mbedtls_cipher_update() local 562 block_size = mbedtls_cipher_get_block_size( ctx ); in mbedtls_cipher_update() 563 if ( 0 == block_size ) in mbedtls_cipher_update() 570 if( ilen != block_size ) in mbedtls_cipher_update() 603 ( ctx->unprocessed_len != 0 || ilen % block_size ) ) in mbedtls_cipher_update() 635 copy_len = block_size - ctx->unprocessed_len; in mbedtls_cipher_update() 641 ctx->operation, block_size, ctx->iv, in mbedtls_cipher_update() 647 *olen += block_size; in mbedtls_cipher_update() 648 output += block_size; in mbedtls_cipher_update() 664 copy_len = ilen % block_size; in mbedtls_cipher_update() [all …]
|
/optee_os/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_private.h | 79 #define HASH_PROCESS_(func_name, compress_name, compress_n_name, state_var, block_size) \ argument 95 if (md-> state_var .curlen == 0 && inlen >= block_size) { \ 97 blocks = inlen / block_size; \ 105 md-> state_var .length += blocks * block_size * 8; \ 106 in += blocks * block_size; \ 107 inlen -= blocks * block_size; \ 109 n = MIN(inlen, (block_size - md-> state_var .curlen)); \ 114 if (md-> state_var .curlen == block_size) { \ 123 md-> state_var .length += 8*block_size; \ 133 HASH_PROCESS_(func_name, compress_name, NULL, state_var, block_size) [all …]
|
/optee_os/lib/libutee/ |
A D | tee_api_operations.c | 39 size_t block_size = 1; in TEE_AllocateOperation() local 130 block_size = TEE_AES_BLOCK_SIZE; in TEE_AllocateOperation() 132 block_size = TEE_SM4_BLOCK_SIZE; in TEE_AllocateOperation() 134 block_size = TEE_DES_BLOCK_SIZE; in TEE_AllocateOperation() 288 if (block_size > 1) { in TEE_AllocateOperation() 289 size_t buffer_size = block_size; in TEE_AllocateOperation() 301 op->block_size = block_size; in TEE_AllocateOperation() 747 dst_op->block_size != src_op->block_size) in TEE_CopyOperation() 898 buffer_size = op->block_size; in tee_buffer_update() 920 op->block_size); in tee_buffer_update() [all …]
|
/optee_os/lib/libmbedtls/core/ |
A D | cmac.c | 75 size_t block_size = TEE_AES_BLOCK_SIZE; in mbed_cmac_final() local 85 block_size = TEE_DES_BLOCK_SIZE; in mbed_cmac_final() 87 if (len < block_size) in mbed_cmac_final() 95 if (len < block_size) in mbed_cmac_final()
|
A D | des_ecb.c | 64 size_t block_size = TEE_DES_BLOCK_SIZE; in mbed_des_ecb_update() local 67 if (len % block_size) in mbed_des_ecb_update() 70 for (offs = 0; offs < len; offs += block_size) { in mbed_des_ecb_update()
|
A D | des3_ecb.c | 72 size_t block_size = TEE_DES_BLOCK_SIZE; in mbed_des3_ecb_update() local 75 if (len % block_size) in mbed_des3_ecb_update() 78 for (offs = 0; offs < len; offs += block_size) { in mbed_des3_ecb_update()
|
A D | aes_ecb.c | 71 size_t block_size = TEE_AES_BLOCK_SIZE; in mbed_aes_ecb_update() local 74 if (len % block_size) in mbed_aes_ecb_update() 77 for (offs = 0; offs < len; offs += block_size) { in mbed_aes_ecb_update()
|
/optee_os/core/tee/ |
A D | tee_cryp_utl.c | 103 size_t block_size; in tee_do_cipher_update() local 112 res = tee_cipher_get_block_size(algo, &block_size); in tee_do_cipher_update() 115 if ((len % block_size) != 0) { in tee_do_cipher_update()
|
A D | fs_htree.c | 839 ht->stor->block_size); in tee_fs_htree_write_block() 843 ht->stor->block_size, enc_block); in tee_fs_htree_write_block() 889 if (len != ht->stor->block_size) { in tee_fs_htree_read_block() 895 ht->stor->block_size); in tee_fs_htree_read_block() 900 ht->stor->block_size, block); in tee_fs_htree_read_block()
|
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/ |
A D | md_internal.h | 57 unsigned char block_size; member
|
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | md_internal.h | 57 unsigned char block_size; member
|
A D | cipher.h | 300 unsigned int block_size; member 529 return ctx->cipher_info->block_size; in mbedtls_cipher_get_block_size()
|
/optee_os/out/arm/export-ta_arm64/include/mbedtls/ |
A D | md_internal.h | 57 unsigned char block_size; member
|
A D | cipher.h | 300 unsigned int block_size; member 529 return ctx->cipher_info->block_size; in mbedtls_cipher_get_block_size()
|
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/ |
A D | md_internal.h | 57 unsigned char block_size; member
|
A D | cipher.h | 300 unsigned int block_size; member 529 return ctx->cipher_info->block_size; in mbedtls_cipher_get_block_size()
|
/optee_os/out/arm/export-ta_arm32/include/mbedtls/ |
A D | md_internal.h | 57 unsigned char block_size; member
|
A D | cipher.h | 300 unsigned int block_size; member 529 return ctx->cipher_info->block_size; in mbedtls_cipher_get_block_size()
|
/optee_os/out/arm/export-ta_arm32/host_include/ |
A D | fs_htree.h | 88 size_t block_size; member
|
/optee_os/out/arm/export-ta_arm64/host_include/ |
A D | fs_htree.h | 88 size_t block_size; member
|
/optee_os/core/include/tee/ |
A D | fs_htree.h | 88 size_t block_size; member
|