Lines Matching refs:inl
245 const unsigned char *in, size_t inl)
261 || outsize < inl
273 padnum = blksz - (inl % blksz);
275 if (outsize < inl + padnum) {
287 memset(out + inl, 0, padnum - 1);
288 *(out + inl + padnum - 1) = padval;
291 for (loop = inl; loop < inl + padnum; loop++)
294 inl += padnum;
297 if ((inl % blksz) != 0) {
304 if (!ctx->hw->cipher(ctx, out, in, inl)) {
316 *outl = inl;
330 &in, &inl);
332 nextblocks = inl & ~(blksz-1);
339 if (ctx->bufsz == blksz && (ctx->enc || inl > 0 || !ctx->pad)) {
353 if (!ctx->enc && ctx->pad && nextblocks == inl) {
354 if (!ossl_assert(inl >= blksz)) {
372 inl -= nextblocks;
374 if (inl != 0
375 && !ossl_cipher_trailingdata(ctx->buf, &ctx->bufsz, blksz, &in, &inl)) {
381 return inl == 0;
455 const unsigned char *in, size_t inl)
459 if (inl == 0) {
464 if (outsize < inl) {
469 if (!ctx->hw->cipher(ctx, out, in, inl)) {
474 *outl = inl;
485 if (!ossl_assert(*outl >= (size_t)(out[inl - 1] + 1)))
488 *outl -= out[inl - 1] + 1;
522 size_t inl)
529 if (outsize < inl) {
534 if (!ctx->hw->cipher(ctx, out, in, inl)) {
539 *outl = inl;