diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-05-24 18:17:14 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-05-24 18:17:14 +0300 |
commit | 18131081c8d292a32521934ed3000d32fcaad282 (patch) | |
tree | 19422606c70b483d75d4535f4551e66d83bf5b8b /include/aesni/data.h | |
parent | add FIPS-style printing to AES-192/256 blocks (diff) | |
download | aes-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.h | 8 |
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*); |