@sphereon/ssi-sdk-ext.key-utils
Advanced tools
Comparing version 0.26.1-feature.OIDF.69.68 to 0.26.1-feature.OIDF.69.80
@@ -681,3 +681,3 @@ "use strict"; | ||
return __awaiter(this, arguments, void 0, function* ({ data, signature, key: inputKey, opts, }) { | ||
var _b; | ||
var _b, _c; | ||
/** | ||
@@ -717,3 +717,3 @@ * Converts a Base64URL-encoded JWK property to a BigInt. | ||
case 'RSA': { | ||
const signatureAlgorithm = (_b = opts === null || opts === void 0 ? void 0 : opts.signatureAlg) !== null && _b !== void 0 ? _b : ssi_types_1.JoseSignatureAlgorithm.PS256; | ||
const signatureAlgorithm = (_c = (_b = opts === null || opts === void 0 ? void 0 : opts.signatureAlg) !== null && _b !== void 0 ? _b : jwk.alg) !== null && _c !== void 0 ? _c : ssi_types_1.JoseSignatureAlgorithm.PS256; | ||
const hashAlg = signatureAlgorithm === (ssi_types_1.JoseSignatureAlgorithm.RS512 || ssi_types_1.JoseSignatureAlgorithm.PS512) | ||
@@ -720,0 +720,0 @@ ? sha512_1.sha512 |
{ | ||
"name": "@sphereon/ssi-sdk-ext.key-utils", | ||
"description": "Sphereon SSI-SDK plugin for key creation.", | ||
"version": "0.26.1-feature.OIDF.69.68+f67be2d", | ||
"version": "0.26.1-feature.OIDF.69.80+8f9e94e", | ||
"source": "src/index.ts", | ||
@@ -16,3 +16,3 @@ "main": "dist/index.js", | ||
"@noble/hashes": "1.6.1", | ||
"@sphereon/ssi-sdk-ext.x509-utils": "0.26.1-feature.OIDF.69.68+f67be2d", | ||
"@sphereon/ssi-sdk-ext.x509-utils": "0.26.1-feature.OIDF.69.80+8f9e94e", | ||
"@sphereon/ssi-types": "0.30.2-feature.SDK.41.oidf.support.286", | ||
@@ -54,3 +54,3 @@ "@stablelib/ed25519": "^1.0.3", | ||
], | ||
"gitHead": "f67be2dd8d9f1ee8de699f73e379eeddcac05864" | ||
"gitHead": "8f9e94ec0082daf4bc322df75ae516e66a06c35b" | ||
} |
@@ -805,3 +805,3 @@ import { randomBytes } from '@ethersproject/random' | ||
case 'RSA': { | ||
const signatureAlgorithm = opts?.signatureAlg ?? JoseSignatureAlgorithm.PS256 | ||
const signatureAlgorithm = opts?.signatureAlg ?? jwk.alg as JoseSignatureAlgorithm | undefined ?? JoseSignatureAlgorithm.PS256 | ||
const hashAlg = | ||
@@ -808,0 +808,0 @@ signatureAlgorithm === (JoseSignatureAlgorithm.RS512 || JoseSignatureAlgorithm.PS512) |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
177619