Method: JOSE::JWA::SHA3#rol
- Defined in:
- lib/jose/jwa/sha3.rb
#rol(x, b) ⇒ Object
Rotate a word x by b places to the left.
33 34 35 |
# File 'lib/jose/jwa/sha3.rb', line 33 def rol(x, b) return ((x << b) | (x >> (64 - b))) & (2**64-1) end |