Fix .gitignore

This commit is contained in:
Zhi Guan
2018-10-20 14:40:21 +08:00
parent 5ff8ef6136
commit ce1763c9ea
5 changed files with 5416 additions and 5360 deletions

23
demos/cpk/Makefile Normal file
View File

@@ -0,0 +1,23 @@
all:
gcc cpk-setup.c -lcrypto -o cpk-setup
gcc cpk-keygen.c -lcrypto -o cpk-keygen
gcc cpk-sign.c -lcrypto -o cpk-sign
gcc cpk-verify.c -lcrypto -o cpk-verify
test:
./cpk-setup sign.mpk sign.msk
./cpk-keygen sign.msk alice alice.ssk
./cpk-sign cpk-setup alice alice.ssk cpk-setup-signed
./cpk-verify cpk-setup-signed sign.mpk
clean:
rm -fr cpk-setup
rm -fr cpk-keygen
rm -fr cpk-sign
rm -fr cpk-verify
rm -fr *.mpk
rm -fr *.msk
rm -fr *.sk
rm -fr *.ssk
rm -fr cpk-setup-signed

31
demos/sm9/Makefile Normal file
View File

@@ -0,0 +1,31 @@
all:
gcc sm9-setup.c ../../libcrypto.a -o sm9-setup
gcc sm9-keygen.c ../../libcrypto.a -o sm9-keygen
gcc sm9-sign.c ../../libcrypto.a -o sm9-sign
gcc sm9-verify.c ../../libcrypto.a -o sm9-verify
gcc sm9-encrypt.c ../../libcrypto.a -o sm9-encrypt
gcc sm9-decrypt.c ../../libcrypto.a -o sm9-decrypt
test:
echo "hello world" > hello.txt
./sm9-setup sm9sign sm9sign.mpk sm9sign.msk
./sm9-keygen sm9sign.msk alice alice.ssk
./sm9-setup sm9encrypt sm9enc.mpk sm9enc.msk
./sm9-keygen sm9enc.msk bob bob.esk
./sm9-sign hello.txt alice.ssk hello.sig
./sm9-verify hello.txt hello.sig sm9sign.mpk alice
./sm9-encrypt hello.txt hello.sm9 sm9enc.mpk bob
./sm9-decrypt hello.sm9 hello.dec bob.esk
clean:
rm -fr sm9-setup
rm -fr sm9-keygen
rm -fr sm9-sign
rm -fr sm9-verify
rm -fr sm9-encrypt
rm -fr sm9-decrypt
rm -fr *.mpk
rm -fr *.msk
rm -fr *.ssk
rm -fr *.esk
rm -fr hello.*