https://bugs.kde.org/show_bug.cgi?id=529089

            Bug ID: 529089
           Summary: ARMv8.2 SM3 hash function and SM4 block cipher
                    instructions (SM3,SM4)
    Classification: Developer tools
           Product: valgrind
      Version First unspecified
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: vex
          Assignee: [email protected]
          Reporter: [email protected]
            Blocks: 528707
  Target Milestone: ---

FEAT_SM3 and FEAT_SM4 (Armv8.2, OPTIONAL) add 7 + 2 instructions to implement
the Chinese SM3 hash function (GB/T 32905-2016) and the SM4 block cipher (GB/T
32907-2016). All 9 are 128-bit SIMD&FP instructions operating on 64-bit lanes.

SM3PARTW1
https://support.arm.com/documentation/ddi0602/latest/SIMD-FP-Instructions/SM3PARTW1--SM3PARTW1-
SM3PARTW2
https://support.arm.com/documentation/ddi0602/latest/SIMD-FP-Instructions/SM3PARTW2--SM3PARTW2-
SM3SS1
https://support.arm.com/documentation/ddi0602/latest/SIMD-FP-Instructions/SM3SS1--SM3SS1-
SM3TT1A
https://support.arm.com/documentation/ddi0602/latest/SIMD-FP-Instructions/SM3TT1A--SM3TT1A-
SM3TT1B
https://support.arm.com/documentation/ddi0602/latest/SIMD-FP-Instructions/SM3TT1B--SM3TT1B-
SM3TT2A
https://support.arm.com/documentation/ddi0602/latest/SIMD-FP-Instructions/SM3TT2A--SM3TT2A-
SM3TT2B
https://support.arm.com/documentation/ddi0602/latest/SIMD-FP-Instructions/SM3TT2B--SM3TT2B-

SM4E
https://support.arm.com/documentation/ddi0602/latest/SIMD-FP-Instructions/SM4E--SM4-encode-
SM4EKEY
https://support.arm.com/documentation/ddi0602/latest/SIMD-FP-Instructions/SM4EKEY--SM4-key-

The FEAT_SHA512 commit 5bf987891972 "Add support for Armv8.2 SHA-512
instructions"
Bug #447989 might be a good example to follow. These operations might be
expressible with existing Iops, but it would be a lot (plus lots of
temporaties) and slow, so dirty helpers might be simplest/fastest.

Note that GCC lumps SM3 and SM4 extensions together as "sm4", so use
-march=armv8.2-a+sm4 for tests.


Referenced Bugs:

https://bugs.kde.org/show_bug.cgi?id=528707
[Bug 528707] Support for armv8.x user instruction set features
-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to