Lines Matching refs:reclen

26 static int ssl3_cbc_copy_mac(size_t *reclen,
53 int ssl3_cbc_remove_padding_and_mac(size_t *reclen, in ssl3_cbc_remove_padding_and_mac() argument
68 if (overhead > *reclen) in ssl3_cbc_remove_padding_and_mac()
71 padding_length = recdata[*reclen - 1]; in ssl3_cbc_remove_padding_and_mac()
72 good = constant_time_ge_s(*reclen, padding_length + overhead); in ssl3_cbc_remove_padding_and_mac()
75 *reclen -= good & (padding_length + 1); in ssl3_cbc_remove_padding_and_mac()
77 return ssl3_cbc_copy_mac(reclen, origreclen, recdata, mac, alloced, in ssl3_cbc_remove_padding_and_mac()
98 int tls1_cbc_remove_padding_and_mac(size_t *reclen, in tls1_cbc_remove_padding_and_mac() argument
116 if (overhead > *reclen) in tls1_cbc_remove_padding_and_mac()
121 padding_length = recdata[*reclen - 1]; in tls1_cbc_remove_padding_and_mac()
125 *reclen -= padding_length + 1 + mac_size; in tls1_cbc_remove_padding_and_mac()
129 good = constant_time_ge_s(*reclen, overhead + padding_length); in tls1_cbc_remove_padding_and_mac()
140 if (to_check > *reclen) in tls1_cbc_remove_padding_and_mac()
141 to_check = *reclen; in tls1_cbc_remove_padding_and_mac()
145 unsigned char b = recdata[*reclen - 1 - i]; in tls1_cbc_remove_padding_and_mac()
158 *reclen -= good & (padding_length + 1); in tls1_cbc_remove_padding_and_mac()
161 return ssl3_cbc_copy_mac(reclen, origreclen, recdata, mac, alloced, in tls1_cbc_remove_padding_and_mac()
182 static int ssl3_cbc_copy_mac(size_t *reclen, in ssl3_cbc_copy_mac() argument
205 size_t mac_end = *reclen; in ssl3_cbc_copy_mac()
228 *reclen -= mac_size; in ssl3_cbc_copy_mac()
233 *mac = &recdata[*reclen]; in ssl3_cbc_copy_mac()