@eyhn/crypto
Advanced tools
Comparing version 1.1.2 to 1.1.3
{ | ||
"name": "@eyhn/crypto", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "types": "lib/index.d.ts", |
@@ -5,2 +5,3 @@ import { T1, T2, T3, T4, S } from "./constants"; | ||
export default function aesencrypt(plaintext: ArrayBuffer, roundkey: number[][]): ArrayBuffer { | ||
plaintext = plaintext.slice(0); | ||
if (plaintext.byteLength != 16) { | ||
@@ -7,0 +8,0 @@ throw new Error('invalid plaintext size (must be 16 bytes)'); |
@@ -81,2 +81,3 @@ const K = new Uint32Array([ | ||
export default function sha256(buf: ArrayBuffer): ArrayBuffer { | ||
buf = buf.slice(0); | ||
const state = new Int32Array(8); | ||
@@ -83,0 +84,0 @@ const data = new Uint8Array(buf); |
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
Possible typosquat attack
Supply chain riskThere is a package with a similar name that is downloaded much more often.
Did you mean |
---|
@cosmjs/crypto |
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
147667
1939
0