Branch: refs/heads/master Home: https://github.com/openssl/openssl Commit: 170620675dfd74f34bdcf8aba71dffeb07f3d533 https://github.com/openssl/openssl/commit/170620675dfd74f34bdcf8aba71dffeb07f3d533 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) To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications