mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-03-20 11:11:08 +01:00
Remove the drbg module and entropy functions from the sample programs as these are now handled by their PSA equivalents Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
22 lines
364 B
C
22 lines
364 B
C
#include <stdint.h>
|
|
#include "mbedtls/pkcs7.h"
|
|
#include "fuzz_common.h"
|
|
|
|
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)
|
|
{
|
|
#ifdef MBEDTLS_PKCS7_C
|
|
mbedtls_pkcs7 pkcs7;
|
|
|
|
mbedtls_pkcs7_init(&pkcs7);
|
|
|
|
mbedtls_pkcs7_parse_der(&pkcs7, Data, Size);
|
|
|
|
mbedtls_pkcs7_free(&pkcs7);
|
|
#else
|
|
(void) Data;
|
|
(void) Size;
|
|
#endif
|
|
|
|
return 0;
|
|
}
|