aboutsummaryrefslogtreecommitdiff
path: root/core/crypto/_aes
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2024-05-25 20:24:39 +0900
committerYawning Angel <yawning@schwanenlied.me>2024-06-01 22:55:42 +0900
commitc751e4b2ebe8a2a32aee09c67d7d27872fc2d5e3 (patch)
treecdda92e3caeeca1fb3ba1660c11c2aa55daff0df /core/crypto/_aes
parent1ade62b630f565d975049aa75935c64db175ef61 (diff)
core/crypto/aes: Add AES implementation
Diffstat (limited to 'core/crypto/_aes')
-rw-r--r--core/crypto/_aes/aes.odin3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/crypto/_aes/aes.odin b/core/crypto/_aes/aes.odin
index 6b290feb6..4f52485d2 100644
--- a/core/crypto/_aes/aes.odin
+++ b/core/crypto/_aes/aes.odin
@@ -10,7 +10,6 @@ KEY_SIZE_256 :: 32
// BLOCK_SIZE is the AES block size in bytes.
BLOCK_SIZE :: 16
-
// ROUNDS_128 is the number of rounds for AES-128.
ROUNDS_128 :: 10
// ROUNDS_192 is the number of rounds for AES-192.
@@ -22,6 +21,8 @@ ROUNDS_256 :: 14
GHASH_KEY_SIZE :: 16
// GHASH_BLOCK_SIZE is the GHASH block size in bytes.
GHASH_BLOCK_SIZE :: 16
+// GHASH_TAG_SIZE is the GHASH tag size in bytes.
+GHASH_TAG_SIZE :: 16
// RCON is the AES keyschedule round constants.
RCON := [10]byte{0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1B, 0x36}