summaryrefslogtreecommitdiff
path: root/src/node_crypto.h
diff options
context:
space:
mode:
authorTobias Nießen <tniessen@tnie.de>2018-08-26 19:17:09 +0200
committerAnna Henningsen <anna@addaleax.net>2018-09-02 13:56:25 +0200
commitb4026099c3f36aadb5008856e3571f463d52d52a (patch)
tree1a4561c5636fe4e521179f8056d2a92d34a5f81c /src/node_crypto.h
parent594dd4242b99824d44b2b0f17421fa86c10f1d12 (diff)
downloadandroid-node-v8-b4026099c3f36aadb5008856e3571f463d52d52a.tar.gz
android-node-v8-b4026099c3f36aadb5008856e3571f463d52d52a.tar.bz2
android-node-v8-b4026099c3f36aadb5008856e3571f463d52d52a.zip
crypto: improve setAuthTag
This is an attempt to make the behavior of setAuthTag match the documentation: In GCM mode, it can be called at any time before invoking final, even after the last call to update. Fixes: https://github.com/nodejs/node/issues/22421 PR-URL: https://github.com/nodejs/node/pull/22538 Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r--src/node_crypto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h
index 692978412f..86aa3ba4ba 100644
--- a/src/node_crypto.h
+++ b/src/node_crypto.h
@@ -385,6 +385,7 @@ class CipherBase : public BaseObject {
bool IsAuthenticatedMode() const;
bool SetAAD(const char* data, unsigned int len, int plaintext_len);
+ bool MaybePassAuthTagToOpenSSL();
static void New(const v8::FunctionCallbackInfo<v8::Value>& args);
static void Init(const v8::FunctionCallbackInfo<v8::Value>& args);