No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test.sh 559B

12345678910111213141516171819
  1. #!/bin/bash
  2. # try different size files to encrypt/decrypt
  3. #dd if=/dev/urandom bs=1M count=100 of=/dev/shm/randombytes
  4. # compile C and rust code this way
  5. #gcc aesgcm.c -lcrypto -O3 -o aesgcm
  6. #cargo build --release
  7. export key=e910dd93e4bbf608957fcb2549e41b7b9d453b2b019bffe5726b1669bca9f40b5fdc0917cd84426df78f8236
  8. test () {
  9. bin=$1
  10. #tee >(md5sum - 1>&2) - < /dev/shm/randombytes | $bin $key enc | $bin $key | md5sum -
  11. $bin $key enc < /dev/shm/randombytes | $bin $key &>/dev/null
  12. }
  13. time test ./aesgcm
  14. time test ./target/release/image_downloader