Update sm9demo.sh

This commit is contained in:
Zhi Guan
2022-05-23 11:41:26 +08:00
parent d7a96e3ba1
commit 139f743f98
2 changed files with 3 additions and 3 deletions

View File

@@ -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