(bytes)
| 18 | const rightRotate = (value, shift) => ((value >>> shift) | (value << (32 - shift))) >>> 0 |
| 19 | |
| 20 | const bytesToHex = (bytes) => |
| 21 | Array.from(bytes) |
| 22 | .map((byte) => byte.toString(16).padStart(2, '0')) |
| 23 | .join('') |
| 24 | |
| 25 | const sha256Hex = (bytes) => { |
| 26 | const paddedLength = Math.ceil((bytes.length + 9) / 64) * 64 |