From 08fc030c99d627269ef3f9e6ace1f621c5e19726 Mon Sep 17 00:00:00 2001 From: Mike Goslin Date: Mon, 13 Nov 2000 23:34:03 +0000 Subject: [PATCH] *** empty log message *** --- panda/src/downloader/crypto_utils.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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]; }