Lines Matching refs:block
92 static uint8x16_t aesce_encrypt_block(uint8x16_t block, in aesce_encrypt_block() argument
99 block = vaeseq_u8(block, vld1q_u8(keys + i * 16)); in aesce_encrypt_block()
101 block = vaesmcq_u8(block); in aesce_encrypt_block()
106 block = vaeseq_u8(block, vld1q_u8(keys + (rounds -1) * 16)); in aesce_encrypt_block()
111 block = veorq_u8(block, vld1q_u8(keys + rounds * 16)); in aesce_encrypt_block()
113 return block; in aesce_encrypt_block()
116 static uint8x16_t aesce_decrypt_block(uint8x16_t block, in aesce_decrypt_block() argument
123 block = vaesdq_u8(block, vld1q_u8(keys + i * 16)); in aesce_decrypt_block()
136 block = vaesimcq_u8(block); in aesce_decrypt_block()
141 block = vaesdq_u8(block, vld1q_u8(keys + (rounds - 1) * 16)); in aesce_decrypt_block()
144 block = veorq_u8(block, vld1q_u8(keys + rounds * 16)); in aesce_decrypt_block()
146 return block; in aesce_decrypt_block()
157 uint8x16_t block = vld1q_u8(&input[0]); in mbedtls_aesce_crypt_ecb() local
161 block = aesce_encrypt_block(block, keys, ctx->nr); in mbedtls_aesce_crypt_ecb()
163 block = aesce_decrypt_block(block, keys, ctx->nr); in mbedtls_aesce_crypt_ecb()
165 vst1q_u8(&output[0], block); in mbedtls_aesce_crypt_ecb()