aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/aes192.asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/aes192.asm')
-rw-r--r--src/aes192.asm13
1 files changed, 13 insertions, 0 deletions
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]`.