From c2f18700afe83e0ac30d410e4d3b1b8cfed024f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Fri, 13 Apr 2018 18:02:46 +0200 Subject: [PATCH 1/2] crypto: allow to restrict valid GCM tag length This change allows users to restrict accepted GCM authentication tag lengths to a single value. Fixes: https://github.com/nodejs/node/issues/17523 --- doc/api/crypto.md | 8 ++++- src/node_crypto.cc | 26 +++++++++++++-- src/node_crypto.h | 4 +-- test/parallel/test-crypto-authenticated.js | 37 ++++++++++++++++++++++ 4 files changed, 69 insertions(+), 6 deletions(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index b4ff52d89d6181..d42d396fb9b19d 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -1457,6 +1457,10 @@ to create the `Decipher` object.