I2P: End-to-End encrypted and anonymous Internet https://i2pd.website/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
383 B

#include <stdint.h>
#include <stddef.h>
#include <I2NPProtocol.h>
#include <RouterContext.h>
#include "fuzzing.h"
bool
fuzzing_testinput(const uint8_t * data, size_t size)
{
uint8_t clearText[i2p::ECIES_BUILD_REQUEST_RECORD_CLEAR_TEXT_SIZE];
if(size < i2p::TUNNEL_BUILD_RECORD_SIZE)
return true;
i2p::context.DecryptTunnelBuildRecord(data, clearText);
return true;
}