Perhaps wrap the C code in a C++ class of your own.
Sooner or later, you'll want to do this yourself, so consider this an opportunity to learn.

It's not like MD5 has a complicated interface or anything.