Lines Matching refs:xts
67 XTS128_CONTEXT xts; member
301 xctx->xts.block1 = (block128_f) aesni_encrypt; in aesni_xts_init_key()
305 xctx->xts.block1 = (block128_f) aesni_decrypt; in aesni_xts_init_key()
310 xctx->xts.block2 = (block128_f) aesni_encrypt; in aesni_xts_init_key()
312 xctx->xts.key1 = &xctx->ks1; in aesni_xts_init_key()
316 xctx->xts.key2 = &xctx->ks2; in aesni_xts_init_key()
666 xctx->xts.block1 = (block128_f) aes_t4_encrypt; in aes_t4_xts_init_key()
679 xctx->xts.block1 = (block128_f) aes_t4_decrypt; in aes_t4_xts_init_key()
693 xctx->xts.block2 = (block128_f) aes_t4_encrypt; in aes_t4_xts_init_key()
695 xctx->xts.key1 = &xctx->ks1; in aes_t4_xts_init_key()
699 xctx->xts.key2 = &xctx->ks2; in aes_t4_xts_init_key()
3199 if (xctx->xts.key1) { in aes_xts_ctrl()
3200 if (xctx->xts.key1 != &xctx->ks1) in aes_xts_ctrl()
3202 xctx_out->xts.key1 = &xctx_out->ks1; in aes_xts_ctrl()
3204 if (xctx->xts.key2) { in aes_xts_ctrl()
3205 if (xctx->xts.key2 != &xctx->ks2) in aes_xts_ctrl()
3207 xctx_out->xts.key2 = &xctx_out->ks2; in aes_xts_ctrl()
3213 xctx->xts.key1 = NULL; in aes_xts_ctrl()
3214 xctx->xts.key2 = NULL; in aes_xts_ctrl()
3269 xctx->xts.block1 = (block128_f) HWAES_encrypt; in aes_xts_init_key()
3275 xctx->xts.block1 = (block128_f) HWAES_decrypt; in aes_xts_init_key()
3282 xctx->xts.block2 = (block128_f) HWAES_encrypt; in aes_xts_init_key()
3284 xctx->xts.key1 = &xctx->ks1; in aes_xts_init_key()
3297 xctx->xts.block1 = (block128_f) vpaes_encrypt; in aes_xts_init_key()
3300 xctx->xts.block1 = (block128_f) vpaes_decrypt; in aes_xts_init_key()
3304 xctx->xts.block2 = (block128_f) vpaes_encrypt; in aes_xts_init_key()
3306 xctx->xts.key1 = &xctx->ks1; in aes_xts_init_key()
3314 xctx->xts.block1 = (block128_f) AES_encrypt; in aes_xts_init_key()
3317 xctx->xts.block1 = (block128_f) AES_decrypt; in aes_xts_init_key()
3321 xctx->xts.block2 = (block128_f) AES_encrypt; in aes_xts_init_key()
3323 xctx->xts.key1 = &xctx->ks1; in aes_xts_init_key()
3328 xctx->xts.key2 = &xctx->ks2; in aes_xts_init_key()
3340 if (xctx->xts.key1 == NULL in aes_xts_cipher()
3341 || xctx->xts.key2 == NULL in aes_xts_cipher()
3360 xctx->xts.key1, xctx->xts.key2, in aes_xts_cipher()
3362 else if (CRYPTO_xts128_encrypt(&xctx->xts, ctx->iv, in, out, len, in aes_xts_cipher()
3374 BLOCK_CIPHER_custom(NID_aes, 128, 1, 16, xts, XTS, XTS_FLAGS)
3375 BLOCK_CIPHER_custom(NID_aes, 256, 1, 16, xts, XTS, XTS_FLAGS)