openssl/openssl

a sm4-xts aarch64 assembly code bug when 'VPSM4_EX_CAPABLE' is turn on

Closed

#23,316 opened on Jan 17, 2024

 (0 comments) (0 reactions) (0 assignees)C (11,262 forks)batch import
branch: 3.2branch: masterhelp wantedtriaged: bug

Repository metrics

Stars
 (30,157 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

A bug is found when fuzzing sm4-xts implementation on Kunpeng920. It is triggered when 'VPSM4_EX_CAPABLE' is turn on, and the XTSStandard is GB. A test vector

Cipher = SM4-XTS
Key = FFFEFDFCFBFAF9F8F7F6F5F4F3F2F1F0BFBEBDBCBBBAB9B8B7B6B5B4B3B2B1B0
IV = 9A785634120000000000000000000000
Plaintext = 000102030405060708090A0B0C0D0E0F10
Ciphertext =  9E52443A35410CA0BA5637B94C0766F469
XTSStandard = GB

Contributor guide