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-aes192.c | |
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-aes192.c')
-rw-r--r-- | ccm-aes192.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ccm-aes192.c b/ccm-aes192.c index 01d406a0..6b6ebed9 100644 --- a/ccm-aes192.c +++ b/ccm-aes192.c @@ -105,10 +105,10 @@ 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) { return ccm_decrypt_message(&ctx->cipher, (nettle_cipher_func *) aes192_encrypt, nlength, nonce, alength, adata, - tlength, clength, dst, src); + tlength, mlength, dst, src); } |