add SM2 pub key (#267)

SM2 is a set of cryptographic algorithms based on elliptic curve cryptography, including a digital signature, public key encryption and key exchange scheme.
This commit is contained in:
响马 2022-05-19 16:25:22 +08:00 committed by GitHub
parent 4011cb2fb4
commit 5de6f09bdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,6 +148,7 @@ p521-pub, key, 0x1202, draft, P-521
ed448-pub, key, 0x1203, draft, Ed448 public Key
x448-pub, key, 0x1204, draft, X448 public Key
rsa-pub, key, 0x1205, draft, RSA public key. DER-encoded ASN.1 type RSAPublicKey according to IETF RFC 8017 (PKCS #1)
sm2-pub, key, 0x1206, draft, SM2 public key (compressed)
ed25519-priv, key, 0x1300, draft, Ed25519 private key
secp256k1-priv, key, 0x1301, draft, Secp256k1 private key
x25519-priv, key, 0x1302, draft, Curve25519 private key

1 name tag code status description
148 ed448-pub key 0x1203 draft Ed448 public Key
149 x448-pub key 0x1204 draft X448 public Key
150 rsa-pub key 0x1205 draft RSA public key. DER-encoded ASN.1 type RSAPublicKey according to IETF RFC 8017 (PKCS #1)
151 sm2-pub key 0x1206 draft SM2 public key (compressed)
152 ed25519-priv key 0x1300 draft Ed25519 private key
153 secp256k1-priv key 0x1301 draft Secp256k1 private key
154 x25519-priv key 0x1302 draft Curve25519 private key