Branch: refs/heads/openssl-3.0 Home: https://github.com/openssl/openssl Commit: 96390f92c6b62d2b69bd2861c6b78c1ae2cfb0cb https://github.com/openssl/openssl/commit/96390f92c6b62d2b69bd2861c6b78c1ae2cfb0cb Author: Liu-Ermeng <liuerme...@huawei.com> Date: 2024-05-15 (Wed, 15 May 2024)
Changed paths: M crypto/sm2/sm2_crypt.c Log Message: ----------- fix sm2 encryption implementation bug. According to the "GB/T 32918.4-2016" section 6.1 encryption, step A5: If result of the "KDF" is all zeros, we should go back to the begin(step A1). section 7.1 decryption, step B4: If result of the "KDF" is all zeros, we should raise error and exit. Signed-off-by: Liu-Ermeng <liuerme...@huawei.com> Reviewed-by: Neil Horman <nhor...@openssl.org> Reviewed-by: Tomas Mraz <to...@openssl.org> (Merged from https://github.com/openssl/openssl/pull/23210) (cherry picked from commit 170620675dfd74f34bdcf8aba71dffeb07f3d533) To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications