! Copyright (C) 2008 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.
-USING: accessors byte-arrays.hex crypto.aes crypto.aes.utils
-grouping kernel sequences tools.test ;
+USING: accessors byte-arrays.hex crypto.aes crypto.aes.private
+crypto.aes.utils grouping kernel sequences tools.test ;
IN: crypto.aes.tests
#! fips-197 test vectors
[ t ] [
sbox [ dup inv-sbox nth sbox nth = ] all?
-] unit-test
\ No newline at end of file
+] unit-test
[ gb3 ] keep [ gb2 ] keep [ gb1 ] keep gb0 ; inline
: bytes>words ( seq -- seq )
- 4 <sliced-groups> [ <reversed> first4 >ui32 ] V{ } map-as ;
+ 4 <groups> [ <reversed> first4 >ui32 ] V{ } map-as ;
: .t ( seq -- )
reverse