Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-aes-gcm

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-aes-gcm - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

build/binding.Makefile

9

package.json
{
"name": "node-aes-gcm",
"version": "0.2.4",
"version": "0.2.5",
"description": "AES GCM module for node.js that takes advantage of GCM authentication",
"main": "build/Release/node_aes_gcm.node",
"engines": {
"node": ">= 0.12"
"node": ">= 6.0.0"
},

@@ -18,4 +18,3 @@ "scripts": {

"should": "13.x.x",
"buffertools": "2.1.x",
"mocha": "4.x.x"
"mocha": "8.x.x"
},

@@ -38,4 +37,4 @@ "keywords": [

"dependencies": {
"nan": "2.8.x"
"nan": "2.14.x"
}
}

@@ -6,3 +6,2 @@ // Test module for node-aes-gcm

require('buffertools');
var fs = require('fs');

@@ -17,5 +16,5 @@ var should = require('should');

decryptedBadAad, decryptedBadAuthTag;
var badCiphertext = new Buffer('Bad ciphertext'),
badAad = new Buffer('Bad AAD'),
badAuthTag = new Buffer('0000000000000000');
var badCiphertext = Buffer.from('Bad ciphertext'),
badAad = Buffer.from('Bad AAD'),
badAuthTag = Buffer.from('0000000000000000');

@@ -103,8 +102,8 @@ function runEncryptDecryptTestCases(nist) {

before(function () {
key = new Buffer('00000000000000000000000000000000', 'hex');
iv = new Buffer('000000000000000000000000', 'hex');
plaintext = new Buffer([]);
aad = new Buffer([]);
ciphertext = new Buffer([]);
auth_tag = new Buffer('58e2fccefa7e3061367f1d57a4e7455a', 'hex');
key = Buffer.from('00000000000000000000000000000000', 'hex');
iv = Buffer.from('000000000000000000000000', 'hex');
plaintext = Buffer.from([]);
aad = Buffer.from([]);
ciphertext = Buffer.from([]);
auth_tag = Buffer.from('58e2fccefa7e3061367f1d57a4e7455a', 'hex');
});

@@ -117,8 +116,8 @@

before(function () {
key = new Buffer('00000000000000000000000000000000', 'hex');
iv = new Buffer('000000000000000000000000', 'hex');
plaintext = new Buffer('00000000000000000000000000000000', 'hex');
aad = new Buffer([]);
ciphertext = new Buffer('0388dace60b6a392f328c2b971b2fe78', 'hex');
auth_tag = new Buffer('ab6e47d42cec13bdf53a67b21257bddf', 'hex');
key = Buffer.from('00000000000000000000000000000000', 'hex');
iv = Buffer.from('000000000000000000000000', 'hex');
plaintext = Buffer.from('00000000000000000000000000000000', 'hex');
aad = Buffer.from([]);
ciphertext = Buffer.from('0388dace60b6a392f328c2b971b2fe78', 'hex');
auth_tag = Buffer.from('ab6e47d42cec13bdf53a67b21257bddf', 'hex');
});

@@ -131,14 +130,14 @@

before(function () {
key = new Buffer('feffe9928665731c6d6a8f9467308308', 'hex');
iv = new Buffer('cafebabefacedbaddecaf888', 'hex');
plaintext = new Buffer('d9313225f88406e5a55909c5aff5269a' +
'86a7a9531534f7da2e4c303d8a318a72' +
'1c3c0c95956809532fcf0e2449a6b525' +
'b16aedf5aa0de657ba637b391aafd255', 'hex');
aad = new Buffer([]);
ciphertext = new Buffer('42831ec2217774244b7221b784d0d49c' +
'e3aa212f2c02a4e035c17e2329aca12e' +
'21d514b25466931c7d8f6a5aac84aa05' +
'1ba30b396a0aac973d58e091473f5985', 'hex');
auth_tag = new Buffer('4d5c2af327cd64a62cf35abd2ba6fab4', 'hex');
key = Buffer.from('feffe9928665731c6d6a8f9467308308', 'hex');
iv = Buffer.from('cafebabefacedbaddecaf888', 'hex');
plaintext = Buffer.from('d9313225f88406e5a55909c5aff5269a' +
'86a7a9531534f7da2e4c303d8a318a72' +
'1c3c0c95956809532fcf0e2449a6b525' +
'b16aedf5aa0de657ba637b391aafd255', 'hex');
aad = Buffer.from([]);
ciphertext = Buffer.from('42831ec2217774244b7221b784d0d49c' +
'e3aa212f2c02a4e035c17e2329aca12e' +
'21d514b25466931c7d8f6a5aac84aa05' +
'1ba30b396a0aac973d58e091473f5985', 'hex');
auth_tag = Buffer.from('4d5c2af327cd64a62cf35abd2ba6fab4', 'hex');
});

@@ -151,14 +150,14 @@

before(function () {
key = new Buffer('feffe9928665731c6d6a8f9467308308', 'hex');
iv = new Buffer('cafebabefacedbaddecaf888', 'hex');
plaintext = new Buffer('d9313225f88406e5a55909c5aff5269a' +
'86a7a9531534f7da2e4c303d8a318a72' +
'1c3c0c95956809532fcf0e2449a6b525' +
'b16aedf5aa0de657ba637b39', 'hex');
aad = new Buffer('feedfacedeadbeeffeedfacedeadbeefabaddad2', 'hex');
ciphertext = new Buffer('42831ec2217774244b7221b784d0d49c' +
'e3aa212f2c02a4e035c17e2329aca12e' +
'21d514b25466931c7d8f6a5aac84aa05' +
'1ba30b396a0aac973d58e091', 'hex');
auth_tag = new Buffer('5bc94fbc3221a5db94fae95ae7121a47', 'hex');
key = Buffer.from('feffe9928665731c6d6a8f9467308308', 'hex');
iv = Buffer.from('cafebabefacedbaddecaf888', 'hex');
plaintext = Buffer.from('d9313225f88406e5a55909c5aff5269a' +
'86a7a9531534f7da2e4c303d8a318a72' +
'1c3c0c95956809532fcf0e2449a6b525' +
'b16aedf5aa0de657ba637b39', 'hex');
aad = Buffer.from('feedfacedeadbeeffeedfacedeadbeefabaddad2', 'hex');
ciphertext = Buffer.from('42831ec2217774244b7221b784d0d49c' +
'e3aa212f2c02a4e035c17e2329aca12e' +
'21d514b25466931c7d8f6a5aac84aa05' +
'1ba30b396a0aac973d58e091', 'hex');
auth_tag = Buffer.from('5bc94fbc3221a5db94fae95ae7121a47', 'hex');
});

@@ -171,14 +170,14 @@

before(function () {
key = new Buffer('feffe9928665731c6d6a8f9467308308', 'hex');
iv = new Buffer('cafebabefacedbad', 'hex');
plaintext = new Buffer('d9313225f88406e5a55909c5aff5269a' +
'86a7a9531534f7da2e4c303d8a318a72' +
'1c3c0c95956809532fcf0e2449a6b525' +
'b16aedf5aa0de657ba637b39', 'hex');
aad = new Buffer('feedfacedeadbeeffeedfacedeadbeefabaddad2', 'hex');
ciphertext = new Buffer('61353b4c2806934a777ff51fa22a4755' +
'699b2a714fcdc6f83766e5f97b6c7423' +
'73806900e49f24b22b097544d4896b42' +
'4989b5e1ebac0f07c23f4598', 'hex');
auth_tag = new Buffer('3612d2e79e3b0785561be14aaca2fccb', 'hex');
key = Buffer.from('feffe9928665731c6d6a8f9467308308', 'hex');
iv = Buffer.from('cafebabefacedbad', 'hex');
plaintext = Buffer.from('d9313225f88406e5a55909c5aff5269a' +
'86a7a9531534f7da2e4c303d8a318a72' +
'1c3c0c95956809532fcf0e2449a6b525' +
'b16aedf5aa0de657ba637b39', 'hex');
aad = Buffer.from('feedfacedeadbeeffeedfacedeadbeefabaddad2', 'hex');
ciphertext = Buffer.from('61353b4c2806934a777ff51fa22a4755' +
'699b2a714fcdc6f83766e5f97b6c7423' +
'73806900e49f24b22b097544d4896b42' +
'4989b5e1ebac0f07c23f4598', 'hex');
auth_tag = Buffer.from('3612d2e79e3b0785561be14aaca2fccb', 'hex');
});

@@ -191,17 +190,17 @@

before(function () {
key = new Buffer('feffe9928665731c6d6a8f9467308308', 'hex');
iv = new Buffer('9313225df88406e555909c5aff5269aa' +
'6a7a9538534f7da1e4c303d2a318a728' +
'c3c0c95156809539fcf0e2429a6b5254' +
'16aedbf5a0de6a57a637b39b', 'hex');
plaintext = new Buffer('d9313225f88406e5a55909c5aff5269a' +
'86a7a9531534f7da2e4c303d8a318a72' +
'1c3c0c95956809532fcf0e2449a6b525' +
'b16aedf5aa0de657ba637b39', 'hex');
aad = new Buffer('feedfacedeadbeeffeedfacedeadbeefabaddad2', 'hex');
ciphertext = new Buffer('8ce24998625615b603a033aca13fb894' +
'be9112a5c3a211a8ba262a3cca7e2ca7' +
'01e4a9a4fba43c90ccdcb281d48c7c6f' +
'd62875d2aca417034c34aee5', 'hex');
auth_tag = new Buffer('619cc5aefffe0bfa462af43c1699d050', 'hex');
key = Buffer.from('feffe9928665731c6d6a8f9467308308', 'hex');
iv = Buffer.from('9313225df88406e555909c5aff5269aa' +
'6a7a9538534f7da1e4c303d2a318a728' +
'c3c0c95156809539fcf0e2429a6b5254' +
'16aedbf5a0de6a57a637b39b', 'hex');
plaintext = Buffer.from('d9313225f88406e5a55909c5aff5269a' +
'86a7a9531534f7da2e4c303d8a318a72' +
'1c3c0c95956809532fcf0e2449a6b525' +
'b16aedf5aa0de657ba637b39', 'hex');
aad = Buffer.from('feedfacedeadbeeffeedfacedeadbeefabaddad2', 'hex');
ciphertext = Buffer.from('8ce24998625615b603a033aca13fb894' +
'be9112a5c3a211a8ba262a3cca7e2ca7' +
'01e4a9a4fba43c90ccdcb281d48c7c6f' +
'd62875d2aca417034c34aee5', 'hex');
auth_tag = Buffer.from('619cc5aefffe0bfa462af43c1699d050', 'hex');
});

@@ -214,9 +213,9 @@

before(function () {
key = new Buffer('00000000000000000000000000000000' +
'0000000000000000', 'hex');
iv = new Buffer('000000000000000000000000', 'hex');
plaintext = new Buffer([]);
aad = new Buffer([]);
ciphertext = new Buffer([]);
auth_tag = new Buffer('cd33b28ac773f74ba00ed1f312572435', 'hex');
key = Buffer.from('00000000000000000000000000000000' +
'0000000000000000', 'hex');
iv = Buffer.from('000000000000000000000000', 'hex');
plaintext = Buffer.from([]);
aad = Buffer.from([]);
ciphertext = Buffer.from([]);
auth_tag = Buffer.from('cd33b28ac773f74ba00ed1f312572435', 'hex');
});

@@ -229,9 +228,9 @@

before(function () {
key = new Buffer('00000000000000000000000000000000' +
'0000000000000000', 'hex');
iv = new Buffer('000000000000000000000000', 'hex');
plaintext = new Buffer('00000000000000000000000000000000', 'hex');
aad = new Buffer([]);
ciphertext = new Buffer('98e7247c07f0fe411c267e4384b0f600', 'hex');
auth_tag = new Buffer('2ff58d80033927ab8ef4d4587514f0fb', 'hex');
key = Buffer.from('00000000000000000000000000000000' +
'0000000000000000', 'hex');
iv = Buffer.from('000000000000000000000000', 'hex');
plaintext = Buffer.from('00000000000000000000000000000000', 'hex');
aad = Buffer.from([]);
ciphertext = Buffer.from('98e7247c07f0fe411c267e4384b0f600', 'hex');
auth_tag = Buffer.from('2ff58d80033927ab8ef4d4587514f0fb', 'hex');
});

@@ -244,15 +243,15 @@

before(function () {
key = new Buffer('feffe9928665731c6d6a8f9467308308' +
'feffe9928665731c', 'hex');
iv = new Buffer('cafebabefacedbaddecaf888', 'hex');
plaintext = new Buffer('d9313225f88406e5a55909c5aff5269a' +
'86a7a9531534f7da2e4c303d8a318a72' +
'1c3c0c95956809532fcf0e2449a6b525' +
'b16aedf5aa0de657ba637b391aafd255', 'hex');
aad = new Buffer([]);
ciphertext = new Buffer('3980ca0b3c00e841eb06fac4872a2757' +
'859e1ceaa6efd984628593b40ca1e19c' +
'7d773d00c144c525ac619d18c84a3f47' +
'18e2448b2fe324d9ccda2710acade256', 'hex');
auth_tag = new Buffer('9924a7c8587336bfb118024db8674a14', 'hex');
key = Buffer.from('feffe9928665731c6d6a8f9467308308' +
'feffe9928665731c', 'hex');
iv = Buffer.from('cafebabefacedbaddecaf888', 'hex');
plaintext = Buffer.from('d9313225f88406e5a55909c5aff5269a' +
'86a7a9531534f7da2e4c303d8a318a72' +
'1c3c0c95956809532fcf0e2449a6b525' +
'b16aedf5aa0de657ba637b391aafd255', 'hex');
aad = Buffer.from([]);
ciphertext = Buffer.from('3980ca0b3c00e841eb06fac4872a2757' +
'859e1ceaa6efd984628593b40ca1e19c' +
'7d773d00c144c525ac619d18c84a3f47' +
'18e2448b2fe324d9ccda2710acade256', 'hex');
auth_tag = Buffer.from('9924a7c8587336bfb118024db8674a14', 'hex');
});

@@ -265,15 +264,15 @@

before(function () {
key = new Buffer('feffe9928665731c6d6a8f9467308308' +
'feffe9928665731c', 'hex');
iv = new Buffer('cafebabefacedbaddecaf888', 'hex');
plaintext = new Buffer('d9313225f88406e5a55909c5aff5269a' +
'86a7a9531534f7da2e4c303d8a318a72' +
'1c3c0c95956809532fcf0e2449a6b525' +
'b16aedf5aa0de657ba637b39', 'hex');
aad = new Buffer('feedfacedeadbeeffeedfacedeadbeefabaddad2','hex');
ciphertext = new Buffer('3980ca0b3c00e841eb06fac4872a2757' +
'859e1ceaa6efd984628593b40ca1e19c' +
'7d773d00c144c525ac619d18c84a3f47' +
'18e2448b2fe324d9ccda2710', 'hex');
auth_tag = new Buffer('2519498e80f1478f37ba55bd6d27618c', 'hex');
key = Buffer.from('feffe9928665731c6d6a8f9467308308' +
'feffe9928665731c', 'hex');
iv = Buffer.from('cafebabefacedbaddecaf888', 'hex');
plaintext = Buffer.from('d9313225f88406e5a55909c5aff5269a' +
'86a7a9531534f7da2e4c303d8a318a72' +
'1c3c0c95956809532fcf0e2449a6b525' +
'b16aedf5aa0de657ba637b39', 'hex');
aad = Buffer.from('feedfacedeadbeeffeedfacedeadbeefabaddad2','hex');
ciphertext = Buffer.from('3980ca0b3c00e841eb06fac4872a2757' +
'859e1ceaa6efd984628593b40ca1e19c' +
'7d773d00c144c525ac619d18c84a3f47' +
'18e2448b2fe324d9ccda2710', 'hex');
auth_tag = Buffer.from('2519498e80f1478f37ba55bd6d27618c', 'hex');
});

@@ -286,15 +285,15 @@

before(function () {
key = new Buffer('feffe9928665731c6d6a8f9467308308' +
'feffe9928665731c', 'hex');
iv = new Buffer('cafebabefacedbad', 'hex');
plaintext = new Buffer('d9313225f88406e5a55909c5aff5269a' +
'86a7a9531534f7da2e4c303d8a318a72' +
'1c3c0c95956809532fcf0e2449a6b525' +
'b16aedf5aa0de657ba637b39', 'hex');
aad = new Buffer('feedfacedeadbeeffeedfacedeadbeefabaddad2','hex');
ciphertext = new Buffer('0f10f599ae14a154ed24b36e25324db8' +
'c566632ef2bbb34f8347280fc4507057' +
'fddc29df9a471f75c66541d4d4dad1c9' +
'e93a19a58e8b473fa0f062f7', 'hex');
auth_tag = new Buffer('65dcc57fcf623a24094fcca40d3533f8', 'hex');
key = Buffer.from('feffe9928665731c6d6a8f9467308308' +
'feffe9928665731c', 'hex');
iv = Buffer.from('cafebabefacedbad', 'hex');
plaintext = Buffer.from('d9313225f88406e5a55909c5aff5269a' +
'86a7a9531534f7da2e4c303d8a318a72' +
'1c3c0c95956809532fcf0e2449a6b525' +
'b16aedf5aa0de657ba637b39', 'hex');
aad = Buffer.from('feedfacedeadbeeffeedfacedeadbeefabaddad2','hex');
ciphertext = Buffer.from('0f10f599ae14a154ed24b36e25324db8' +
'c566632ef2bbb34f8347280fc4507057' +
'fddc29df9a471f75c66541d4d4dad1c9' +
'e93a19a58e8b473fa0f062f7', 'hex');
auth_tag = Buffer.from('65dcc57fcf623a24094fcca40d3533f8', 'hex');
});

@@ -307,18 +306,18 @@

before(function () {
key = new Buffer('feffe9928665731c6d6a8f9467308308' +
'feffe9928665731c', 'hex');
iv = new Buffer('9313225df88406e555909c5aff5269aa' +
'6a7a9538534f7da1e4c303d2a318a728' +
'c3c0c95156809539fcf0e2429a6b5254' +
'16aedbf5a0de6a57a637b39b', 'hex');
plaintext = new Buffer('d9313225f88406e5a55909c5aff5269a' +
'86a7a9531534f7da2e4c303d8a318a72' +
'1c3c0c95956809532fcf0e2449a6b525' +
'b16aedf5aa0de657ba637b39', 'hex');
aad = new Buffer('feedfacedeadbeeffeedfacedeadbeefabaddad2','hex');
ciphertext = new Buffer('d27e88681ce3243c4830165a8fdcf9ff' +
'1de9a1d8e6b447ef6ef7b79828666e45' +
'81e79012af34ddd9e2f037589b292db3' +
'e67c036745fa22e7e9b7373b', 'hex');
auth_tag = new Buffer('dcf566ff291c25bbb8568fc3d376a6d9', 'hex');
key = Buffer.from('feffe9928665731c6d6a8f9467308308' +
'feffe9928665731c', 'hex');
iv = Buffer.from('9313225df88406e555909c5aff5269aa' +
'6a7a9538534f7da1e4c303d2a318a728' +
'c3c0c95156809539fcf0e2429a6b5254' +
'16aedbf5a0de6a57a637b39b', 'hex');
plaintext = Buffer.from('d9313225f88406e5a55909c5aff5269a' +
'86a7a9531534f7da2e4c303d8a318a72' +
'1c3c0c95956809532fcf0e2449a6b525' +
'b16aedf5aa0de657ba637b39', 'hex');
aad = Buffer.from('feedfacedeadbeeffeedfacedeadbeefabaddad2','hex');
ciphertext = Buffer.from('d27e88681ce3243c4830165a8fdcf9ff' +
'1de9a1d8e6b447ef6ef7b79828666e45' +
'81e79012af34ddd9e2f037589b292db3' +
'e67c036745fa22e7e9b7373b', 'hex');
auth_tag = Buffer.from('dcf566ff291c25bbb8568fc3d376a6d9', 'hex');
});

@@ -331,9 +330,9 @@

before(function () {
key = new Buffer('00000000000000000000000000000000' +
'00000000000000000000000000000000', 'hex');
iv = new Buffer('000000000000000000000000', 'hex');
plaintext = new Buffer([]);
aad = new Buffer([]);
ciphertext = new Buffer([]);
auth_tag = new Buffer('530f8afbc74536b9a963b4f1c4cb738b', 'hex');
key = Buffer.from('00000000000000000000000000000000' +
'00000000000000000000000000000000', 'hex');
iv = Buffer.from('000000000000000000000000', 'hex');
plaintext = Buffer.from([]);
aad = Buffer.from([]);
ciphertext = Buffer.from([]);
auth_tag = Buffer.from('530f8afbc74536b9a963b4f1c4cb738b', 'hex');
});

@@ -346,9 +345,9 @@

before(function () {
key = new Buffer('00000000000000000000000000000000' +
'00000000000000000000000000000000', 'hex');
iv = new Buffer('000000000000000000000000', 'hex');
plaintext = new Buffer('00000000000000000000000000000000', 'hex');
aad = new Buffer([]);
ciphertext = new Buffer('cea7403d4d606b6e074ec5d3baf39d18', 'hex');
auth_tag = new Buffer('d0d1c8a799996bf0265b98b5d48ab919', 'hex');
key = Buffer.from('00000000000000000000000000000000' +
'00000000000000000000000000000000', 'hex');
iv = Buffer.from('000000000000000000000000', 'hex');
plaintext = Buffer.from('00000000000000000000000000000000', 'hex');
aad = Buffer.from([]);
ciphertext = Buffer.from('cea7403d4d606b6e074ec5d3baf39d18', 'hex');
auth_tag = Buffer.from('d0d1c8a799996bf0265b98b5d48ab919', 'hex');
});

@@ -361,15 +360,15 @@

before(function () {
key = new Buffer('feffe9928665731c6d6a8f9467308308' +
'feffe9928665731c6d6a8f9467308308', 'hex');
iv = new Buffer('cafebabefacedbaddecaf888', 'hex');
plaintext = new Buffer('d9313225f88406e5a55909c5aff5269a' +
'86a7a9531534f7da2e4c303d8a318a72' +
'1c3c0c95956809532fcf0e2449a6b525' +
'b16aedf5aa0de657ba637b391aafd255', 'hex');
aad = new Buffer([]);
ciphertext = new Buffer('522dc1f099567d07f47f37a32a84427d' +
'643a8cdcbfe5c0c97598a2bd2555d1aa' +
'8cb08e48590dbb3da7b08b1056828838' +
'c5f61e6393ba7a0abcc9f662898015ad', 'hex');
auth_tag = new Buffer('b094dac5d93471bdec1a502270e3cc6c', 'hex');
key = Buffer.from('feffe9928665731c6d6a8f9467308308' +
'feffe9928665731c6d6a8f9467308308', 'hex');
iv = Buffer.from('cafebabefacedbaddecaf888', 'hex');
plaintext = Buffer.from('d9313225f88406e5a55909c5aff5269a' +
'86a7a9531534f7da2e4c303d8a318a72' +
'1c3c0c95956809532fcf0e2449a6b525' +
'b16aedf5aa0de657ba637b391aafd255', 'hex');
aad = Buffer.from([]);
ciphertext = Buffer.from('522dc1f099567d07f47f37a32a84427d' +
'643a8cdcbfe5c0c97598a2bd2555d1aa' +
'8cb08e48590dbb3da7b08b1056828838' +
'c5f61e6393ba7a0abcc9f662898015ad', 'hex');
auth_tag = Buffer.from('b094dac5d93471bdec1a502270e3cc6c', 'hex');
});

@@ -382,15 +381,15 @@

before(function () {
key = new Buffer('feffe9928665731c6d6a8f9467308308' +
'feffe9928665731c6d6a8f9467308308', 'hex');
iv = new Buffer('cafebabefacedbaddecaf888', 'hex');
plaintext = new Buffer('d9313225f88406e5a55909c5aff5269a' +
'86a7a9531534f7da2e4c303d8a318a72' +
'1c3c0c95956809532fcf0e2449a6b525' +
'b16aedf5aa0de657ba637b39', 'hex');
aad = new Buffer('feedfacedeadbeeffeedfacedeadbeefabaddad2','hex');
ciphertext = new Buffer('522dc1f099567d07f47f37a32a84427d' +
'643a8cdcbfe5c0c97598a2bd2555d1aa' +
'8cb08e48590dbb3da7b08b1056828838' +
'c5f61e6393ba7a0abcc9f662', 'hex');
auth_tag = new Buffer('76fc6ece0f4e1768cddf8853bb2d551b', 'hex');
key = Buffer.from('feffe9928665731c6d6a8f9467308308' +
'feffe9928665731c6d6a8f9467308308', 'hex');
iv = Buffer.from('cafebabefacedbaddecaf888', 'hex');
plaintext = Buffer.from('d9313225f88406e5a55909c5aff5269a' +
'86a7a9531534f7da2e4c303d8a318a72' +
'1c3c0c95956809532fcf0e2449a6b525' +
'b16aedf5aa0de657ba637b39', 'hex');
aad = Buffer.from('feedfacedeadbeeffeedfacedeadbeefabaddad2','hex');
ciphertext = Buffer.from('522dc1f099567d07f47f37a32a84427d' +
'643a8cdcbfe5c0c97598a2bd2555d1aa' +
'8cb08e48590dbb3da7b08b1056828838' +
'c5f61e6393ba7a0abcc9f662', 'hex');
auth_tag = Buffer.from('76fc6ece0f4e1768cddf8853bb2d551b', 'hex');
});

@@ -403,15 +402,15 @@

before(function () {
key = new Buffer('feffe9928665731c6d6a8f9467308308' +
'feffe9928665731c6d6a8f9467308308', 'hex');
iv = new Buffer('cafebabefacedbad', 'hex');
plaintext = new Buffer('d9313225f88406e5a55909c5aff5269a' +
'86a7a9531534f7da2e4c303d8a318a72' +
'1c3c0c95956809532fcf0e2449a6b525' +
'b16aedf5aa0de657ba637b39', 'hex');
aad = new Buffer('feedfacedeadbeeffeedfacedeadbeefabaddad2','hex');
ciphertext = new Buffer('c3762df1ca787d32ae47c13bf19844cb' +
'af1ae14d0b976afac52ff7d79bba9de0' +
'feb582d33934a4f0954cc2363bc73f78' +
'62ac430e64abe499f47c9b1f', 'hex');
auth_tag = new Buffer('3a337dbf46a792c45e454913fe2ea8f2', 'hex');
key = Buffer.from('feffe9928665731c6d6a8f9467308308' +
'feffe9928665731c6d6a8f9467308308', 'hex');
iv = Buffer.from('cafebabefacedbad', 'hex');
plaintext = Buffer.from('d9313225f88406e5a55909c5aff5269a' +
'86a7a9531534f7da2e4c303d8a318a72' +
'1c3c0c95956809532fcf0e2449a6b525' +
'b16aedf5aa0de657ba637b39', 'hex');
aad = Buffer.from('feedfacedeadbeeffeedfacedeadbeefabaddad2','hex');
ciphertext = Buffer.from('c3762df1ca787d32ae47c13bf19844cb' +
'af1ae14d0b976afac52ff7d79bba9de0' +
'feb582d33934a4f0954cc2363bc73f78' +
'62ac430e64abe499f47c9b1f', 'hex');
auth_tag = Buffer.from('3a337dbf46a792c45e454913fe2ea8f2', 'hex');
});

@@ -424,18 +423,18 @@

before(function () {
key = new Buffer('feffe9928665731c6d6a8f9467308308' +
'feffe9928665731c6d6a8f9467308308', 'hex');
iv = new Buffer('9313225df88406e555909c5aff5269aa' +
'6a7a9538534f7da1e4c303d2a318a728' +
'c3c0c95156809539fcf0e2429a6b5254' +
'16aedbf5a0de6a57a637b39b', 'hex');
plaintext = new Buffer('d9313225f88406e5a55909c5aff5269a' +
'86a7a9531534f7da2e4c303d8a318a72' +
'1c3c0c95956809532fcf0e2449a6b525' +
'b16aedf5aa0de657ba637b39', 'hex');
aad = new Buffer('feedfacedeadbeeffeedfacedeadbeefabaddad2','hex');
ciphertext = new Buffer('5a8def2f0c9e53f1f75d7853659e2a20' +
'eeb2b22aafde6419a058ab4f6f746bf4' +
'0fc0c3b780f244452da3ebf1c5d82cde' +
'a2418997200ef82e44ae7e3f', 'hex');
auth_tag = new Buffer('a44a8266ee1c8eb0c8b5d4cf5ae9f19a', 'hex');
key = Buffer.from('feffe9928665731c6d6a8f9467308308' +
'feffe9928665731c6d6a8f9467308308', 'hex');
iv = Buffer.from('9313225df88406e555909c5aff5269aa' +
'6a7a9538534f7da1e4c303d2a318a728' +
'c3c0c95156809539fcf0e2429a6b5254' +
'16aedbf5a0de6a57a637b39b', 'hex');
plaintext = Buffer.from('d9313225f88406e5a55909c5aff5269a' +
'86a7a9531534f7da2e4c303d8a318a72' +
'1c3c0c95956809532fcf0e2449a6b525' +
'b16aedf5aa0de657ba637b39', 'hex');
aad = Buffer.from('feedfacedeadbeeffeedfacedeadbeefabaddad2','hex');
ciphertext = Buffer.from('5a8def2f0c9e53f1f75d7853659e2a20' +
'eeb2b22aafde6419a058ab4f6f746bf4' +
'0fc0c3b780f244452da3ebf1c5d82cde' +
'a2418997200ef82e44ae7e3f', 'hex');
auth_tag = Buffer.from('a44a8266ee1c8eb0c8b5d4cf5ae9f19a', 'hex');
});

@@ -448,4 +447,4 @@

before(function (done) {
key = new Buffer('8888888888888888');
iv = new Buffer('666666666666');
key = Buffer.from('8888888888888888');
iv = Buffer.from('666666666666');
fs.readFile('./build/Release/node_aes_gcm.node', function (err, data) {

@@ -456,3 +455,3 @@ if (err) throw err;

});
aad = new Buffer([]);
aad = Buffer.from([]);
ciphertext = null;

@@ -459,0 +458,0 @@ auth_tag = null;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc