zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit eb95afbc668e54e5cc94d7432d587bd80fdf50e5 (tree)
parent f403aa6cee7c92151d4cfcf93a46d481a30aa5c6
Author: Luke Champine <luke.champine@gmail.com>
Date:   Mon,  4 Nov 2019 13:59:26 -0500

remove speculative AES TODOs
Diffstat:
Mlib/std/crypto/aes.zig | 4----
1 file changed, 0 insertions(+), 4 deletions(-)

diff --git a/lib/std/crypto/aes.zig b/lib/std/crypto/aes.zig @@ -13,8 +13,6 @@ fn rotw(w: u32) u32 { return w << 8 | w >> 24; } -// TODO: encrypt and decrypt could probably be unified - // Encrypt one block from src into dst, using the expanded key xk. fn encryptBlock(xk: []const u32, dst: []u8, src: []const u8) void { var s0 = mem.readIntSliceBig(u32, src[0..4]); @@ -270,8 +268,6 @@ test "expand key" { // constants -// TODO: generate these at comptime? - const poly = 1 << 8 | 1 << 4 | 1 << 3 | 1 << 1 | 1 << 0; var powx = [16]u8{