Fix SHA feature detection on AIX
This one should have been fixed before the Crypto++ 6.1 release. Its no big deal, however. Power8 accelerated SHA-256 is 1.5x to 2x slower than straight C++. SHA-512 may be better, but the implementation is not ready to performance test.pull/595/head
parent
f1a3da834a
commit
626c86987b
|
|
@ -255,7 +255,7 @@ bool CPU_ProbeSHA256()
|
|||
x = VectorSHA256<1,1>(x);
|
||||
VectorStore(x, r);
|
||||
|
||||
result = (0 != std::memcmp(r, z, 16));
|
||||
result = (0 == std::memcmp(r, z, 16));
|
||||
}
|
||||
|
||||
sigprocmask(SIG_SETMASK, (sigset_t*)&oldMask, NULLPTR);
|
||||
|
|
@ -299,7 +299,7 @@ bool CPU_ProbeSHA512()
|
|||
x = VectorSHA512<1,1>(x);
|
||||
VectorStore(x, r);
|
||||
|
||||
result = (0 != std::memcmp(r, z, 16));
|
||||
result = (0 == std::memcmp(r, z, 16));
|
||||
}
|
||||
|
||||
sigprocmask(SIG_SETMASK, (sigset_t*)&oldMask, NULLPTR);
|
||||
|
|
|
|||
Loading…
Reference in New Issue