In many sitautions, you just want to compute a hash for one chunk
of data. This patch adds convenient functions for that purpose.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 1510 Build 1510: arc lint + arc unit
Event Timeline
Comment Actions
That looks fine, but maybe having one of the unittests using the new API would be nice as well?
Comment Actions
- Changed the type from std::vector<uint8_t> to SmallVector<uint8_t, 16 or 20>.
- Added tests.
Comment Actions
I was wondering if instead of returning SmallVector<uint8_t, 20> we could use std::array<uint8_t, 20>?
Comment Actions
I chose that because of my familiarity with SmallVector compared to std::array. But I agree that probably std::array is better.