Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@google.com>2016-03-17 23:10:58 +0300
committerDavid Benjamin <davidben@google.com>2016-03-24 22:30:47 +0300
commit4339552fbb2257156ce5c5bf49da2614d7c5a9a9 (patch)
treead318e5f99bbc9ad74af90de81210f9e04114082 /crypto/poly1305
parent270f0a77617ef2a00eb3e3a50a00f2fe58827e38 (diff)
Flip the arguments to ExpectBytesEqual in poly1305_test.
The function wants the expected value first. Change-Id: I6d3e21ebfa55d6dd99a34fe8380913641b4f5ff6 Reviewed-on: https://boringssl-review.googlesource.com/7501 Reviewed-by: Emily Stark (Dunn) <estark@google.com> Reviewed-by: David Benjamin <davidben@google.com>
Diffstat (limited to 'crypto/poly1305')
-rw-r--r--crypto/poly1305/poly1305_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/poly1305/poly1305_test.cc b/crypto/poly1305/poly1305_test.cc
index d970cd5a..2c25e93b 100644
--- a/crypto/poly1305/poly1305_test.cc
+++ b/crypto/poly1305/poly1305_test.cc
@@ -64,7 +64,7 @@ static bool TestSIMD(FileTest *t, unsigned excess,
// |CRYPTO_poly1305_finish| requires a 16-byte-aligned output.
alignas(16) uint8_t out[16];
CRYPTO_poly1305_finish(&state, out);
- if (!t->ExpectBytesEqual(out, 16, mac.data(), mac.size())) {
+ if (!t->ExpectBytesEqual(mac.data(), mac.size(), out, 16)) {
t->PrintLine("SIMD pattern %u failed.", excess);
return false;
}
@@ -102,7 +102,7 @@ static bool TestPoly1305(FileTest *t, void *arg) {
CRYPTO_poly1305_update(&state, &in[i], 1);
}
CRYPTO_poly1305_finish(&state, out);
- if (!t->ExpectBytesEqual(out, 16, mac.data(), mac.size())) {
+ if (!t->ExpectBytesEqual(mac.data(), mac.size(), out, 16)) {
t->PrintLine("Streaming Poly1305 failed.");
return false;
}