Skip to content

Commit

Permalink
Add some multiblock test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcallister committed Mar 28, 2013
1 parent d774cfe commit d4dbe95
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build-and-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,15 @@ i=1

# Read test vectors from a file and test them.
#
# This includes the NIST test vectors [1] as well as some multiblock
# test cases generated by me.
#
# These are stored as octal escapes because POSIX printf(1) lacks
# \x syntax. Never mind that the binaries are for amd64 Linux
# only; the test script must be as portable as possible!
#
# [1] http://csrc.nist.gov/groups/STM/cavp/documents/aes/KAT_AES.zip

cat test-vectors | while read -r key plaintext ciphertext; do
printf "\rTesting %3d of %3d" $i $n

Expand Down
Loading

0 comments on commit d4dbe95

Please sign in to comment.