aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/aesni/data.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-05-24 18:17:14 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-05-24 18:17:14 +0300
commit18131081c8d292a32521934ed3000d32fcaad282 (patch)
tree19422606c70b483d75d4535f4551e66d83bf5b8b /include/aesni/data.h
parentadd FIPS-style printing to AES-192/256 blocks (diff)
downloadaes-tools-18131081c8d292a32521934ed3000d32fcaad282.tar.gz
aes-tools-18131081c8d292a32521934ed3000d32fcaad282.zip
add FIPS-style formatting to AES-192/256 blocks
Diffstat (limited to 'include/aesni/data.h')
-rw-r--r--include/aesni/data.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/aesni/data.h b/include/aesni/data.h
index e0e4563..f039192 100644
--- a/include/aesni/data.h
+++ b/include/aesni/data.h
@@ -42,6 +42,14 @@ AesBlockString128 format_aes_block128_fips_style(AesBlock128*);
AesBlockString192 format_aes_block192_fips_style(AesBlock192*);
AesBlockString256 format_aes_block256_fips_style(AesBlock256*);
+typedef struct { char str[49]; } AesBlockMatrixString128;
+typedef struct { char str[73]; } AesBlockMatrixString192;
+typedef struct { char str[97]; } AesBlockMatrixString256;
+
+AesBlockMatrixString128 format_aes_block128_fips_matrix_style(AesBlock128*);
+AesBlockMatrixString192 format_aes_block192_fips_matrix_style(AesBlock192*);
+AesBlockMatrixString256 format_aes_block256_fips_matrix_style(AesBlock256*);
+
void print_aes_block128(AesBlock128*);
void print_aes_block192(AesBlock192*);
void print_aes_block256(AesBlock256*);