Searched refs:padnum (Results 1 – 2 of 2) sorted by relevance
278 size_t padnum, loop; in ossl_cipher_generic_block_update() local282 padnum = blksz - (inl % blksz); in ossl_cipher_generic_block_update()284 if (outsize < inl + padnum) { in ossl_cipher_generic_block_update()289 if (padnum > MAX_PADDING) { in ossl_cipher_generic_block_update()293 padval = (unsigned char)(padnum - 1); in ossl_cipher_generic_block_update()295 if (padnum > 1) in ossl_cipher_generic_block_update()296 memset(out + inl, 0, padnum - 1); in ossl_cipher_generic_block_update()297 *(out + inl + padnum - 1) = padval; in ossl_cipher_generic_block_update()300 for (loop = inl; loop < inl + padnum; loop++) in ossl_cipher_generic_block_update()303 inl += padnum; in ossl_cipher_generic_block_update()
996 size_t bs, ctr, padnum, loop; in tls1_enc() local1130 padnum = bs - (reclen[ctr] % bs); in tls1_enc()1134 if (padnum > MAX_PADDING) { in tls1_enc()1139 padval = (unsigned char)(padnum - 1); in tls1_enc()1140 for (loop = reclen[ctr]; loop < reclen[ctr] + padnum; loop++) in tls1_enc()1142 reclen[ctr] += padnum; in tls1_enc()1143 recs[ctr].length += padnum; in tls1_enc()