Lines Matching full:k1

52 	struct sshkey *k1;  in public_fuzz()  local
66 &k1), 0); in public_fuzz()
67 sshkey_free(k1); in public_fuzz()
71 if (sshkey_from_blob(fuzz_ptr(fuzz), fuzz_len(fuzz), &k1) == 0) in public_fuzz()
72 sshkey_free(k1); in public_fuzz()
113 struct sshkey *k1; in sshkey_fuzz_tests() local
123 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0); in sshkey_fuzz_tests()
124 sshkey_free(k1); in sshkey_fuzz_tests()
131 if (sshkey_parse_private_fileblob(fuzzed, "", &k1, NULL) == 0) in sshkey_fuzz_tests()
132 sshkey_free(k1); in sshkey_fuzz_tests()
145 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0); in sshkey_fuzz_tests()
146 sshkey_free(k1); in sshkey_fuzz_tests()
153 if (sshkey_parse_private_fileblob(fuzzed, "", &k1, NULL) == 0) in sshkey_fuzz_tests()
154 sshkey_free(k1); in sshkey_fuzz_tests()
168 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0); in sshkey_fuzz_tests()
169 sshkey_free(k1); in sshkey_fuzz_tests()
176 if (sshkey_parse_private_fileblob(fuzzed, "", &k1, NULL) == 0) in sshkey_fuzz_tests()
177 sshkey_free(k1); in sshkey_fuzz_tests()
190 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0); in sshkey_fuzz_tests()
191 sshkey_free(k1); in sshkey_fuzz_tests()
198 if (sshkey_parse_private_fileblob(fuzzed, "", &k1, NULL) == 0) in sshkey_fuzz_tests()
199 sshkey_free(k1); in sshkey_fuzz_tests()
214 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0); in sshkey_fuzz_tests()
215 sshkey_free(k1); in sshkey_fuzz_tests()
222 if (sshkey_parse_private_fileblob(fuzzed, "", &k1, NULL) == 0) in sshkey_fuzz_tests()
223 sshkey_free(k1); in sshkey_fuzz_tests()
236 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0); in sshkey_fuzz_tests()
237 sshkey_free(k1); in sshkey_fuzz_tests()
244 if (sshkey_parse_private_fileblob(fuzzed, "", &k1, NULL) == 0) in sshkey_fuzz_tests()
245 sshkey_free(k1); in sshkey_fuzz_tests()
260 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0); in sshkey_fuzz_tests()
261 sshkey_free(k1); in sshkey_fuzz_tests()
268 if (sshkey_parse_private_fileblob(fuzzed, "", &k1, NULL) == 0) in sshkey_fuzz_tests()
269 sshkey_free(k1); in sshkey_fuzz_tests()
281 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0); in sshkey_fuzz_tests()
283 public_fuzz(k1); in sshkey_fuzz_tests()
284 sshkey_free(k1); in sshkey_fuzz_tests()
288 ASSERT_INT_EQ(sshkey_load_cert(test_data_file("rsa_1"), &k1), 0); in sshkey_fuzz_tests()
289 public_fuzz(k1); in sshkey_fuzz_tests()
290 sshkey_free(k1); in sshkey_fuzz_tests()
296 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0); in sshkey_fuzz_tests()
298 public_fuzz(k1); in sshkey_fuzz_tests()
299 sshkey_free(k1); in sshkey_fuzz_tests()
303 ASSERT_INT_EQ(sshkey_load_cert(test_data_file("dsa_1"), &k1), 0); in sshkey_fuzz_tests()
304 public_fuzz(k1); in sshkey_fuzz_tests()
305 sshkey_free(k1); in sshkey_fuzz_tests()
312 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0); in sshkey_fuzz_tests()
314 public_fuzz(k1); in sshkey_fuzz_tests()
315 sshkey_free(k1); in sshkey_fuzz_tests()
319 ASSERT_INT_EQ(sshkey_load_cert(test_data_file("ecdsa_1"), &k1), 0); in sshkey_fuzz_tests()
320 public_fuzz(k1); in sshkey_fuzz_tests()
321 sshkey_free(k1); in sshkey_fuzz_tests()
328 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0); in sshkey_fuzz_tests()
330 public_fuzz(k1); in sshkey_fuzz_tests()
331 sshkey_free(k1); in sshkey_fuzz_tests()
335 ASSERT_INT_EQ(sshkey_load_cert(test_data_file("ed25519_1"), &k1), 0); in sshkey_fuzz_tests()
336 public_fuzz(k1); in sshkey_fuzz_tests()
337 sshkey_free(k1); in sshkey_fuzz_tests()
343 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0); in sshkey_fuzz_tests()
345 sig_fuzz(k1, "ssh-rsa"); in sshkey_fuzz_tests()
346 sshkey_free(k1); in sshkey_fuzz_tests()
351 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0); in sshkey_fuzz_tests()
353 sig_fuzz(k1, "rsa-sha2-256"); in sshkey_fuzz_tests()
354 sshkey_free(k1); in sshkey_fuzz_tests()
359 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0); in sshkey_fuzz_tests()
361 sig_fuzz(k1, "rsa-sha2-512"); in sshkey_fuzz_tests()
362 sshkey_free(k1); in sshkey_fuzz_tests()
368 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0); in sshkey_fuzz_tests()
370 sig_fuzz(k1, NULL); in sshkey_fuzz_tests()
371 sshkey_free(k1); in sshkey_fuzz_tests()
378 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0); in sshkey_fuzz_tests()
380 sig_fuzz(k1, NULL); in sshkey_fuzz_tests()
381 sshkey_free(k1); in sshkey_fuzz_tests()
388 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0); in sshkey_fuzz_tests()
390 sig_fuzz(k1, NULL); in sshkey_fuzz_tests()
391 sshkey_free(k1); in sshkey_fuzz_tests()