diff --git a/panda/src/downloader/crypto_utils.h b/panda/src/downloader/crypto_utils.h index 7d540c307d..5aaa8ae717 100644 --- a/panda/src/downloader/crypto_utils.h +++ b/panda/src/downloader/crypto_utils.h @@ -12,7 +12,16 @@ class EXPCL_PANDAEXPRESS HashVal { public: - uint get_value(int val) const { + INLINE HashVal(void) { + hv[0] = hv[1] = hv[2] = hv[3] = 0; + } + INLINE bool operator == (const HashVal &other) const { + return (hv[0] == other.hv[0] && + hv[1] == other.hv[1] && + hv[2] == other.hv[2] && + hv[3] == other.hv[3]); + } + INLINE uint get_value(int val) const { if (val < 4 && val >= 0) return hv[val]; }