commit 256fafd82571a2a2f4f1203b03425c805910b5ea
parent d4b6fe327099f8fece1ac6564bc9bbf9bb2829cc
Author: superpozycja <anna@superpozycja.net>
Date: Tue, 25 Feb 2025 01:42:54 +0100
lib/aes: rename amt to offset
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/aes.c b/lib/aes.c
@@ -40,12 +40,12 @@ static uint8_t sbox_inv[0x100] = {
0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26, 0xe1, 0x69, 0x14, 0x63, 0x55, 0x21, 0x0c, 0x7d
};
-static int rot_word(ba *input, ba **output, unsigned int amt) {
+static int rot_word(ba *input, ba **output, unsigned int offset) {
int i;
*output = ba_alloc(4);
for (i = 0; i < 4; i++) {
- (*output)->val[i] = input->val[(i+amt)%4];
+ (*output)->val[i] = input->val[(i+offset)%4];
}
}