Lines Matching refs:aad_len
885 size_t aad_len[AAD_NUM]; member
1028 return parse_bin(value, &cdat->aad[i], &cdat->aad_len[i]); in cipher_test_parse()
1280 size_t aad_len = expected->aad_len[i]; in cipher_test_enc() local
1286 if (data_chunk_size == 0 || (size_t) data_chunk_size > aad_len) in cipher_test_enc()
1287 current_aad_len = aad_len; in cipher_test_enc()
1293 aad_len -= current_aad_len; in cipher_test_enc()
1294 } while (aad_len > 0); in cipher_test_enc()
1299 if (expected->aad_len[i] > 0) { in cipher_test_enc()
1304 if (expected->aad_len[i] > 2) { in cipher_test_enc()
1307 expected->aad_len[i] - 2)) in cipher_test_enc()
1309 donelen += expected->aad_len[i] - 2; in cipher_test_enc()
1311 if (expected->aad_len[i] > 1 in cipher_test_enc()
1325 expected->aad_len[0])) == NULL) in cipher_test_enc()
1329 expected->aad_len[0]); in cipher_test_enc()