Skip to content

Commit e75dce5

Browse files
committed
Clarified the math for key_size
1 parent 0fe2202 commit e75dce5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

circuits/aes-gcm/aes_128_enc.circom

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ template AES128Encrypt()
2020
signal input in[128]; // ciphertext
2121

2222
// Key schedule for initial, final, and between each full round
23-
key_size <== (4 + 4 + ROUNDS * 4) * 32
23+
key_size <== (1 + 1 + ROUNDS) * 4 * 32
2424
signal input ks[key_size];
2525

2626
/// Output is 128 bit of ciphertext

0 commit comments

Comments
 (0)