From b08c0e5b32c625215bee0ae96a023733d34e9357 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 30 May 2015 00:38:19 +0300 Subject: support AES-{128,192}-cbc --- src/aes192.asm | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/aes192.asm') diff --git a/src/aes192.asm b/src/aes192.asm index 9d26dca..55fd540 100644 --- a/src/aes192.asm +++ b/src/aes192.asm @@ -34,6 +34,11 @@ inverted_key_schedule oword 13 dup(0) ret @raw_aes192ecb_encrypt@48 endp +@raw_aes192cbc_encrypt@52 proc + pxor xmm0, [ecx] + jmp @raw_aes192ecb_encrypt@48 +@raw_aes192cbc_encrypt@52 endp + @raw_aes192ecb_decrypt@48 proc call expand_keys192 pxor xmm0, [inverted_key_schedule] @@ -52,6 +57,14 @@ inverted_key_schedule oword 13 dup(0) ret @raw_aes192ecb_decrypt@48 endp +@raw_aes192cbc_decrypt@52 proc + push ecx + call @raw_aes192ecb_decrypt@48 + pop ecx + pxor xmm0, [ecx] + ret +@raw_aes192cbc_decrypt@52 endp + expand_keys192 proc ; A "word" (in terms of the FIPS 187 standard) is a 32-bit block. ; Words are denoted by `w[N]`. -- cgit v1.2.3