Searched refs:size_block (Results 1 – 9 of 9) sorted by relevance
| /optee_os/core/drivers/crypto/caam/cipher/ |
| H A D | caam_cipher_xts.c | 57 for (idx = 0; idx < ctx->alg->size_block; idx++) in do_tweak_block() 68 for (idx = 0; idx < ctx->alg->size_block; idx++) in do_tweak_block() 120 ret = caam_dmaobj_output_sgtbuf(&tmpdst, NULL, 0, ctx->alg->size_block); in caam_cipher_update_xts() 145 lastblk = fullsize % ctx->alg->size_block; in caam_cipher_update_xts() 155 fullsize -= ctx->alg->size_block; in caam_cipher_update_xts() 158 srcbuf.length = ctx->alg->size_block; in caam_cipher_update_xts() 162 dstbuf.length = ctx->alg->size_block; in caam_cipher_update_xts() 165 for (; fullsize > 0; fullsize -= ctx->alg->size_block) { in caam_cipher_update_xts() 178 srcbuf.data += ctx->alg->size_block; in caam_cipher_update_xts() 179 srcbuf.paddr += ctx->alg->size_block; in caam_cipher_update_xts() [all …]
|
| H A D | caam_cipher_mac.c | 28 .size_block = TEE_AES_BLOCK_SIZE, 42 .size_block = TEE_AES_BLOCK_SIZE, 59 .size_block = TEE_DES_BLOCK_SIZE, 76 .size_block = TEE_DES_BLOCK_SIZE, 160 if (full_size < ctx->alg->size_block) { in do_update_mac() 163 size_topost = full_size % ctx->alg->size_block; in do_update_mac() 192 ret = caam_dmaobj_prepare(&src, NULL, ctx->alg->size_block); in do_update_mac() 205 if (size_todo > ctx->alg->size_block) in do_update_mac() 206 size_todo -= ctx->alg->size_block; in do_update_mac() 219 size_done = ctx->alg->size_block; in do_update_mac() [all …]
|
| H A D | caam_cipher.c | 31 .size_block = TEE_AES_BLOCK_SIZE, 40 .size_block = TEE_AES_BLOCK_SIZE, 49 .size_block = TEE_AES_BLOCK_SIZE, 61 .size_block = TEE_AES_BLOCK_SIZE, 76 .size_block = TEE_DES_BLOCK_SIZE, 85 .size_block = TEE_DES_BLOCK_SIZE, 100 .size_block = TEE_DES_BLOCK_SIZE, 110 .size_block = TEE_DES_BLOCK_SIZE, 289 cipherdata->blockbuf.max = cipherdata->alg->size_block; in do_allocate() 461 if (dinit->iv.length != alg->size_block) { in caam_cipher_initialize() [all …]
|
| H A D | local.h | 36 uint8_t size_block; /* Computing block size */ member
|
| /optee_os/core/drivers/crypto/caam/hash/ |
| H A D | caam_hash.c | 38 .size_block = TEE_MD5_HASH_SIZE * 4, 46 .size_block = TEE_MAX_HASH_SIZE, 54 .size_block = TEE_MAX_HASH_SIZE, 62 .size_block = TEE_MAX_HASH_SIZE, 70 .size_block = TEE_MAX_HASH_SIZE * 2, 78 .size_block = TEE_MAX_HASH_SIZE * 2, 308 ctx->blockbuf.max = ctx->alg->size_block; in caam_hash_hmac_allocate() 373 ctx->blockbuf.max = ctx->alg->size_block; in caam_hash_hmac_init() 496 size_topost = fullsize % alg->size_block; in caam_hash_hmac_update() 516 ret = caam_dmaobj_prepare(&src, NULL, alg->size_block); in caam_hash_hmac_update() [all …]
|
| H A D | local.h | 30 uint8_t size_block; /* Computing block size */ member
|
| H A D | caam_hash_mac.c | 151 if (len > alg->size_block) { in do_hmac_init()
|
| /optee_os/core/drivers/crypto/caam/ae/ |
| H A D | local.h | 27 uint8_t size_block; member
|
| H A D | caam_ae.c | 32 .size_block = TEE_AES_BLOCK_SIZE, 43 .size_block = TEE_AES_BLOCK_SIZE, 114 caam_ctx->blockbuf.max = caam_ctx->alg->size_block; in caam_ae_allocate() 789 if (full_size < caam_ctx->alg->size_block) { in caam_ae_do_update() 794 size_topost = full_size % caam_ctx->alg->size_block; in caam_ae_do_update() 944 caam_ctx->alg->size_block); in caam_ae_do_update() 983 caam_ctx->alg->size_block); in caam_ae_do_update()
|