Rename SHA_DIGEST_LENGTH to TR_SHA1_DIGEST_LENGTH
Move base64 and sha/hex utility functions to crypto-utils.h