diff options
| author | Egor Tensin <egor@tensin.name> | 2026-07-22 18:31:50 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-07-22 21:07:53 +0200 |
| commit | 4720b5ac21163936fb47f524037a6f12ce6e6ce2 (patch) | |
| tree | 7b1f3f7f0e4047134048bb9b9967498b6f8ead12 /aes/src/c/aes256.c | |
| parent | minor refactoring (diff) | |
| download | aes-tools-4720b5ac21163936fb47f524037a6f12ce6e6ce2.tar.gz aes-tools-4720b5ac21163936fb47f524037a6f12ce6e6ce2.zip | |
rewrite: the beginning
This a giant fuck-you to myself while I have nothing (actually, tons of
things) to do in a hospital.
* The giant screens of preprocessor code are gone, they always sucked,
fuck them.
* Switched everything to the "boxes" interface as the only one
remaining.
* Restuctured things in aes/ so that the files they're in make at least
a little bit of sense.
* Removed a bunch of cruft and prematurely generic code.
* This is half-baked at best: I just made sure that the tests pass. A
lot of cleanup awaits.
Diffstat (limited to 'aes/src/c/aes256.c')
| -rw-r--r-- | aes/src/c/aes256.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/aes/src/c/aes256.c b/aes/src/c/aes256.c index cc5e13e..bc86965 100644 --- a/aes/src/c/aes256.c +++ b/aes/src/c/aes256.c @@ -10,7 +10,7 @@ #include <emmintrin.h> #include <wmmintrin.h> -AES_Block __fastcall aes256_encrypt_block_( +AES_Block __fastcall aes256_encrypt_block_internal( AES_Block plaintext, const AES256_RoundKeys* encryption_keys ) { @@ -31,7 +31,7 @@ AES_Block __fastcall aes256_encrypt_block_( return _mm_aesenclast_si128(plaintext, encryption_keys->keys[14]); } -AES_Block __fastcall aes256_decrypt_block_( +AES_Block __fastcall aes256_decrypt_block_internal( AES_Block ciphertext, const AES256_RoundKeys* decryption_keys ) { @@ -75,7 +75,7 @@ static AES_Block __fastcall aes256_expand_key_assist( return *prev_hi; } -void __fastcall aes256_expand_key_( +void __fastcall aes256_expand_key_internal( AES_Block key_lo, AES_Block key_hi, AES256_RoundKeys* encryption_keys @@ -139,7 +139,7 @@ void __fastcall aes256_expand_key_( encryption_keys->keys[14] = aes256_expand_key_assist(&prev_lo, &prev_hi, hwgen); } -void __fastcall aes256_derive_decryption_keys_( +void __fastcall aes256_derive_decryption_keys_internal( const AES256_RoundKeys* encryption_keys, AES256_RoundKeys* decryption_keys ) { |
