Lines Matching refs:bufsz
195 ctx->bufsz = 0; in cipher_generic_init_internal()
338 if (ctx->bufsz != 0) in ossl_cipher_generic_block_update()
339 nextblocks = ossl_cipher_fillblock(ctx->buf, &ctx->bufsz, blksz, in ossl_cipher_generic_block_update()
349 if (ctx->bufsz == blksz && (ctx->enc || inl > 0 || !ctx->pad)) { in ossl_cipher_generic_block_update()
358 ctx->bufsz = 0; in ossl_cipher_generic_block_update()
385 && !ossl_cipher_trailingdata(ctx->buf, &ctx->bufsz, blksz, &in, &inl)) { in ossl_cipher_generic_block_update()
416 ossl_cipher_padblock(ctx->buf, &ctx->bufsz, blksz); in ossl_cipher_generic_block_final()
417 } else if (ctx->bufsz == 0) { in ossl_cipher_generic_block_final()
420 } else if (ctx->bufsz != blksz) { in ossl_cipher_generic_block_final()
433 ctx->bufsz = 0; in ossl_cipher_generic_block_final()
439 if (ctx->bufsz != blksz) { in ossl_cipher_generic_block_final()
440 if (ctx->bufsz == 0 && !ctx->pad) { in ossl_cipher_generic_block_final()
453 if (ctx->pad && !ossl_cipher_unpadblock(ctx->buf, &ctx->bufsz, blksz)) { in ossl_cipher_generic_block_final()
458 if (outsize < ctx->bufsz) { in ossl_cipher_generic_block_final()
462 memcpy(out, ctx->buf, ctx->bufsz); in ossl_cipher_generic_block_final()
463 *outl = ctx->bufsz; in ossl_cipher_generic_block_final()
464 ctx->bufsz = 0; in ossl_cipher_generic_block_final()