Lines Matching refs:vec

77 	int ret = parser_read_uint32_bit_val(key, src, &vec.pt);  in parser_read_gcm_pt_len()
82 if (info.algo == FIPS_TEST_ALGO_AES_GMAC && vec.pt.len == 0) { in parser_read_gcm_pt_len()
101 vec.pt.len = vec.aead.aad.len; in parse_gcm_aad_str()
102 return parse_uint8_known_len_hex_str(key, src, &vec.pt); in parse_gcm_aad_str()
104 return parse_uint8_known_len_hex_str(key, src, &vec.aead.aad); in parse_gcm_aad_str()
111 if (info.interim_info.gcm_data.gen_iv && vec.iv.len) { in parse_gcm_pt_ct_str()
114 if (!vec.iv.val) { in parse_gcm_pt_ct_str()
115 vec.iv.val = rte_malloc(0, vec.iv.len, 0); in parse_gcm_pt_ct_str()
116 if (!vec.iv.val) in parse_gcm_pt_ct_str()
120 for (i = 0; i < vec.iv.len; i++) { in parse_gcm_pt_ct_str()
122 vec.iv.val[i] = (uint8_t)random; in parse_gcm_pt_ct_str()
134 {KEY_STR, parse_uint8_known_len_hex_str, &vec.aead.key},
135 {IV_STR, parse_uint8_known_len_hex_str, &vec.iv},
136 {CT_STR, parse_gcm_pt_ct_str, &vec.ct},
137 {AAD_STR, parse_gcm_aad_str, &vec.aead.aad},
139 &vec.aead.digest},
144 {KEYLEN_STR, parser_read_uint32_bit_val, &vec.aead.key},
145 {IVLEN_STR, parser_read_uint32_bit_val, &vec.iv},
146 {PTLEN_STR, parser_read_gcm_pt_len, &vec.pt},
147 {PTLEN_STR, parser_read_uint32_bit_val, &vec.ct},
151 {AADLEN_STR, parser_read_uint32_bit_val, &vec.aead.aad},
153 &vec.aead.digest},
158 {KEY_STR, parse_uint8_known_len_hex_str, &vec.aead.key},
159 {IV_STR, parse_uint8_known_len_hex_str, &vec.iv},
160 {PT_STR, parse_gcm_pt_ct_str, &vec.pt},
161 {AAD_STR, parse_gcm_aad_str, &vec.aead.aad},
167 {KEY_JSON_STR, parse_uint8_known_len_hex_str, &vec.aead.key},
168 {IV_JSON_STR, parse_uint8_known_len_hex_str, &vec.iv},
169 {CT_JSON_STR, parse_gcm_pt_ct_str, &vec.ct},
170 {AAD_JSON_STR, parse_gcm_aad_str, &vec.aead.aad},
172 &vec.aead.digest},
177 {KEYLEN_JSON_STR, parser_read_uint32_bit_val, &vec.aead.key},
178 {IVLEN_JSON_STR, parser_read_uint32_bit_val, &vec.iv},
179 {PAYLOADLEN_JSON_STR, parser_read_gcm_pt_len, &vec.pt},
180 {PAYLOADLEN_JSON_STR, parser_read_uint32_bit_val, &vec.ct},
184 {AADLEN_JSON_STR, parser_read_uint32_bit_val, &vec.aead.aad},
186 &vec.aead.digest},
191 {KEY_JSON_STR, parse_uint8_known_len_hex_str, &vec.aead.key},
192 {IV_JSON_STR, parse_uint8_known_len_hex_str, &vec.iv},
193 {PT_JSON_STR, parse_gcm_pt_ct_str, &vec.pt},
194 {AAD_JSON_STR, parse_gcm_aad_str, &vec.aead.aad},
210 tmp_val.val = vec.iv.val; in parse_test_gcm_writeback()
211 tmp_val.len = vec.iv.len; in parse_test_gcm_writeback()
214 rte_free(vec.iv.val); in parse_test_gcm_writeback()
215 vec.iv.val = NULL; in parse_test_gcm_writeback()
222 tmp_val.len = vec.pt.len; in parse_test_gcm_writeback()
230 tmp_val.val = val->val + vec.pt.len; in parse_test_gcm_writeback()
231 tmp_val.len = val->len - vec.pt.len; in parse_test_gcm_writeback()
235 if (vec.status == RTE_CRYPTO_OP_STATUS_SUCCESS) { in parse_test_gcm_writeback()
239 tmp_val.len = vec.pt.len; in parse_test_gcm_writeback()
258 char *line = info.vec[i]; in parse_test_gcm_init()
297 tmp_val.len = vec.pt.len; in parse_test_gcm_json_writeback()
307 tmp_val.val = vec.iv.val; in parse_test_gcm_json_writeback()
308 tmp_val.len = vec.iv.len; in parse_test_gcm_json_writeback()
314 rte_free(vec.iv.val); in parse_test_gcm_json_writeback()
315 vec.iv.val = NULL; in parse_test_gcm_json_writeback()
318 tmp_val.val = val->val + vec.pt.len; in parse_test_gcm_json_writeback()
319 tmp_val.len = val->len - vec.pt.len; in parse_test_gcm_json_writeback()
325 if (vec.status == RTE_CRYPTO_OP_STATUS_SUCCESS) { in parse_test_gcm_json_writeback()
328 tmp_val.len = vec.pt.len; in parse_test_gcm_json_writeback()