crypt: fix the prototype of md5_sum, sha256_sum and sha512_sum