@eyhn/crypto
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -6,2 +6,3 @@ "use strict"; | ||
function aesencrypt(plaintext, roundkey) { | ||
plaintext = plaintext.slice(0); | ||
if (plaintext.byteLength != 16) { | ||
@@ -8,0 +9,0 @@ throw new Error('invalid plaintext size (must be 16 bytes)'); |
@@ -7,2 +7,3 @@ "use strict"; | ||
function aesctrencrypt(key, plaintext, begin) { | ||
plaintext = plaintext.slice(0); | ||
const roundkey = roundkey_1.aesEncryptionRoundKey(key); | ||
@@ -9,0 +10,0 @@ const encrypted = new Uint8Array(plaintext); |
@@ -70,2 +70,3 @@ "use strict"; | ||
function sha256(buf) { | ||
buf = buf.slice(0); | ||
const state = new Int32Array(8); | ||
@@ -72,0 +73,0 @@ const data = new Uint8Array(buf); |
{ | ||
"name": "@eyhn/crypto", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "types": "lib/index.d.ts", |
@@ -0,0 +0,0 @@ import crypto = require('../lib/'); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
148143
1943