aboutsummaryrefslogtreecommitdiff
path: root/lib/std/crypto
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-01-01 18:08:40 -0500
committerAndrew Kelley <andrew@ziglang.org>2020-01-01 18:08:40 -0500
commit5575e2a168c07d2dcc0e58146231e490ef8a898e (patch)
tree7cd93a54d6012066a9daf63465c40b342946ecdd /lib/std/crypto
parent7b62d5dfd872de8719cc05c2486f77b261e863e9 (diff)
downloadzig-5575e2a168c07d2dcc0e58146231e490ef8a898e.tar.gz
zig-5575e2a168c07d2dcc0e58146231e490ef8a898e.zip
std.mem.compare: breaking API changes
* `std.mem.Compare` is now `std.math.Order` and the enum tags renamed to follow new style convention. * `std.mem.compare` is renamed to `std.mem.order`. * new function `std.math.order`
Diffstat (limited to 'lib/std/crypto')
-rw-r--r--lib/std/crypto/chacha20.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/crypto/chacha20.zig b/lib/std/crypto/chacha20.zig
index 8a0f677660..d67877b051 100644
--- a/lib/std/crypto/chacha20.zig
+++ b/lib/std/crypto/chacha20.zig
@@ -224,7 +224,7 @@ test "crypto.chacha20 test vector sunscreen" {
// Chacha20 is self-reversing.
var plaintext: [114]u8 = undefined;
chaCha20IETF(plaintext[0..], result[0..], 1, key, nonce);
- testing.expect(mem.compare(u8, input, &plaintext) == mem.Compare.Equal);
+ testing.expect(mem.order(u8, input, &plaintext) == .eq);
}
// https://tools.ietf.org/html/draft-agl-tls-chacha20poly1305-04#section-7