Lines Matching refs:inl

250                                      const unsigned char *in, size_t inl)  in ossl_cipher_generic_block_update()  argument
271 || outsize < inl in ossl_cipher_generic_block_update()
283 padnum = blksz - (inl % blksz); in ossl_cipher_generic_block_update()
285 if (outsize < inl + padnum) { in ossl_cipher_generic_block_update()
297 memset(out + inl, 0, padnum - 1); in ossl_cipher_generic_block_update()
298 *(out + inl + padnum - 1) = padval; in ossl_cipher_generic_block_update()
301 for (loop = inl; loop < inl + padnum; loop++) in ossl_cipher_generic_block_update()
304 inl += padnum; in ossl_cipher_generic_block_update()
307 if ((inl % blksz) != 0) { in ossl_cipher_generic_block_update()
314 if (!ctx->hw->cipher(ctx, out, in, inl)) { in ossl_cipher_generic_block_update()
326 *outl = inl; in ossl_cipher_generic_block_update()
340 &in, &inl); in ossl_cipher_generic_block_update()
342 nextblocks = inl & ~(blksz-1); in ossl_cipher_generic_block_update()
349 if (ctx->bufsz == blksz && (ctx->enc || inl > 0 || !ctx->pad)) { in ossl_cipher_generic_block_update()
363 if (!ctx->enc && ctx->pad && nextblocks == inl) { in ossl_cipher_generic_block_update()
364 if (!ossl_assert(inl >= blksz)) { in ossl_cipher_generic_block_update()
382 inl -= nextblocks; in ossl_cipher_generic_block_update()
384 if (inl != 0 in ossl_cipher_generic_block_update()
385 && !ossl_cipher_trailingdata(ctx->buf, &ctx->bufsz, blksz, &in, &inl)) { in ossl_cipher_generic_block_update()
391 return inl == 0; in ossl_cipher_generic_block_update()
470 const unsigned char *in, size_t inl) in ossl_cipher_generic_stream_update() argument
479 if (inl == 0) { in ossl_cipher_generic_stream_update()
484 if (outsize < inl) { in ossl_cipher_generic_stream_update()
489 if (!ctx->hw->cipher(ctx, out, in, inl)) { in ossl_cipher_generic_stream_update()
494 *outl = inl; in ossl_cipher_generic_stream_update()
505 if (!ossl_assert(*outl >= (size_t)(out[inl - 1] + 1))) in ossl_cipher_generic_stream_update()
508 *outl -= out[inl - 1] + 1; in ossl_cipher_generic_stream_update()
549 size_t inl) in ossl_cipher_generic_cipher() argument
561 if (outsize < inl) { in ossl_cipher_generic_cipher()
566 if (!ctx->hw->cipher(ctx, out, in, inl)) { in ossl_cipher_generic_cipher()
571 *outl = inl; in ossl_cipher_generic_cipher()