There's documentation, all right. You have to use 'man 3 md5'. The 3 indicates that you're interested in C function calls instead of shell commands. The docs for MD5() are pretty straightforward:
unsigned char *MD5(const unsigned char *d, unsigned long n, unsigned char *md);
MD2()...