1#include <stddef.h>
2#include <stdio.h>
3#include <stdint.h>
4
5extern "C" {
6
7#include "sshkey.h"
8#include "sshbuf.h"
9
10int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
11{
12	struct sshkey *k = NULL;
13	struct sshbuf *b = sshbuf_from(data, size);
14	int r = sshkey_private_deserialize(b, &k);
15	if (r == 0) sshkey_free(k);
16	sshbuf_free(b);
17	return 0;
18}
19
20} // extern
21
22