Lines Matching refs:buflen
43 * buflen: contains the amount of data already in buf on entry. Updated with the
44 * amount of data in buf at the end. On entry *buflen must always be
51 * *buflen is updated containing the amount of data in buf. *in is updated to
56 size_t ossl_cipher_fillblock(unsigned char *buf, size_t *buflen,
61 size_t bufremain = blocksize - *buflen;
63 assert(*buflen <= blocksize);
68 memcpy(buf + *buflen, *in, bufremain);
71 *buflen += bufremain;
80 int ossl_cipher_trailingdata(unsigned char *buf, size_t *buflen, size_t blocksize,
86 if (*buflen + *inlen > blocksize) {
91 memcpy(buf + *buflen, *in, *inlen);
92 *buflen += *inlen;
99 void ossl_cipher_padblock(unsigned char *buf, size_t *buflen, size_t blocksize)
102 unsigned char pad = (unsigned char)(blocksize - *buflen);
104 for (i = *buflen; i < blocksize; i++)
108 int ossl_cipher_unpadblock(unsigned char *buf, size_t *buflen, size_t blocksize)
111 size_t len = *buflen;
133 *buflen = len;
145 * buflen: The length of the decrypted TLS record data. Updated with the new
159 unsigned char *buf, size_t *buflen,
168 return ssl3_cbc_remove_padding_and_mac(buflen, *buflen, buf, mac,
179 *buflen -= blocksize;
182 ret = tls1_cbc_remove_padding_and_mac(buflen, *buflen, buf, mac,