From 8b41fc841b3b315fd959523f6eadb5ac5fa82df0 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Wed, 9 Aug 2017 13:43:28 -0600 Subject: [PATCH] remove setting variable that is currently not used after being set --- src/tls13.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/tls13.c b/src/tls13.c index 350f61071..d952195cb 100644 --- a/src/tls13.c +++ b/src/tls13.c @@ -1642,7 +1642,6 @@ static int EncryptTls13(WOLFSSL* ssl, byte* output, const byte* input, #if defined(HAVE_CHACHA) && defined(HAVE_POLY1305) case wolfssl_chacha: - nonceSz = CHACHA_IV_BYTES; ret = ChaCha20Poly1305_Encrypt(ssl, output, input, dataSz, ssl->encrypt.nonce, output + dataSz); break; @@ -1855,7 +1854,6 @@ int DecryptTls13(WOLFSSL* ssl, byte* output, const byte* input, word16 sz) #if defined(HAVE_CHACHA) && defined(HAVE_POLY1305) case wolfssl_chacha: - nonceSz = CHACHA_IV_BYTES; ret = ChaCha20Poly1305_Decrypt(ssl, output, input, dataSz, ssl->decrypt.nonce, input + dataSz); break;