Update some demos

This commit is contained in:
Zhi Guan
2018-10-31 11:03:21 +08:00
parent 9eadfd4cb6
commit 676076278d
37 changed files with 2277 additions and 141 deletions

14
demos/sm3/Makefile Normal file
View File

@@ -0,0 +1,14 @@
all:
gcc sm3.c -L /usr/local/lib -lcrypto -o sm3
gcc sm3evp.c -L /usr/local/lib -lcrypto -o sm3evp
gcc sm3hmac.c -L /usr/local/lib -lcrypto -o sm3hmac
test:
echo "hello" | ./sm3
echo "hello" | ./sm3evp
echo "hello" | ./sm3hmac
clean:
rm -fr sm3
rm -fr sm3evp
rm -fr sm3hmac