Lines Matching defs:ctx
64 static size_t CRYPTO_xts128_encrypt(const XTS128_CONTEXT *ctx,
78 (*ctx->block2)(tweak.c, tweak.c, ctx->key2);
91 (*ctx->block1)(scratch.c, scratch.c, ctx->key1);
121 (*ctx->block1)(scratch.c, scratch.c, ctx->key1);
145 (*ctx->block1)(scratch.c, scratch.c, ctx->key1);
156 (*ctx->block1)(scratch.c, scratch.c, ctx->key1);
178 static int aes_xts_init_key(EVP_CIPHER_CTX *ctx, const uint8_t *key,
180 EVP_AES_XTS_CTX *xctx = ctx->cipher_data;
188 AES_set_encrypt_key(key, ctx->key_len * 4, &xctx->ks1.ks);
191 AES_set_decrypt_key(key, ctx->key_len * 4, &xctx->ks1.ks);
195 AES_set_encrypt_key(key + ctx->key_len / 2,
196 ctx->key_len * 4, &xctx->ks2.ks);
203 OPENSSL_memcpy(ctx->iv, iv, 16);
209 static int aes_xts_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out,
211 EVP_AES_XTS_CTX *xctx = ctx->cipher_data;
217 !CRYPTO_xts128_encrypt(&xctx->xts, ctx->iv, in, out, len, ctx->encrypt)) {