mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-06 16:36:16 +08:00
Update Tools
This commit is contained in:
10
demos/sm3demo.sh
Executable file
10
demos/sm3demo.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo -n abc | gmssl sm3
|
||||
|
||||
gmssl sm2keygen -pass 1234 -out sm2.pem -pubout sm2pub.pem
|
||||
echo -n abc | gmssl sm3 -pubkey sm2pub.pem -id 1234567812345678
|
||||
|
||||
|
||||
echo -n abc | gmssl sm3hmac -key 11223344556677881122334455667788
|
||||
|
||||
Reference in New Issue
Block a user