From 765b059fa62280d591a3d2e2342ec97455126c10 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 18 Oct 2015 17:52:11 +0300 Subject: add missing `assert`s --- include/aesni/mode.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/aesni/mode.h b/include/aesni/mode.h index 81e6c5c..7650ec0 100644 --- a/include/aesni/mode.h +++ b/include/aesni/mode.h @@ -127,6 +127,9 @@ static __inline AesNI_## prefix ##_Block __fastcall aesni_## prefix ##_decrypt_b AesNI_## prefix ##_Block init_vector, \ AesNI_## prefix ##_Block* next_init_vector) \ { \ + assert(encryption_keys); \ + assert(next_init_vector); \ +\ return aesni_## prefix ##_encrypt_block_OFB( \ ciphertext, encryption_keys, init_vector, next_init_vector); \ } @@ -154,6 +157,9 @@ static __inline AesNI_## prefix ##_Block __fastcall aesni_## prefix ##_decrypt_b AesNI_## prefix ##_Block init_vector, \ AesNI_## prefix ##_Block* next_init_vector) \ { \ + assert(encryption_keys); \ + assert(next_init_vector); \ +\ return aesni_## prefix ##_encrypt_block_CTR( \ ciphertext, encryption_keys, init_vector, next_init_vector); \ } -- cgit v1.2.3