Lines Matching refs:tweak
511 mbedtls_aes_init( &ctx->tweak ); in mbedtls_aes_xts_init()
520 mbedtls_aes_free( &ctx->tweak ); in mbedtls_aes_xts_free()
755 ret = mbedtls_aes_setkey_enc( &ctx->tweak, key2, key2bits ); in mbedtls_aes_xts_setkey_enc()
780 ret = mbedtls_aes_setkey_enc( &ctx->tweak, key2, key2bits ); in mbedtls_aes_xts_setkey_dec()
1122 unsigned char tweak[16]; in mbedtls_aes_crypt_xts() local
1142 ret = mbedtls_aes_crypt_ecb( &ctx->tweak, MBEDTLS_AES_ENCRYPT, in mbedtls_aes_crypt_xts()
1143 data_unit, tweak ); in mbedtls_aes_crypt_xts()
1158 memcpy( prev_tweak, tweak, sizeof( tweak ) ); in mbedtls_aes_crypt_xts()
1159 mbedtls_gf128mul_x_ble( tweak, tweak ); in mbedtls_aes_crypt_xts()
1163 tmp[i] = input[i] ^ tweak[i]; in mbedtls_aes_crypt_xts()
1170 output[i] = tmp[i] ^ tweak[i]; in mbedtls_aes_crypt_xts()
1173 mbedtls_gf128mul_x_ble( tweak, tweak ); in mbedtls_aes_crypt_xts()
1183 unsigned char *t = mode == MBEDTLS_AES_DECRYPT ? prev_tweak : tweak; in mbedtls_aes_crypt_xts()