From 962e48d3ffb90308513fd8908d73753049a27f3d Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 18 Jun 2015 04:30:28 +0300 Subject: better error messages + refactoring --- src/box.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/box.c') diff --git a/src/box.c b/src/box.c index 0fa7297..f49c79f 100644 --- a/src/box.c +++ b/src/box.c @@ -131,7 +131,7 @@ static AesNI_StatusCode aesni_box_encrypt_ctr( AesNI_BoxBlock* output, AesNI_ErrorDetails* err_details) { - return aesni_error_not_implemented(err_details); + return aesni_error_not_implemented(err_details, "box encryption in CTR mode"); } typedef AesNI_StatusCode (*AesNI_BoxEncryptMode)( @@ -254,7 +254,7 @@ static AesNI_StatusCode aesni_box_decrypt_ctr( AesNI_BoxBlock* output, AesNI_ErrorDetails* err_details) { - return aesni_error_not_implemented(err_details); + return aesni_error_not_implemented(err_details, "box decryption in CTR mode"); } typedef AesNI_BoxEncryptMode AesNI_BoxDecryptMode; -- cgit v1.2.3