From 54f327b4dcb37f373bc4146686c7e4edcd9c524d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sun, 8 Sep 2019 04:41:04 +0200 Subject: [PATCH] crypto: add oaepLabel option The label acts as the "L" input to the RSA-OAEP algorithm. PR-URL: https://github.com/nodejs/node/pull/29489 Reviewed-By: David Carlier Reviewed-By: Ben Noordhuis Reviewed-By: Minwoo Jung Reviewed-By: James M Snell --- doc/api/crypto.md | 10 ++++ lib/internal/crypto/cipher.js | 10 +++- src/node_crypto.cc | 20 ++++++++ src/node_crypto.h | 2 + test/fixtures/rsa-oaep-test-vectors.js | 30 ++++++++++++ test/parallel/test-crypto-rsa-dsa.js | 65 ++++++++------------------ 6 files changed, 89 insertions(+), 48 deletions(-) create mode 100644 test/fixtures/rsa-oaep-test-vectors.js diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 137d6e0508a33e..ca2e02d190bb80 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -2383,6 +2383,9 @@ An array of supported digest functions can be retrieved using