Lines Matching refs:blksz
254 size_t blksz = ctx->blocksize; in ossl_cipher_generic_block_update() local
283 padnum = blksz - (inl % blksz); in ossl_cipher_generic_block_update()
307 if ((inl % blksz) != 0) { in ossl_cipher_generic_block_update()
330 blksz, &ctx->tlsmac, &ctx->alloced, in ossl_cipher_generic_block_update()
339 nextblocks = ossl_cipher_fillblock(ctx->buf, &ctx->bufsz, blksz, 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()
350 if (outsize < blksz) { in ossl_cipher_generic_block_update()
354 if (!ctx->hw->cipher(ctx, out, ctx->buf, blksz)) { in ossl_cipher_generic_block_update()
359 outlint = blksz; in ossl_cipher_generic_block_update()
360 out += blksz; in ossl_cipher_generic_block_update()
364 if (!ossl_assert(inl >= blksz)) { in ossl_cipher_generic_block_update()
368 nextblocks -= blksz; in ossl_cipher_generic_block_update()
385 && !ossl_cipher_trailingdata(ctx->buf, &ctx->bufsz, blksz, &in, &inl)) { in ossl_cipher_generic_block_update()
398 size_t blksz = ctx->blocksize; in ossl_cipher_generic_block_final() local
416 ossl_cipher_padblock(ctx->buf, &ctx->bufsz, blksz); in ossl_cipher_generic_block_final()
420 } else if (ctx->bufsz != blksz) { in ossl_cipher_generic_block_final()
425 if (outsize < blksz) { in ossl_cipher_generic_block_final()
429 if (!ctx->hw->cipher(ctx, out, ctx->buf, blksz)) { in ossl_cipher_generic_block_final()
434 *outl = blksz; in ossl_cipher_generic_block_final()
439 if (ctx->bufsz != blksz) { in ossl_cipher_generic_block_final()
448 if (!ctx->hw->cipher(ctx, ctx->buf, ctx->buf, blksz)) { in ossl_cipher_generic_block_final()
453 if (ctx->pad && !ossl_cipher_unpadblock(ctx->buf, &ctx->bufsz, blksz)) { in ossl_cipher_generic_block_final()