graphene-pk11
Advanced tools
Comparing version 2.0.21 to 2.0.22
{ | ||
"name": "graphene-pk11", | ||
"version": "2.0.21", | ||
"version": "2.0.22", | ||
"description": "A simple layer for interacting with PKCS #11 / PKCS11 / CryptoKI for Node in TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "./build/graphene.js", |
@@ -44,2 +44,11 @@ const namedCurves: INamedCurve[] = [ | ||
} | ||
static getByBuffer(buf: Buffer): INamedCurve { | ||
for (let i in namedCurves) { | ||
let nc = namedCurves[i]; | ||
if (nc.value.equals(buf)) | ||
return nc; | ||
} | ||
throw new Error(`Can not find named curve by buffer value '${buf.toString("hex")}'`); | ||
} | ||
} |
Sorry, the diff of this file is too big to display
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
325624
7273