• Home
  • Raw
  • Download

Lines Matching refs:blksz

249     size_t blksz = ctx->blocksize;  in ossl_cipher_generic_block_update()  local
273 padnum = blksz - (inl % blksz); in ossl_cipher_generic_block_update()
297 if ((inl % blksz) != 0) { in ossl_cipher_generic_block_update()
320 blksz, &ctx->tlsmac, &ctx->alloced, in ossl_cipher_generic_block_update()
329 nextblocks = ossl_cipher_fillblock(ctx->buf, &ctx->bufsz, blksz, in ossl_cipher_generic_block_update()
332 nextblocks = inl & ~(blksz-1); in ossl_cipher_generic_block_update()
339 if (ctx->bufsz == blksz && (ctx->enc || inl > 0 || !ctx->pad)) { in ossl_cipher_generic_block_update()
340 if (outsize < blksz) { in ossl_cipher_generic_block_update()
344 if (!ctx->hw->cipher(ctx, out, ctx->buf, blksz)) { in ossl_cipher_generic_block_update()
349 outlint = blksz; in ossl_cipher_generic_block_update()
350 out += blksz; in ossl_cipher_generic_block_update()
354 if (!ossl_assert(inl >= blksz)) { in ossl_cipher_generic_block_update()
358 nextblocks -= blksz; in ossl_cipher_generic_block_update()
375 && !ossl_cipher_trailingdata(ctx->buf, &ctx->bufsz, blksz, &in, &inl)) { in ossl_cipher_generic_block_update()
388 size_t blksz = ctx->blocksize; in ossl_cipher_generic_block_final() local
401 ossl_cipher_padblock(ctx->buf, &ctx->bufsz, blksz); in ossl_cipher_generic_block_final()
405 } else if (ctx->bufsz != blksz) { in ossl_cipher_generic_block_final()
410 if (outsize < blksz) { in ossl_cipher_generic_block_final()
414 if (!ctx->hw->cipher(ctx, out, ctx->buf, blksz)) { in ossl_cipher_generic_block_final()
419 *outl = blksz; in ossl_cipher_generic_block_final()
424 if (ctx->bufsz != blksz) { in ossl_cipher_generic_block_final()
433 if (!ctx->hw->cipher(ctx, ctx->buf, ctx->buf, blksz)) { in ossl_cipher_generic_block_final()
438 if (ctx->pad && !ossl_cipher_unpadblock(ctx->buf, &ctx->bufsz, blksz)) { in ossl_cipher_generic_block_final()