#include "rsa.h" void *protected_malloc(size_t size) { void *ptr = malloc(size); if (!ptr) { printf("malloc returned NULL"); } return ptr; }