summaryrefslogtreecommitdiff
path: root/src/node_crypto.h
diff options
context:
space:
mode:
authorBrian White <mscdex@mscdex.net>2014-03-04 00:05:23 -0500
committerFedor Indutny <fedor.indutny@gmail.com>2014-03-04 12:42:03 +0400
commit31ce34887fc2f5e10d0c1f099e71664370794fec (patch)
tree23e6f34a242e7afd86cdc274b84ee41a984e675b /src/node_crypto.h
parentcaca4f33aad84f71b4f542d1455e954f4dd08313 (diff)
downloadnode-31ce34887fc2f5e10d0c1f099e71664370794fec.tar.gz
crypto: allow setting add'l authenticated data
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r--src/node_crypto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h
index 3fed0d567..cc6706173 100644
--- a/src/node_crypto.h
+++ b/src/node_crypto.h
@@ -356,6 +356,7 @@ class CipherBase : public BaseObject {
bool IsAuthenticatedMode() const;
bool GetAuthTag(char** out, unsigned int* out_len) const;
bool SetAuthTag(const char* data, unsigned int len);
+ bool SetAAD(const char* data, unsigned int len);
static void New(const v8::FunctionCallbackInfo<v8::Value>& args);
static void Init(const v8::FunctionCallbackInfo<v8::Value>& args);
@@ -366,6 +367,7 @@ class CipherBase : public BaseObject {
static void GetAuthTag(const v8::FunctionCallbackInfo<v8::Value>& args);
static void SetAuthTag(const v8::FunctionCallbackInfo<v8::Value>& args);
+ static void SetAAD(const v8::FunctionCallbackInfo<v8::Value>& args);
CipherBase(Environment* env,
v8::Local<v8::Object> wrap,