chiark / gitweb /
maint-utils/keysubst: A monstrously unpleasant sed hack.
[tripe] / maint-utils / make-test-keys
CommitLineData
5d85da1c
MW
1#! /bin/sh
2
3set -e
4
5for ty in ec dh; do
6 kr=keyring-$ty
7 rm -f $kr $kr.old $kr.pub $kr.pub.old
8 case $ty in
9 ec) group=nist-p256 ;;
10 dh) group=catacomb-ll-224-2048 ;;
11 esac
12 key -k$kr add -a$ty-param -C$group -eforever tripe-$ty-param
13 for who in alice bob; do
14 key -k$kr add -a$ty -ptripe-$ty-param -t$who -eforever tripe-$ty
15 done
16 key -k$kr extract -f-secret $kr.pub
17done
18rm *.old