diff options
author | Niels Möller <nisse@lysator.liu.se> | 2021-09-14 14:40:35 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2021-09-14 14:40:35 +0200 |
commit | 55584f4e7ce91f3e1c3b68f900a88d2ad680ae8d (patch) | |
tree | d63d2052df3d9adad9923d3378a293facce99c1d /fat-setup.h | |
parent | 7a966ac3869b7b8d94fb92740415ad71bbbdeee7 (diff) | |
download | nettle-55584f4e7ce91f3e1c3b68f900a88d2ad680ae8d.tar.gz |
Change CBC-AES interface
* cbc.h (cbc_aes128_encrypt, cbc_aes192_encrypt)
(cbc_aes256_encrypt): Change interface, take cipher context
pointer and iv as separate arguments. Update C and x86_64
implementations and corresponding glue code.
Diffstat (limited to 'fat-setup.h')
-rw-r--r-- | fat-setup.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/fat-setup.h b/fat-setup.h index 9ef5c22d..64b27244 100644 --- a/fat-setup.h +++ b/fat-setup.h @@ -214,12 +214,9 @@ typedef void aes256_invert_key_func (struct aes256_ctx *dst, const struct aes256 typedef void aes256_crypt_func (const struct aes256_ctx *ctx, size_t length, uint8_t *dst, const uint8_t *src); -struct cbc_aes128_ctx; -typedef void cbc_aes128_encrypt_func (struct cbc_aes128_ctx *ctx, +typedef void cbc_aes128_encrypt_func (const struct aes128_ctx *ctx, uint8_t *iv, size_t length, uint8_t *dst, const uint8_t *src); -struct cbc_aes192_ctx; -typedef void cbc_aes192_encrypt_func (struct cbc_aes192_ctx *ctx, +typedef void cbc_aes192_encrypt_func (const struct aes192_ctx *ctx, uint8_t *iv, size_t length, uint8_t *dst, const uint8_t *src); -struct cbc_aes256_ctx; -typedef void cbc_aes256_encrypt_func (struct cbc_aes256_ctx *ctx, +typedef void cbc_aes256_encrypt_func (const struct aes256_ctx *ctx, uint8_t *iv, size_t length, uint8_t *dst, const uint8_t *src); |