Lines Matching refs:inl
122 size_t outsize, const unsigned char *in, size_t inl) in sm4_xts_cipher() argument
132 || inl < SM4_BLOCK_SIZE) in sm4_xts_cipher()
141 if (inl > XTS_MAX_BLOCKS_PER_DATA_UNIT * SM4_BLOCK_SIZE) { 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()
157 inl, ctx->base.enc)) in sm4_xts_cipher()
160 *outl = inl; in sm4_xts_cipher()
166 size_t inl) in sm4_xts_stream_update() argument
170 if (outsize < inl) { in sm4_xts_stream_update()
175 if (!sm4_xts_cipher(ctx, out, outl, outsize, in, inl)) { in sm4_xts_stream_update()