]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix the encoding of SM2 keys
authorRichard Levitte <levitte@openssl.org>
Fri, 27 Oct 2023 07:01:19 +0000 (09:01 +0200)
committerTomas Mraz <tomas@openssl.org>
Fri, 12 Jan 2024 10:09:25 +0000 (11:09 +0100)
commit4e06cc4dbe2a598819c48ccf3e343d7496ac2be7
tree93a0161712ba4c4dc206c3b6d22dd8cb2e2cf7b6
parent12726997e86dc8f19c011ab8cbd995c10b12547d
Fix the encoding of SM2 keys

OpenSSL's encoding of SM2 keys used the SM2 OID for the algorithm OID
where an AlgorithmIdentifier is encoded (for encoding into the structures
PrivateKeyInfo and SubjectPublicKeyInfo).

Such keys should be encoded as ECC keys.

Fixes #22184

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22529)

(cherry picked from commit 1d490694dfa790d8e47f8f2ea62ea1d9b1251179)
CHANGES.md
providers/implementations/encode_decode/encode_key2any.c