Lines Matching refs:xts
106 if (in->xts.key1 != NULL) { in sm4_xts_dupctx()
107 if (in->xts.key1 != &in->ks1) in sm4_xts_dupctx()
110 if (in->xts.key2 != NULL) { in sm4_xts_dupctx()
111 if (in->xts.key2 != &in->ks2) in sm4_xts_dupctx()
127 || ctx->xts.key1 == NULL in sm4_xts_cipher()
128 || ctx->xts.key2 == NULL in sm4_xts_cipher()
147 (*ctx->stream)(in, out, inl, ctx->xts.key1, ctx->xts.key2, in sm4_xts_cipher()
149 else if (CRYPTO_xts128_encrypt(&ctx->xts, ctx->base.iv, in, out, inl, in sm4_xts_cipher()
154 (*ctx->stream_gb)(in, out, inl, ctx->xts.key1, ctx->xts.key2, in sm4_xts_cipher()
156 else if (ossl_crypto_xts128gb_encrypt(&ctx->xts, ctx->base.iv, in, out, in sm4_xts_cipher()
281 IMPLEMENT_cipher(xts, XTS, 128, SM4_XTS_FLAGS);