gpg-quorum/gpg-quorum5.sh
2020-04-16 12:53:51 +02:00

49 lines
881 B
Bash
Executable file

#!/usr/bin/env bash
source variables.sh
file=$1
#A,B,C
gpg -ea -r $a -r $b -r $c $debug --output $file.step1 $file
#A,B,D
gpg -ea -r $a -r $b -r $d $debug --output $file.step2 $file.step1
#A,B,E
gpg -ea -r $a -r $b -r $e $debug --output $file.step3 $file.step2
#A,C,D
gpg -ea -r $a -r $c -r $d $debug --output $file.step4 $file.step3
#A,C,E
gpg -ea -r $a -r $c -r $e $debug --output $file.step5 $file.step4
#A,D,E
gpg -ea -r $a -r $d -r $e $debug --output $file.step6 $file.step5
#B,C,D
gpg -ea -r $b -r $c -r $d $debug --output $file.step7 $file.step6
#B,C,E
gpg -ea -r $b -r $c -r $e $debug --output $file.step8 $file.step7
#B,D,E
gpg -ea -r $b -r $d -r $e $debug --output $file.step9 $file.step8
#C,D,E
gpg -ea -r $c -r $d -r $e $debug --output $file.asc $file.step9
rm test.txt.step*
#matrix:
#A,B,C
#A,B,D
#A,B,E
#A,C,D
#A,C,E
#A,D,E
#B,C,D
#B,C,E
#B,D,E
#C,D,E