From: Kelvin Lee Date: Sun, 27 Oct 2019 12:04:39 +0000 (+1100) Subject: Fix typo in cipher_chacha20_poly1305_hw.c. X-Git-Tag: openssl-3.0.0-alpha1~1062 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8e8901e1e497d2a2bc0f56aa711f7462d88820f3;p=oweals%2Fopenssl.git Fix typo in cipher_chacha20_poly1305_hw.c. CLA: trivial Reviewed-by: Richard Levitte Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/10275) --- diff --git a/providers/implementations/ciphers/cipher_chacha20_poly1305_hw.c b/providers/implementations/ciphers/cipher_chacha20_poly1305_hw.c index 51e5275b7e..74b8fb6586 100644 --- a/providers/implementations/ciphers/cipher_chacha20_poly1305_hw.c +++ b/providers/implementations/ciphers/cipher_chacha20_poly1305_hw.c @@ -142,7 +142,7 @@ static int chacha20_poly1305_tls_cipher(PROV_CIPHER_CTX *bctx, ctx->len.text = plen; if (plen) { - if (ctx->enc) + if (bctx->enc) ctr = xor128_encrypt_n_pad(out, in, ctr, plen); else ctr = xor128_decrypt_n_pad(out, in, ctr, plen);