hctr2 0.2.0

An implementation of the length-preserving encryption HCTR2 algorithm.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash

set -xeuo pipefail

base="https://raw.githubusercontent.com/google/hctr2/main/test_vectors/ours"
download() {
	name="${1}_AES${2}.json"
	curl "${base}/${1}/${name}" >"${name}"
}

sizes=(128 192 256)
algs=(XCTR HCTR2)
for alg in "${algs[@]}"; do
	for size in "${sizes[@]}"; do
		download "${alg}" "${size}"
	done
done