mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-03-02 02:15:34 +00:00
Split test_arm_sha.cxx into SHA1 and SHA256 tests
This commit is contained in:
parent
c51f0ecbfd
commit
f027361369
TestPrograms
18
TestPrograms/test_arm_sha1.cxx
Normal file
18
TestPrograms/test_arm_sha1.cxx
Normal file
@ -0,0 +1,18 @@
|
||||
#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 = {0};
|
||||
y=vsha1cq_u32(y,0,y);
|
||||
y=vsha1mq_u32(y,1,y);
|
||||
y=vsha1pq_u32(y,2,y);
|
||||
return 0;
|
||||
}
|
@ -11,9 +11,6 @@
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
uint32x4_t y = {0};
|
||||
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);
|
Loading…
x
Reference in New Issue
Block a user