File: test_arm_sha512.cpp

package info (click to toggle)
libcrypto%2B%2B 8.9.0-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,960 kB
  • sloc: cpp: 110,116; asm: 10,493; sh: 8,937; makefile: 55
file content (17 lines) | stat: -rw-r--r-- 431 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdint.h>
#if (CRYPTOPP_ARM_NEON_HEADER)
# include <arm_neon.h>
#endif

int main(int argc, char* argv[])
{
    // SHA512 hash
    // https://developer.arm.com/architectures/instruction-sets/simd-isas/neon/intrinsics?search=SHA512
    uint32x4_t w={0}, x={0}, y={0}, z={0};
    w=vsha512hq_u64(x,y,z);
    w=vsha512h2q_u64(x,y);
    w=vsha512su0q_u64(x,y);
    w=vsha512su1q_u64 (x,y,z);

    return 0;
}