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

make-vectors.sh (465B)


      1 #!/bin/bash
      2 
      3 set -eu
      4 
      5 
      6 FELICS_CIPHERS_DIR=$1
      7 LILLIPUT_VERSION=$2
      8 
      9 
     10 output-filename ()
     11 {
     12     local mode=$1
     13     local keylen=$2
     14     local lilliput_dir=Lilliput-${mode^^}-${keylen}_v${LILLIPUT_VERSION}
     15 
     16     echo "${FELICS_CIPHERS_DIR}"/${lilliput_dir}/source/test_vectors.c
     17 }
     18 
     19 
     20 for mode in i ii
     21 do
     22     for keylen in 128 192 256
     23     do
     24         output=$(output-filename ${mode} ${keylen})
     25         make vector mode=${mode} keylen=${keylen} output=${output}
     26     done
     27 done