Comparing version 2.1.1 to 2.1.2
@@ -124,8 +124,6 @@ const { parentPort, Worker, isMainThread } = require('worker_threads') | ||
const t2 = methods.hmac('sha384', preAuth, ak) | ||
if (!timingSafeEqual(t, t2)) return false | ||
const payload = methods.decrypt('aes-256-ctr', c, ek, n.slice(16)) | ||
if (!payload) return false | ||
if (!timingSafeEqual(t, t2) || !payload) { | ||
return false | ||
} | ||
return payload | ||
@@ -132,0 +130,0 @@ }, |
@@ -33,3 +33,3 @@ const { | ||
if (complete) { | ||
return { payload: m, footer, version: 'v2', purpose: 'public' } | ||
return { payload: m, footer, version: 'v1', purpose: 'public' } | ||
} | ||
@@ -36,0 +36,0 @@ |
{ | ||
"name": "paseto", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "PASETO for Node.js with no dependencies", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
50797
35
1258