Lines Matching refs:bufsz
194 ctx->bufsz = 0; in cipher_generic_init_internal()
337 if (ctx->bufsz != 0) in ossl_cipher_generic_block_update()
338 nextblocks = ossl_cipher_fillblock(ctx->buf, &ctx->bufsz, blksz, in ossl_cipher_generic_block_update()
348 if (ctx->bufsz == blksz && (ctx->enc || inl > 0 || !ctx->pad)) { in ossl_cipher_generic_block_update()
357 ctx->bufsz = 0; in ossl_cipher_generic_block_update()
384 && !ossl_cipher_trailingdata(ctx->buf, &ctx->bufsz, blksz, &in, &inl)) { in ossl_cipher_generic_block_update()
415 ossl_cipher_padblock(ctx->buf, &ctx->bufsz, blksz); in ossl_cipher_generic_block_final()
416 } else if (ctx->bufsz == 0) { in ossl_cipher_generic_block_final()
419 } else if (ctx->bufsz != blksz) { in ossl_cipher_generic_block_final()
432 ctx->bufsz = 0; in ossl_cipher_generic_block_final()
438 if (ctx->bufsz != blksz) { in ossl_cipher_generic_block_final()
439 if (ctx->bufsz == 0 && !ctx->pad) { in ossl_cipher_generic_block_final()
452 if (ctx->pad && !ossl_cipher_unpadblock(ctx->buf, &ctx->bufsz, blksz)) { in ossl_cipher_generic_block_final()
457 if (outsize < ctx->bufsz) { in ossl_cipher_generic_block_final()
461 memcpy(out, ctx->buf, ctx->bufsz); in ossl_cipher_generic_block_final()
462 *outl = ctx->bufsz; in ossl_cipher_generic_block_final()
463 ctx->bufsz = 0; in ossl_cipher_generic_block_final()