]> git.ipfire.org Git - thirdparty/openssl.git/commit - CHANGES.md
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:07:39 +0000 (11:07 +0100)
commit1d490694dfa790d8e47f8f2ea62ea1d9b1251179
tree1f4c7868fd7cd8fda174d2c235bd21c2d534ca60
parent0981c20f8efa68bf9d68d7715280f83812c19a7e
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)
CHANGES.md
providers/implementations/encode_decode/encode_key2any.c