lilliput-ae-reference-implementation

Implementations of Lilliput-AE submitted to the NIST LWC standardization process
git clone https://git.kevinlegouguec.net/lilliput-ae-reference-implementation
Log | Files | Refs | README

package-vhdl.sh (574B)


      1 #!/bin/bash
      2 
      3 set -eu
      4 
      5 DEST_DIR=$1
      6 NIST_DIR=$(dirname $0)
      7 ROOT=${NIST_DIR}/..
      8 
      9 VERSION=$(${NIST_DIR}/version.sh)
     10 ADD_VHDL=${ROOT}/src/add_vhdltbc
     11 
     12 
     13 add-variant ()
     14 {
     15     local mode=$1
     16     local keylen=$2
     17 
     18     local variant_dir=${DEST_DIR}/crypto_aead/lilliputae${mode}${keylen}v${VERSION}
     19 
     20     local src=${ADD_VHDL}
     21     local dest=${variant_dir}/add_vhdltbc
     22 
     23     mkdir ${dest}
     24     cp -r ${src}/*.vhd ${src}/${mode}/*.vhd ${src}/${mode}/${mode}-${keylen}/* ${dest}
     25 }
     26 
     27 for mode in i ii
     28 do
     29     for keylen in 128 192 256
     30     do
     31         add-variant ${mode} ${keylen}
     32     done
     33 done