summaryrefslogtreecommitdiff
path: root/ubuntu
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2013-09-05 20:57:35 +0300
committerFathi Boudra <fathi.boudra@linaro.org>2013-09-05 20:57:35 +0300
commit7f1cb9618b51894fdcf348bca491ad0633f6f5f9 (patch)
tree414b6f5945c41e5e52e4e4a91c46118a3e312484 /ubuntu
parent688fb597f1770ae40a0d325c725177a566d1caf2 (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-xubuntu/scripts/openssl-bsaes.sh2
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 |