Lines Matching refs:length
125 memmove(rec->data, rec->input, rec->length); in tls13_cipher()
149 if (rec->length < rl->taglen + 1) in tls13_cipher()
151 rec->length -= rl->taglen; in tls13_cipher()
174 || !WPACKET_put_bytes_u16(&wpkt, rec->length + rl->taglen) in tls13_cipher()
189 || !EVP_MAC_update(mac_ctx, rec->input, rec->length) in tls13_cipher()
196 memcpy(rec->data + rec->length, tag, rl->taglen); in tls13_cipher()
197 rec->length += rl->taglen; in tls13_cipher()
198 } else if (CRYPTO_memcmp(tag, rec->data + rec->length, in tls13_cipher()
218 rec->data + rec->length) <= 0)) { in tls13_cipher()
229 (unsigned int)rec->length) <= 0) in tls13_cipher()
233 (unsigned int)rec->length) <= 0 in tls13_cipher()
235 || (size_t)(lenu + lenf) != rec->length) { in tls13_cipher()
241 rec->data + rec->length) <= 0) { in tls13_cipher()
245 rec->length += rl->taglen; in tls13_cipher()
267 if (rec->length > SSL3_RT_MAX_TLS13_ENCRYPTED_LENGTH) { in tls13_validate_record_header()
281 if (rec->length == 0 in tls13_post_process_record()
289 for (end = rec->length - 1; end > 0 && rec->data[end] == 0; end--) in tls13_post_process_record()
292 rec->length = end; in tls13_post_process_record()
296 if (rec->length > SSL3_RT_MAX_PLAIN_LENGTH) { in tls13_post_process_record()