GO-V.ORG
As seen in

MASH-1

MASH-1 is an encyclopedia record, sourced from en.wikipedia.org, last updated 2024-01-08, source revision https://en.wikipedia.org/w/index.php?oldid=1194389101. For a cryptographic hash function (a mathematical algorithm), a MASH-1 (Modular Arithmetic Secure Hash) is a hash function based on modular arithmetic. H_0 = IV H_i = f(B_i, H_{i-1 ) = ((((B_i \oplus H_{i-1 ) \vee E)^e \bmod N) \bmod 2^L) \oplus H_{i-1 ; \quad i=1,\cdots,q Where E=15 \cdot 2^{L-4 and e=2 . \vee denotes the bitwise OR and \oplus the bitwise XOR. From H_q are now calculated more data blocks D_{q+1 ,\cdots,D_{q+8 by linear operations (where \. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

For a cryptographic hash function (a mathematical algorithm), a MASH-1 (Modular Arithmetic Secure Hash) is a hash function based on modular arithmetic. H_0 = IV H_i = f(B_i, H_{i-1}) = ((((B_i \oplus H_{i-1}) \vee E)^e \bmod N) \bmod 2^L) \oplus H_{i-1}; \quad i=1,\cdots,q Where E=15 \cdot 2^{L-4} and e=2 . \vee denotes the bitwise OR and \oplus the bitwise XOR. From H_q are now calculated more data blocks D_{q+1},\cdots,D_{q+8} by linear operations (where \| denotes concatenation): H_q = Y_1 \,\|\, Y_3 \,\|\, Y_0 \,\|\, Y_2; \quad |Y_i| = L/4 Y_i = Y_{i-1} \oplus Y_{i-4}; \quad i=4,\cdots,15 D_{q+i} = Y_{2i-2} \,\|\, Y_{2i-1}; \quad i=1,\cdots,8 These data blocks are now enlarged to B_{q+1},\cdots,B_{q+8} like above, and with these the compression process continues with eight more steps: H_i = f(B_i, H_{i-1}); \quad i=q+1,\cdots,q+8 Finally the hash value is H_{q+8} \bmod p , where p is a prime number with 7\cdot 2^{L/2-3} . There is a newer version of the algorithm called MASH-2 with a different exponent. The original e=2 is replaced by e=2^8+1 . This is the only difference between these versions.

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"MASH-1". 1704738695. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1194389101

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·