diff options
author | Niels Möller <nisse@lysator.liu.se> | 2014-04-25 20:44:58 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2014-04-25 20:44:58 +0200 |
commit | 91d0c1b519a29bc29b6d71396e467fb975ad3bd7 (patch) | |
tree | 5e4d452a2877f63953af7c9120a3740984dbcce5 /ccm.h | |
parent | c8e472cb2bf066d0207093815f912860dff5ce94 (diff) | |
download | nettle-91d0c1b519a29bc29b6d71396e467fb975ad3bd7.tar.gz |
ccm_decrypt_message: length argument is cleartext (dst) length
Also updated related functions.
Diffstat (limited to 'ccm.h')
-rw-r--r-- | ccm.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -150,7 +150,7 @@ ccm_decrypt_message(const void *cipher, nettle_cipher_func *f, size_t nlength, const uint8_t *nonce, size_t alength, const uint8_t *adata, size_t tlength, - size_t clength, uint8_t *dst, const uint8_t *src); + size_t mlength, uint8_t *dst, const uint8_t *src); /* CCM Mode with AES-128 */ struct ccm_aes128_ctx { @@ -194,7 +194,7 @@ ccm_aes128_decrypt_message(struct ccm_aes128_ctx *ctx, size_t nlength, const uint8_t *nonce, size_t alength, const uint8_t *adata, size_t tlength, - size_t clength, uint8_t *dst, const uint8_t *src); + size_t mlength, uint8_t *dst, const uint8_t *src); struct ccm_aes192_ctx { struct ccm_ctx ccm; @@ -238,7 +238,7 @@ ccm_aes192_decrypt_message(struct ccm_aes192_ctx *ctx, size_t nlength, const uint8_t *nonce, size_t alength, const uint8_t *adata, size_t tlength, - size_t clength, uint8_t *dst, const uint8_t *src); + size_t mlength, uint8_t *dst, const uint8_t *src); /* CCM Mode with AES-256 */ struct ccm_aes256_ctx { @@ -282,7 +282,7 @@ ccm_aes256_decrypt_message(struct ccm_aes256_ctx *ctx, size_t nlength, const uint8_t *nonce, size_t alength, const uint8_t *adata, size_t tlength, - size_t clength, uint8_t *dst, const uint8_t *src); + size_t mlength, uint8_t *dst, const uint8_t *src); #ifdef __cplusplus } |