From 5c596222433166a7c0274251cca1e55f3bf9560f Mon Sep 17 00:00:00 2001 From: chux0519 Date: Sun, 4 Nov 2018 00:04:57 -0400 Subject: [PATCH] crypto: add support for chacha20-poly1305 for AEAD MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit openSSL supports AEAD_CHACHA20_POLY1305(rfc7539) since 1.1. PR-URL: https://github.com/nodejs/node/pull/24081 Fixes: https://github.com/nodejs/node/issues/24080 Refs: https://tools.ietf.org/html/rfc7539 Reviewed-By: Ben Noordhuis Reviewed-By: Sam Roberts Reviewed-By: Tobias Nießen --- doc/api/crypto.md | 6 +++ src/node_crypto.cc | 55 ++++++++++++---------- test/fixtures/aead-vectors.js | 37 +++++++++++++++ test/parallel/test-crypto-authenticated.js | 3 +- 4 files changed, 75 insertions(+), 26 deletions(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index d12eb6d1360..81706157e62 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -1382,6 +1382,9 @@ Adversaries][] for details.