Lines Matching refs:rec
241 static int load_record(TLS_RL_RECORD *rec, RECORD_DATA *recd, in load_record() argument
256 rec->data = rec->input = OPENSSL_malloc(ptlen + EVP_GCM_TLS_TAG_LEN); in load_record()
258 if (rec->data == NULL) in load_record()
261 rec->length = ptlen; in load_record()
262 memcpy(rec->data, pt, ptlen); in load_record()
279 static int test_record(TLS_RL_RECORD *rec, RECORD_DATA *recd, int enc) in test_record() argument
295 if (!TEST_mem_eq(rec->data, rec->length, refd, refdatalen)) in test_record()
309 TLS_RL_RECORD rec; in test_tls13_encryption() local
322 rec.data = NULL; in test_tls13_encryption()
323 rec.type = SSL3_RT_APPLICATION_DATA; in test_tls13_encryption()
324 rec.rec_version = TLS1_2_VERSION; in test_tls13_encryption()
329 if (!load_record(&rec, &refdata[ctr], &key, iv, ivlen, seqbuf)) { in test_tls13_encryption()
347 if (!TEST_size_t_eq(wrl->funcs->cipher(wrl, &rec, 1, 1, NULL, 0), 1)) { in test_tls13_encryption()
352 if (!TEST_true(test_record(&rec, &refdata[ctr], 1))) { in test_tls13_encryption()
370 if (!TEST_int_eq(rrl->funcs->cipher(rrl, &rec, 1, 0, NULL, 0), 1)) { in test_tls13_encryption()
375 if (!TEST_true(test_record(&rec, &refdata[ctr], 0))) { in test_tls13_encryption()
383 OPENSSL_free(rec.data); in test_tls13_encryption()
385 rec.data = NULL; in test_tls13_encryption()
395 OPENSSL_free(rec.data); in test_tls13_encryption()