Searched refs:AES_XTS_BLOCKSIZE (Results 1 – 4 of 4) sorted by relevance
/freebsd/sys/opencrypto/ |
H A D | xform_aes_xts.c | 110 uint8_t block[AES_XTS_BLOCKSIZE]; in aes_xts_crypt() 113 KASSERT(len % AES_XTS_BLOCKSIZE == 0, ("%s: invalid length", __func__)); in aes_xts_crypt() 115 for (i = 0; i < AES_XTS_BLOCKSIZE; i++) in aes_xts_crypt() 123 for (i = 0; i < AES_XTS_BLOCKSIZE; i++) in aes_xts_crypt() 128 for (i = 0; i < AES_XTS_BLOCKSIZE; i++) { in aes_xts_crypt() 136 in += AES_XTS_BLOCKSIZE; in aes_xts_crypt() 137 out += AES_XTS_BLOCKSIZE; in aes_xts_crypt() 138 len -= AES_XTS_BLOCKSIZE; in aes_xts_crypt() 146 aes_xts_crypt(key, in, out, AES_XTS_BLOCKSIZE, true); in aes_xts_encrypt() 152 aes_xts_crypt(key, in, out, AES_XTS_BLOCKSIZE, false); in aes_xts_decrypt()
|
H A D | xform_enc.h | 43 #define AES_XTS_BLOCKSIZE 16 macro 116 uint8_t tweak[AES_XTS_BLOCKSIZE];
|
/freebsd/sys/crypto/armv8/ |
H A D | armv8_crypto_wrap.c | 194 #define AES_XTS_BLOCKSIZE 16 macro 241 uint8_t block[AES_XTS_BLOCKSIZE] __aligned(16); in armv8_aes_crypt_xts() 242 uint8_t tweak[AES_XTS_BLOCKSIZE] __aligned(16); in armv8_aes_crypt_xts() 246 KASSERT(len % AES_XTS_BLOCKSIZE == 0, in armv8_aes_crypt_xts() 268 if (seglen < AES_XTS_BLOCKSIZE) { in armv8_aes_crypt_xts() 269 crypto_cursor_copydata(fromc, AES_XTS_BLOCKSIZE, block); in armv8_aes_crypt_xts() 272 crypto_cursor_copyback(toc, AES_XTS_BLOCKSIZE, block); in armv8_aes_crypt_xts() 273 seglen = AES_XTS_BLOCKSIZE; in armv8_aes_crypt_xts() 275 for (oseglen = seglen; seglen >= AES_XTS_BLOCKSIZE; in armv8_aes_crypt_xts() 276 seglen -= AES_XTS_BLOCKSIZE) { in armv8_aes_crypt_xts() [all …]
|
/freebsd/sys/crypto/aesni/ |
H A D | aesni_wrap.c | 290 #define AES_XTS_BLOCKSIZE 16 macro 389 uint8_t tweak[AES_XTS_BLOCKSIZE] __aligned(16); in aesni_crypt_xts() 406 cnt = len / AES_XTS_BLOCKSIZE / 8; in aesni_crypt_xts() 410 from += AES_XTS_BLOCKSIZE * 8; in aesni_crypt_xts() 411 to += AES_XTS_BLOCKSIZE * 8; in aesni_crypt_xts() 414 cnt = len / AES_XTS_BLOCKSIZE; in aesni_crypt_xts() 418 from += AES_XTS_BLOCKSIZE; in aesni_crypt_xts() 419 to += AES_XTS_BLOCKSIZE; in aesni_crypt_xts()
|