Skip to content

Commit

Permalink
cyclic bit rotation implemented
Browse files Browse the repository at this point in the history
Cyclic byte rotation changed to cyclic bit rotation.
  • Loading branch information
eshikafe committed Aug 1, 2015
1 parent 88024f4 commit b12140a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/milenage.erl
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ out5(OPc, K, TEMP) ->
rot(X, 0) ->
X;
rot(B, R) ->
Len = R div 8,
<<X:Len/binary, Y/binary>> = B,
<<Y/binary, X/binary>>.
<<X:R/bits, Y/bits>> = B,
<<Y/bits, X:R/bits>>.

0 comments on commit b12140a

Please sign in to comment.