MCPcopy
hub / github.com/IvanMathy/Boop / rmd160_f

Function rmd160_f

Boop/Boop/scripts/lib/hashes.js:1709–1716  ·  view source on GitHub ↗
(j, x, y, z)

Source from the content-addressed store, hash-verified

1707 // specific algorithm methods
1708
1709 function rmd160_f(j, x, y, z) {
1710 return (0 <= j && j <= 15) ? (x ^ y ^ z) :
1711 (16 <= j && j <= 31) ? (x & y) | (~x & z) :
1712 (32 <= j && j <= 47) ? (x | ~y) ^ z :
1713 (48 <= j && j <= 63) ? (x & z) | (y & ~z) :
1714 (64 <= j && j <= 79) ? x ^ (y | ~z) :
1715 'rmd160_f: j out of range';
1716 }
1717
1718 function rmd160_K1(j) {
1719 return (0 <= j && j <= 15) ? 0x00000000 :

Callers 1

binlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected