Lines Matching refs:buf
39 size_t ossl_cipher_fillblock(unsigned char *buf, size_t *buflen, in ossl_cipher_fillblock() argument
51 memcpy(buf + *buflen, *in, bufremain); in ossl_cipher_fillblock()
63 int ossl_cipher_trailingdata(unsigned char *buf, size_t *buflen, size_t blocksize, in ossl_cipher_trailingdata() argument
74 memcpy(buf + *buflen, *in, *inlen); in ossl_cipher_trailingdata()
82 void ossl_cipher_padblock(unsigned char *buf, size_t *buflen, size_t blocksize) in ossl_cipher_padblock() argument
88 buf[i] = pad; in ossl_cipher_padblock()
91 int ossl_cipher_unpadblock(unsigned char *buf, size_t *buflen, size_t blocksize) in ossl_cipher_unpadblock() argument
105 pad = buf[blocksize - 1]; in ossl_cipher_unpadblock()
111 if (buf[--len] != pad) { 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()
161 buf += blocksize; in ossl_cipher_tlsunpadblock()
165 ret = tls1_cbc_remove_padding_and_mac(buflen, *buflen, buf, mac, in ossl_cipher_tlsunpadblock()