mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-06 16:36:16 +08:00
Update sm9demo.sh
This commit is contained in:
@@ -7,6 +7,6 @@ echo hello | gmssl sm9verify -pubmaster sign_mpk.pem -id alice -sig hello.sig
|
||||
|
||||
gmssl sm9setup -alg sm9encrypt -pass 1234 -out enc_msk.pem -pubout enc_mpk.pem
|
||||
gmssl sm9keygen -alg sm9encrypt -in enc_msk.pem -inpass 1234 -id bob -out bob.pem -outpass 1234
|
||||
echo hello | ./gmssl sm9encrypt -pubmaster enc_mpk.pem -id bob -out hello.der
|
||||
echo hello | gmssl sm9encrypt -pubmaster enc_mpk.pem -id bob -out hello.der
|
||||
gmssl sm9decrypt -key bob.pem -pass 1234 -id bob -in hello.der
|
||||
|
||||
|
||||
Reference in New Issue
Block a user