Report question

Question: Is there a simple C or C++ function that calculates the sha1 hash of a string?