| 11 | #include <vector> |
| 12 | |
| 13 | FUZZ_TARGET(crypto_poly1305) |
| 14 | { |
| 15 | FuzzedDataProvider fuzzed_data_provider{buffer.data(), buffer.size()}; |
| 16 | |
| 17 | const std::vector<uint8_t> key = ConsumeFixedLengthByteVector(fuzzed_data_provider, POLY1305_KEYLEN); |
| 18 | const std::vector<uint8_t> in = ConsumeRandomLengthByteVector(fuzzed_data_provider); |
| 19 | |
| 20 | std::vector<uint8_t> tag_out(POLY1305_TAGLEN); |
| 21 | poly1305_auth(tag_out.data(), in.data(), in.size(), key.data()); |
| 22 | } |
nothing calls this directly
no test coverage detected