diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-01-01 18:08:40 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-01-01 18:08:40 -0500 |
| commit | 5575e2a168c07d2dcc0e58146231e490ef8a898e (patch) | |
| tree | 7cd93a54d6012066a9daf63465c40b342946ecdd /lib/std/crypto | |
| parent | 7b62d5dfd872de8719cc05c2486f77b261e863e9 (diff) | |
| download | zig-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.zig | 2 |
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 |
