mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
remove speculative AES TODOs
This commit is contained in:
parent
f403aa6cee
commit
eb95afbc66
1 changed files with 0 additions and 4 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue