diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2013-09-05 20:57:35 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2013-09-05 20:57:35 +0300 |
commit | 7f1cb9618b51894fdcf348bca491ad0633f6f5f9 (patch) | |
tree | 414b6f5945c41e5e52e4e4a91c46118a3e312484 /ubuntu | |
parent | 688fb597f1770ae40a0d325c725177a566d1caf2 (diff) |
openssl-bsaes: Use input blocks of varying sizes
For CBC, this only tests the generic padding code of OpenSSL.
However, XTS has its own ciphertext stealing code for dealing
with non-integral block sized inputs.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'ubuntu')
-rwxr-xr-x | ubuntu/scripts/openssl-bsaes.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ubuntu/scripts/openssl-bsaes.sh b/ubuntu/scripts/openssl-bsaes.sh index b01224c..e6bd189 100755 --- a/ubuntu/scripts/openssl-bsaes.sh +++ b/ubuntu/scripts/openssl-bsaes.sh @@ -33,7 +33,7 @@ export ARMCAP for i in $(seq 100) do - OUT=$(dd if=/dev/urandom bs=16k count=1 | + OUT=$(dd if=/dev/urandom bs=65 count=$i | tee >(md5sum >$TMP) | openssl enc -$ALG -pass env:KEY | ${ARMCAP:-} openssl enc -d -$ALG -pass env:KEY | |