Lines Matching refs:buflen
39 size_t ossl_cipher_fillblock(unsigned char *buf, size_t *buflen, in ossl_cipher_fillblock() argument
44 size_t bufremain = blocksize - *buflen; in ossl_cipher_fillblock()
46 assert(*buflen <= blocksize); in ossl_cipher_fillblock()
51 memcpy(buf + *buflen, *in, bufremain); in ossl_cipher_fillblock()
54 *buflen += bufremain; 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()
74 memcpy(buf + *buflen, *in, *inlen); in ossl_cipher_trailingdata()
75 *buflen += *inlen; 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
94 size_t len = *buflen; in ossl_cipher_unpadblock()
116 *buflen = len; in ossl_cipher_unpadblock()
142 unsigned char *buf, size_t *buflen, in ossl_cipher_tlsunpadblock() argument
151 return ssl3_cbc_remove_padding_and_mac(buflen, *buflen, buf, mac, in ossl_cipher_tlsunpadblock()
162 *buflen -= blocksize; in ossl_cipher_tlsunpadblock()
165 ret = tls1_cbc_remove_padding_and_mac(buflen, *buflen, buf, mac, in ossl_cipher_tlsunpadblock()