SM2 sample
generating SM2 keypair, signing and verifying SM3withSM2 signature
(Step1) choose supported EC curve name and generate key pair
ECC curve name:
SM2
secp256r1 (= NIST P-256, P-256, prime256v1)
secp256k1
secp384r1 (= NIST P-384, P-384)
EC private key (hex):
EC public key (hex):
(Step2) Sign message
Signature Algorithm:
SM3withSM2
SHA256withECDSA
SHA1withECDSA
Message string to be signed:
Signature value (hex):
(Step3) Verify signature