Lines Matching refs:xctx
160 EVP_AES_XTS_CTX *xctx = ctx->cipher_data; in aes_xts_init_key() local
168 AES_set_encrypt_key(key, ctx->key_len * 4, &xctx->ks1.ks); in aes_xts_init_key()
169 xctx->xts.block1 = AES_encrypt; in aes_xts_init_key()
171 AES_set_decrypt_key(key, ctx->key_len * 4, &xctx->ks1.ks); in aes_xts_init_key()
172 xctx->xts.block1 = AES_decrypt; in aes_xts_init_key()
176 ctx->key_len * 4, &xctx->ks2.ks); in aes_xts_init_key()
177 xctx->xts.block2 = AES_encrypt; in aes_xts_init_key()
178 xctx->xts.key1 = &xctx->ks1.ks; in aes_xts_init_key()
182 xctx->xts.key2 = &xctx->ks2.ks; in aes_xts_init_key()
191 EVP_AES_XTS_CTX *xctx = ctx->cipher_data; in aes_xts_cipher() local
192 if (!xctx->xts.key1 || in aes_xts_cipher()
193 !xctx->xts.key2 || in aes_xts_cipher()
197 !CRYPTO_xts128_encrypt(&xctx->xts, ctx->iv, in, out, len, ctx->encrypt)) { in aes_xts_cipher()
204 EVP_AES_XTS_CTX *xctx = c->cipher_data; in aes_xts_ctrl() local
208 if (xctx->xts.key1) { in aes_xts_ctrl()
209 if (xctx->xts.key1 != &xctx->ks1.ks) { in aes_xts_ctrl()
214 if (xctx->xts.key2) { in aes_xts_ctrl()
215 if (xctx->xts.key2 != &xctx->ks2.ks) { in aes_xts_ctrl()
225 xctx->xts.key1 = NULL; in aes_xts_ctrl()
226 xctx->xts.key2 = NULL; in aes_xts_ctrl()