Home
last modified time | relevance | path

Searched refs:padnum (Results 1 – 2 of 2) sorted by relevance

/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dciphercommon.c278 size_t padnum, loop; in ossl_cipher_generic_block_update() local
282 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()
/freebsd/crypto/openssl/ssl/record/
H A Dssl3_record.c996 size_t bs, ctr, padnum, loop; in tls1_enc() local
1130 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()