openssl/openssl

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

Geschlossen

#23.316 geöffnet am 17.01.2024

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C (11.262 Forks)batch import
branch: 3.2branch: masterhelp wantedtriaged: bug

Repository-Metriken

Stars
 (30.157 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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