aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-06-16 13:57:44 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-06-16 13:57:44 +0300
commite625f0aa58f341981ea8cba99660ae7c1eac1b05 (patch)
tree8e7bf55d7a9cf8ddcbed6be3b6402e1b774c29e4 /include
parentutils/cxx/ -> cxx/ (diff)
downloadaes-tools-e625f0aa58f341981ea8cba99660ae7c1eac1b05.tar.gz
aes-tools-e625f0aa58f341981ea8cba99660ae7c1eac1b05.zip
handle block formatting/printing functions errors
Diffstat (limited to 'include')
-rw-r--r--include/aesni/data.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/include/aesni/data.h b/include/aesni/data.h
index 188b3e4..6f4da76 100644
--- a/include/aesni/data.h
+++ b/include/aesni/data.h
@@ -222,25 +222,25 @@ typedef struct { char str[33]; } AesNI_BlockString128;
typedef struct { char str[49]; } AesNI_BlockString192;
typedef struct { char str[65]; } AesNI_BlockString256;
-AesNI_BlockString128 aesni_format_block128(AesNI_Block128*);
-AesNI_BlockString192 aesni_format_block192(AesNI_Block192*);
-AesNI_BlockString256 aesni_format_block256(AesNI_Block256*);
+AesNI_StatusCode aesni_format_block128(AesNI_BlockString128*, const AesNI_Block128*, AesNI_ErrorDetails*);
+AesNI_StatusCode aesni_format_block192(AesNI_BlockString192*, const AesNI_Block192*, AesNI_ErrorDetails*);
+AesNI_StatusCode aesni_format_block256(AesNI_BlockString256*, const AesNI_Block256*, AesNI_ErrorDetails*);
typedef struct { char str[49]; } AesNI_BlockMatrixString128;
typedef struct { char str[73]; } AesNI_BlockMatrixString192;
typedef struct { char str[97]; } AesNI_BlockMatrixString256;
-AesNI_BlockMatrixString128 aesni_format_block128_as_matrix(AesNI_Block128*);
-AesNI_BlockMatrixString192 aesni_format_block192_as_matrix(AesNI_Block192*);
-AesNI_BlockMatrixString256 aesni_format_block256_as_matrix(AesNI_Block256*);
+AesNI_StatusCode aesni_format_block128_as_matrix(AesNI_BlockMatrixString128*, const AesNI_Block128*, AesNI_ErrorDetails*);
+AesNI_StatusCode aesni_format_block192_as_matrix(AesNI_BlockMatrixString192*, const AesNI_Block192*, AesNI_ErrorDetails*);
+AesNI_StatusCode aesni_format_block256_as_matrix(AesNI_BlockMatrixString256*, const AesNI_Block256*, AesNI_ErrorDetails*);
-void aesni_print_block128(AesNI_Block128*);
-void aesni_print_block192(AesNI_Block192*);
-void aesni_print_block256(AesNI_Block256*);
+AesNI_StatusCode aesni_print_block128(const AesNI_Block128*, AesNI_ErrorDetails*);
+AesNI_StatusCode aesni_print_block192(const AesNI_Block192*, AesNI_ErrorDetails*);
+AesNI_StatusCode aesni_print_block256(const AesNI_Block256*, AesNI_ErrorDetails*);
-void aesni_print_block128_as_matrix(AesNI_Block128*);
-void aesni_print_block192_as_matrix(AesNI_Block192*);
-void aesni_print_block256_as_matrix(AesNI_Block256*);
+AesNI_StatusCode aesni_print_block128_as_matrix(const AesNI_Block128*, AesNI_ErrorDetails*);
+AesNI_StatusCode aesni_print_block192_as_matrix(const AesNI_Block192*, AesNI_ErrorDetails*);
+AesNI_StatusCode aesni_print_block256_as_matrix(const AesNI_Block256*, AesNI_ErrorDetails*);
AesNI_StatusCode aesni_parse_block128(
AesNI_Block128* dest,