From 315098f2da4f0d4990b432ad7a932a2918af1dfb Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 24 May 2015 16:44:40 +0300 Subject: add block formatting/printing functions --- include/aesni/raw.h | 64 ++++++++++++++++++++++++++--------------------------- 1 file changed, 32 insertions(+), 32 deletions(-) (limited to 'include/aesni/raw.h') diff --git a/include/aesni/raw.h b/include/aesni/raw.h index 03ce217..9ee6ae9 100644 --- a/include/aesni/raw.h +++ b/include/aesni/raw.h @@ -10,38 +10,38 @@ #include "data.h" -AesBlock __fastcall aes128ecb_encrypt( - AesBlock plain, - AesBlock key); -AesBlock __fastcall aes128ecb_decrypt( - AesBlock cypher, - AesBlock key); +AesBlock128 __fastcall aes128ecb_encrypt( + AesBlock128 plain, + AesBlock128 key); +AesBlock128 __fastcall aes128ecb_decrypt( + AesBlock128 cypher, + AesBlock128 key); -AesBlock __fastcall aes192ecb_encrypt( - AesBlock plain, - AesBlock key_lo, - AesBlock key_hi); -AesBlock __fastcall aes192ecb_decrypt( - AesBlock cypher, - AesBlock key_lo, - AesBlock key_hi); +AesBlock128 __fastcall aes192ecb_encrypt( + AesBlock128 plain, + AesBlock128 key_lo, + AesBlock128 key_hi); +AesBlock128 __fastcall aes192ecb_decrypt( + AesBlock128 cypher, + AesBlock128 key_lo, + AesBlock128 key_hi); -AesBlock __fastcall aes256ecb_encrypt( - AesBlock plain, - AesBlock key_lo, - AesBlock key_hi); -AesBlock __fastcall aes256ecb_decrypt( - AesBlock cypher, - AesBlock key_lo, - AesBlock key_hi); +AesBlock128 __fastcall aes256ecb_encrypt( + AesBlock128 plain, + AesBlock128 key_lo, + AesBlock128 key_hi); +AesBlock128 __fastcall aes256ecb_decrypt( + AesBlock128 cypher, + AesBlock128 key_lo, + AesBlock128 key_hi); -AesBlock __fastcall aes256cbc_encrypt( - AesBlock plain, - AesBlock key_lo, - AesBlock key_hi, - AesBlock *iv); -AesBlock __fastcall aes256cbc_decrypt( - AesBlock cypher, - AesBlock key_lo, - AesBlock key_hi, - AesBlock *iv); +AesBlock128 __fastcall aes256cbc_encrypt( + AesBlock128 plain, + AesBlock128 key_lo, + AesBlock128 key_hi, + AesBlock128 *iv); +AesBlock128 __fastcall aes256cbc_decrypt( + AesBlock128 cypher, + AesBlock128 key_lo, + AesBlock128 key_hi, + AesBlock128 *iv); -- cgit v1.2.3