Browse Source

*** empty log message ***

Mike Goslin 25 years ago
parent
commit
08fc030c99
1 changed files with 10 additions and 1 deletions
  1. 10 1
      panda/src/downloader/crypto_utils.h

+ 10 - 1
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];
   }