Lines Matching refs:blocksize
40 size_t blocksize, in ossl_cipher_fillblock() argument
43 size_t blockmask = ~(blocksize - 1); in ossl_cipher_fillblock()
44 size_t bufremain = blocksize - *buflen; in ossl_cipher_fillblock()
46 assert(*buflen <= blocksize); in ossl_cipher_fillblock()
47 assert(blocksize > 0 && (blocksize & (blocksize - 1)) == 0); in ossl_cipher_fillblock()
63 int ossl_cipher_trailingdata(unsigned char *buf, size_t *buflen, size_t blocksize, in ossl_cipher_trailingdata() argument
69 if (*buflen + *inlen > blocksize) { in ossl_cipher_trailingdata()
82 void ossl_cipher_padblock(unsigned char *buf, size_t *buflen, size_t blocksize) in ossl_cipher_padblock() argument
85 unsigned char pad = (unsigned char)(blocksize - *buflen); in ossl_cipher_padblock()
87 for (i = *buflen; i < blocksize; i++) in ossl_cipher_padblock()
91 int ossl_cipher_unpadblock(unsigned char *buf, size_t *buflen, size_t blocksize) in ossl_cipher_unpadblock() argument
96 if (len != blocksize) { in ossl_cipher_unpadblock()
105 pad = buf[blocksize - 1]; in ossl_cipher_unpadblock()
106 if (pad == 0 || pad > blocksize) { in ossl_cipher_unpadblock()
143 size_t blocksize, in ossl_cipher_tlsunpadblock() argument
152 alloced, blocksize, macsize, in ossl_cipher_tlsunpadblock()
161 buf += blocksize; in ossl_cipher_tlsunpadblock()
162 *buflen -= blocksize; in ossl_cipher_tlsunpadblock()
166 alloced, blocksize, macsize, in ossl_cipher_tlsunpadblock()