diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-04 17:05:24 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-04 17:05:24 +0300 |
commit | a497b83f80508747151dacf660f7d5de48d0464f (patch) | |
tree | b2ded10280830aa31b3be10e2b81fc1a42df65e0 /include | |
parent | refactoring (diff) | |
download | aes-tools-a497b83f80508747151dacf660f7d5de48d0464f.tar.gz aes-tools-a497b83f80508747151dacf660f7d5de48d0464f.zip |
explicitly separate BE vs. LE block I/O functions
Diffstat (limited to 'include')
-rw-r--r-- | include/aesni/data.h | 50 |
1 files changed, 35 insertions, 15 deletions
diff --git a/include/aesni/data.h b/include/aesni/data.h index 1a192fc..44c499a 100644 --- a/include/aesni/data.h +++ b/include/aesni/data.h @@ -80,34 +80,54 @@ AesBlockString128 format_aes_block128(AesBlock128*); AesBlockString192 format_aes_block192(AesBlock192*); AesBlockString256 format_aes_block256(AesBlock256*); -AesBlockString128 format_aes_block128_fips_style(AesBlock128*); -AesBlockString192 format_aes_block192_fips_style(AesBlock192*); -AesBlockString256 format_aes_block256_fips_style(AesBlock256*); +AesBlockString128 format_aes_block128_le(AesBlock128*); +AesBlockString192 format_aes_block192_le(AesBlock192*); +AesBlockString256 format_aes_block256_le(AesBlock256*); + +AesBlockString128 format_aes_block128_be(AesBlock128*); +AesBlockString192 format_aes_block192_be(AesBlock192*); +AesBlockString256 format_aes_block256_be(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*); +AesBlockMatrixString128 format_aes_block128_as_matrix(AesBlock128*); +AesBlockMatrixString192 format_aes_block192_as_matrix(AesBlock192*); +AesBlockMatrixString256 format_aes_block256_as_matrix(AesBlock256*); + +AesBlockMatrixString128 format_aes_block128_be_as_matrix(AesBlock128*); +AesBlockMatrixString192 format_aes_block192_be_as_matrix(AesBlock192*); +AesBlockMatrixString256 format_aes_block256_be_as_matrix(AesBlock256*); void print_aes_block128(AesBlock128*); void print_aes_block192(AesBlock192*); void print_aes_block256(AesBlock256*); -void print_aes_block128_fips_style(AesBlock128*); -void print_aes_block192_fips_style(AesBlock192*); -void print_aes_block256_fips_style(AesBlock256*); +void print_aes_block128_le(AesBlock128*); +void print_aes_block192_le(AesBlock192*); +void print_aes_block256_le(AesBlock256*); + +void print_aes_block128_be(AesBlock128*); +void print_aes_block192_be(AesBlock192*); +void print_aes_block256_be(AesBlock256*); -void print_aes_block128_fips_matrix_style(AesBlock128*); -void print_aes_block192_fips_matrix_style(AesBlock192*); -void print_aes_block256_fips_matrix_style(AesBlock256*); +void print_aes_block128_as_matrix(AesBlock128*); +void print_aes_block192_as_matrix(AesBlock192*); +void print_aes_block256_as_matrix(AesBlock256*); + +void print_aes_block128_be_as_matrix(AesBlock128*); +void print_aes_block192_be_as_matrix(AesBlock192*); +void print_aes_block256_be_as_matrix(AesBlock256*); int parse_aes_block128(AesBlock128*, const char*); int parse_aes_block192(AesBlock192*, const char*); int parse_aes_block256(AesBlock256*, const char*); -int parse_aes_block128_fips_style(AesBlock128*, const char*); -int parse_aes_block192_fips_style(AesBlock192*, const char*); -int parse_aes_block256_fips_style(AesBlock256*, const char*); +int parse_aes_block128_le(AesBlock128*, const char*); +int parse_aes_block192_le(AesBlock192*, const char*); +int parse_aes_block256_le(AesBlock256*, const char*); + +int parse_aes_block128_be(AesBlock128*, const char*); +int parse_aes_block192_be(AesBlock192*, const char*); +int parse_aes_block256_be(AesBlock256*, const char*); |