summaryrefslogtreecommitdiff
path: root/TestPrograms/test_arm_sha.cxx
blob: b80b7d838f2978b56577b4be543d5f85a61d4358 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <arm_neon.h>
#include <stdint.h>

// test_acle.h determines if this is available. Then,
// -DCRYPTOPP_ARM_ACLE_AVAILABLE=0 is added to CXXFLAGS
// if the ACLE header is not available.
#if (CRYPTOPP_ARM_ACLE_AVAILABLE)
#  include <arm_acle.h>
#endif

int main(int argc, char* argv[])
{
	uint32x4_t y;
	y=vsha1cq_u32(y,0,y);
	y=vsha1mq_u32(y,1,y);
	y=vsha1pq_u32(y,2,y);
	y = vsha256hq_u32(y, y, y);
	y = vsha256h2q_u32(y, y, y);
	y = vsha256su1q_u32(y, y, y);
	return 0;
}