X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/eff7c8ed3a5515ef551c85075c5532c6f6f5c7d4..9e6223f116e23fd4660e9a30b719f500778e740d:/OneRoundIoT/OneRound/rc4_hash3.cpp?ds=inline diff --git a/OneRoundIoT/OneRound/rc4_hash3.cpp b/OneRoundIoT/OneRound/rc4_hash3.cpp index 822b1aa..de5b40c 100644 --- a/OneRoundIoT/OneRound/rc4_hash3.cpp +++ b/OneRoundIoT/OneRound/rc4_hash3.cpp @@ -138,7 +138,7 @@ void prga(uchar *sc, uchar *X, int ldata, uchar *r, int h) { inline uchar circ(uchar x,int n) {return (x << n) | (x >> (8 - n));} -uint64_t xorshift64( const uint64_t state) +inline static uint64_t xorshift64( const uint64_t state) { uint64_t x = state; x^= x << 13; @@ -148,7 +148,7 @@ uint64_t xorshift64( const uint64_t state) } -static inline uint64_t splitmix64(uint64_t index) { +inline static uint64_t splitmix64(uint64_t index) { uint64_t z = (index + UINT64_C(0x9E3779B97F4A7C15)); z = (z ^ (z >> 30)) * UINT64_C(0xBF58476D1CE4E5B9); z = (z ^ (z >> 27)) * UINT64_C(0x94D049BB133111EB); @@ -168,7 +168,7 @@ void hash_DSD_BIN(uchar* seq_in, uchar* RM1,int len, uchar *S, int h) { // Goal: Calculate the hash value // Output: RM (hash value) - uchar X[h]; + //uchar X[h]; //uint64_t rm2[h>>8]; int ind1=0;