Searched refs:SIZE_IN_WORDS (Results 1 - 5 of 5) sorted by relevance
/kernel/linux/linux-5.10/drivers/crypto/mediatek/ |
H A D | mtk-platform.h | 30 #define SIZE_IN_WORDS(x) ((x) >> 2) macro 71 #define MTK_DESC_OFF SIZE_IN_WORDS(sizeof(struct mtk_desc))
|
H A D | mtk-aes.c | 21 #define AES_MAX_STATE_BUF_SIZE SIZE_IN_WORDS(AES_KEYSIZE_256 + \ 439 le32_to_cpu(AES_TFM_SIZE(SIZE_IN_WORDS(AES_BLOCK_SIZE)))); in mtk_aes_info_init() 639 ctx->keylen = SIZE_IN_WORDS(keylen); in mtk_aes_setkey() 870 ctx->keylen + SIZE_IN_WORDS(AES_BLOCK_SIZE + ivsize)) | in mtk_aes_gcm_info_init() 875 memcpy(info->state + ctx->keylen + SIZE_IN_WORDS(AES_BLOCK_SIZE), in mtk_aes_gcm_info_init() 981 u32 x32[SIZE_IN_WORDS(AES_BLOCK_SIZE)]; in mtk_aes_gcm_setkey() 1003 ctx->keylen = SIZE_IN_WORDS(keylen); in mtk_aes_gcm_setkey() 1015 for (i = 0; i < SIZE_IN_WORDS(AES_BLOCK_SIZE); i++) in mtk_aes_gcm_setkey()
|
H A D | mtk-sha.c | 283 info->tfm[0] = SHA_TFM_HASH | SHA_TFM_SIZE(SIZE_IN_WORDS(ctx->ds)); in mtk_sha_info_init() 313 info->cmd[2] = SHA_CMD2 | SHA_TFM_DIGEST(SIZE_IN_WORDS(ctx->ds)); in mtk_sha_info_init() 626 for (i = 0; i < SIZE_IN_WORDS(ctx->ds); i++) in mtk_sha_finish()
|
/kernel/linux/linux-5.10/drivers/crypto/ |
H A D | atmel-aes.c | 54 #define SIZE_IN_WORDS(x) ((x) >> 2) macro 393 atmel_aes_read_n(dd, offset, value, SIZE_IN_WORDS(AES_BLOCK_SIZE)); in atmel_aes_read_block() 399 atmel_aes_write_n(dd, offset, value, SIZE_IN_WORDS(AES_BLOCK_SIZE)); in atmel_aes_write_block() 596 atmel_aes_write_n(dd, AES_KEYWR(0), key, SIZE_IN_WORDS(keylen)); in atmel_aes_write_ctrl_key()
|
/kernel/linux/linux-6.6/drivers/crypto/ |
H A D | atmel-aes.c | 54 #define SIZE_IN_WORDS(x) ((x) >> 2) macro 395 atmel_aes_read_n(dd, offset, value, SIZE_IN_WORDS(AES_BLOCK_SIZE)); in atmel_aes_read_block() 401 atmel_aes_write_n(dd, offset, value, SIZE_IN_WORDS(AES_BLOCK_SIZE)); in atmel_aes_write_block() 583 atmel_aes_write_n(dd, AES_KEYWR(0), key, SIZE_IN_WORDS(keylen)); in atmel_aes_write_ctrl_key()
|
Completed in 12 milliseconds