jose-browser-runtime
Advanced tools
Comparing version 3.15.3 to 3.15.4
import { JWEInvalid, JOSENotSupported } from '../util/errors.js'; | ||
import { isCryptoKey } from './webcrypto.js'; | ||
const checkCekLength = (enc, cek) => { | ||
@@ -27,3 +28,3 @@ let expected; | ||
} | ||
if (cek.algorithm !== undefined) { | ||
if (isCryptoKey(cek)) { | ||
const { length } = cek.algorithm; | ||
@@ -30,0 +31,0 @@ if (length !== expected) { |
import type { KeyLike } from '../types'; | ||
export interface GenerateKeyPairResult { | ||
privateKey: KeyLike; | ||
publicKey: KeyLike; | ||
privateKey: Exclude<KeyLike, Uint8Array>; | ||
publicKey: Exclude<KeyLike, Uint8Array>; | ||
} | ||
@@ -6,0 +6,0 @@ export interface GenerateKeyPairOptions { |
{ | ||
"name": "jose-browser-runtime", | ||
"version": "3.15.3", | ||
"version": "3.15.4", | ||
"description": "(Browser Runtime) 'JSON Web Almost Everything' - JWA, JWS, JWE, JWT, JWK 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
128006
3210