#include #include #include #include int main(int argc, char **argv) { MD5_CTX ctx; unsigned char *data = malloc(10); char ret[33]; strlcpy(data, "123456789", 10); MD5Init(&ctx); MD5Data(data, sizeof data, ret); printf("%s\n", ret); }