authorgravatar for luke.champine@gmail.comLuke Champine <luke.champine@gmail.com> 2019-11-04 13:59:26-05:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2019-11-04 13:59:26-05:00
logeb95afbc668e54e5cc94d7432d587bd80fdf50e5
tree2a6a48cb6a6fe2df68e0385db4911bd5ed058546
parentf403aa6cee7c92151d4cfcf93a46d481a30aa5c6
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

remove speculative AES TODOs


1 files changed, 0 insertions(+), 4 deletions(-)

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