void sha1 (uint8_t* dest, const uint8_t* src, size_t n) { CSHA1 hash; hash.Write(src, n); hash.Finalize(dest); }