cryptol/tests/regression/check21.cry

8 lines
212 B
Plaintext
Raw Normal View History

2014-04-18 02:34:25 +04:00
irred : [8]
irred = 0x1b
// endianness difference from Cryptol-1 test
xtimes a = (if a ! (width a - 1) then a' ^ irred else a')
where a' = a << 1
check21 = [ xtimes y | y <- [ 1, 12, 192 ] ] == [ 2, 24, 155 ]