@aws-crypto/material-management-browser
Advanced tools
Comparing version 3.0.2 to 3.1.0
@@ -18,4 +18,4 @@ "use strict"; | ||
/* Precondition: keyrings must be a KeyringWebCrypto. */ | ||
material_management_1.needs(keyring instanceof material_management_1.KeyringWebCrypto, 'Unsupported type.'); | ||
material_management_1.readOnlyProperty(this, 'keyring', keyring); | ||
(0, material_management_1.needs)(keyring instanceof material_management_1.KeyringWebCrypto, 'Unsupported type.'); | ||
(0, material_management_1.readOnlyProperty)(this, 'keyring', keyring); | ||
} | ||
@@ -32,3 +32,3 @@ async getEncryptionMaterials({ suite, encryptionContext, commitmentPolicy, }) { | ||
*/ | ||
material_management_1.needs(!Object.prototype.hasOwnProperty.call(encryptionContext, serialize_1.ENCODED_SIGNER_KEY), `Reserved encryptionContext value ${serialize_1.ENCODED_SIGNER_KEY} not allowed.`); | ||
(0, material_management_1.needs)(!Object.prototype.hasOwnProperty.call(encryptionContext, serialize_1.ENCODED_SIGNER_KEY), `Reserved encryptionContext value ${serialize_1.ENCODED_SIGNER_KEY} not allowed.`); | ||
const material = await this.keyring.onEncrypt(await this._initializeEncryptionMaterial(suite, encryptionContext)); | ||
@@ -40,5 +40,5 @@ /* Postcondition: The WebCryptoEncryptionMaterial must contain a valid dataKey. | ||
*/ | ||
material_management_1.needs(material.hasValidKey(), 'Unencrypted data key is invalid.'); | ||
(0, material_management_1.needs)(material.hasValidKey(), 'Unencrypted data key is invalid.'); | ||
/* Postcondition: The WebCryptoEncryptionMaterial must contain at least 1 EncryptedDataKey. */ | ||
material_management_1.needs(material.encryptedDataKeys.length, 'No EncryptedDataKeys: the ciphertext can never be decrypted.'); | ||
(0, material_management_1.needs)(material.encryptedDataKeys.length, 'No EncryptedDataKeys: the ciphertext can never be decrypted.'); | ||
return material; | ||
@@ -54,3 +54,3 @@ } | ||
*/ | ||
material_management_1.needs(material.hasValidKey(), 'Unencrypted data key is invalid.'); | ||
(0, material_management_1.needs)(material.hasValidKey(), 'Unencrypted data key is invalid.'); | ||
return material; | ||
@@ -63,4 +63,4 @@ } | ||
return new material_management_1.WebCryptoEncryptionMaterial(suite, encryptionContext); | ||
const backend = await web_crypto_backend_1.getWebCryptoBackend(); | ||
const subtle = web_crypto_backend_1.getNonZeroByteBackend(backend); | ||
const backend = await (0, web_crypto_backend_1.getWebCryptoBackend)(); | ||
const subtle = (0, web_crypto_backend_1.getNonZeroByteBackend)(backend); | ||
const webCryptoAlgorithm = { name: 'ECDSA', namedCurve }; | ||
@@ -76,3 +76,3 @@ const extractable = false; | ||
...encryptionContext, | ||
[serialize_1.ENCODED_SIGNER_KEY]: util_base64_browser_1.toBase64(compressPoint), | ||
[serialize_1.ENCODED_SIGNER_KEY]: (0, util_base64_browser_1.toBase64)(compressPoint), | ||
}).setSignatureKey(signatureKey); | ||
@@ -85,3 +85,3 @@ } | ||
/* Precondition: The context must not contain a public key for a non-signing algorithm suite. */ | ||
material_management_1.needs(!Object.prototype.hasOwnProperty.call(encryptionContext, serialize_1.ENCODED_SIGNER_KEY), 'Encryption context contains public verification key for unsigned algorithm suite.'); | ||
(0, material_management_1.needs)(!Object.prototype.hasOwnProperty.call(encryptionContext, serialize_1.ENCODED_SIGNER_KEY), 'Encryption context contains public verification key for unsigned algorithm suite.'); | ||
return new material_management_1.WebCryptoDecryptionMaterial(suite, encryptionContext); | ||
@@ -94,5 +94,5 @@ } | ||
/* Precondition: WebCryptoDefaultCryptographicMaterialsManager The context must contain the public key. */ | ||
material_management_1.needs(compressPoint, 'Context does not contain required public key.'); | ||
const backend = await web_crypto_backend_1.getWebCryptoBackend(); | ||
const subtle = web_crypto_backend_1.getNonZeroByteBackend(backend); | ||
(0, material_management_1.needs)(compressPoint, 'Context does not contain required public key.'); | ||
const backend = await (0, web_crypto_backend_1.getWebCryptoBackend)(); | ||
const subtle = (0, web_crypto_backend_1.getNonZeroByteBackend)(backend); | ||
const webCryptoAlgorithm = { name: 'ECDSA', namedCurve }; | ||
@@ -102,3 +102,3 @@ const extractable = false; | ||
const format = 'raw'; | ||
const publicKeyBytes = material_management_1.VerificationKey.decodeCompressPoint(util_base64_browser_1.fromBase64(compressPoint), suite); | ||
const publicKeyBytes = material_management_1.VerificationKey.decodeCompressPoint((0, util_base64_browser_1.fromBase64)(compressPoint), suite); | ||
const publicKey = await subtle.importKey(format, publicKeyBytes, webCryptoAlgorithm, extractable, usages); | ||
@@ -109,3 +109,3 @@ return new material_management_1.WebCryptoDecryptionMaterial(suite, encryptionContext).setVerificationKey(new material_management_1.VerificationKey(publicKey, suite)); | ||
exports.WebCryptoDefaultCryptographicMaterialsManager = WebCryptoDefaultCryptographicMaterialsManager; | ||
material_management_1.immutableBaseClass(WebCryptoDefaultCryptographicMaterialsManager); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvd3Nlcl9jcnlwdG9ncmFwaGljX21hdGVyaWFsc19tYW5hZ2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2Jyb3dzZXJfY3J5cHRvZ3JhcGhpY19tYXRlcmlhbHNfbWFuYWdlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0VBQW9FO0FBQ3BFLHNDQUFzQzs7O0FBRXRDLHlFQW1Cd0M7QUFFeEMscURBQTBEO0FBQzFELHVFQUd1QztBQUN2QyxzRUFBbUU7QUFXbkU7Ozs7R0FJRztBQUNILE1BQWEsNkNBQTZDO0lBSXhELFlBQVksT0FBeUI7UUFDbkMsd0RBQXdEO1FBQ3hELDJCQUFLLENBQUMsT0FBTyxZQUFZLHNDQUFnQixFQUFFLG1CQUFtQixDQUFDLENBQUE7UUFDL0Qsc0NBQWdCLENBQUMsSUFBSSxFQUFFLFNBQVMsRUFBRSxPQUFPLENBQUMsQ0FBQTtJQUM1QyxDQUFDO0lBQ0QsS0FBSyxDQUFDLHNCQUFzQixDQUFDLEVBQzNCLEtBQUssRUFDTCxpQkFBaUIsRUFDakIsZ0J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BQ0QsTUFBTSxTQUFTLEdBQUcsTUFBTSxNQUFNLENBQUMsU0FBUyxDQUN0QyxNQUFNLEVBQ04sY0FBYyxFQUNkLGtCQUFrQixFQUNsQixXQUFXLEVBQ1gsTUFBTSxDQUNQLENBQUE7UUFFRCxPQUFPLElBQUksaURBQTJCLENBQ3BDLEtBQUssRUFDTCxpQkFBaUIsQ0FDbEIsQ0FBQyxrQkFBa0IsQ0FBQyxJQUFJLHFDQUFlLENBQUMsU0FBUyxFQUFFLEtBQUssQ0FBQyxDQUFDLENBQUE7SUFDN0QsQ0FBQztDQUNGO0FBdEtELHNHQXNLQztBQUVELElBQUEsd0NBQWtCLEVBQUMsNkNBQTZDLENBQUMsQ0FBQSJ9 |
@@ -9,3 +9,3 @@ "use strict"; | ||
// See https://tools.ietf.org/html/rfc7515#appendix-C Base64url Encoding | ||
const base64 = util_base64_browser_1.toBase64(rawKeyBytes); | ||
const base64 = (0, util_base64_browser_1.toBase64)(rawKeyBytes); | ||
const base64Url = base64 | ||
@@ -21,2 +21,2 @@ .replace(/\+/g, '-') | ||
exports.bytes2JWK = bytes2JWK; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnl0ZXMyX2p3ay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9ieXRlczJfandrLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvRUFBb0U7QUFDcEUsc0NBQXNDOzs7QUFFdEMsc0VBQXVEO0FBRXZELFNBQWdCLFNBQVMsQ0FBQyxXQUF1QjtJQUMvQyx3RUFBd0U7SUFDeEUsTUFBTSxNQUFNLEdBQUcsOEJBQVEsQ0FBQyxXQUFXLENBQUMsQ0FBQTtJQUNwQyxNQUFNLFNBQVMsR0FBRyxNQUFNO1NBQ3JCLE9BQU8sQ0FBQyxLQUFLLEVBQUUsR0FBRyxDQUFDO1NBQ25CLE9BQU8sQ0FBQyxLQUFLLEVBQUUsR0FBRyxDQUFDO1NBQ25CLE9BQU8sQ0FBQyxJQUFJLEVBQUUsRUFBRSxDQUFDLENBQUE7SUFDcEIsT0FBTztRQUNMLEdBQUcsRUFBRSxLQUFLO1FBQ1YsQ0FBQyxFQUFFLFNBQVM7S0FDYixDQUFBO0FBQ0gsQ0FBQztBQVhELDhCQVdDIn0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnl0ZXMyX2p3ay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9ieXRlczJfandrLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvRUFBb0U7QUFDcEUsc0NBQXNDOzs7QUFFdEMsc0VBQXVEO0FBRXZELFNBQWdCLFNBQVMsQ0FBQyxXQUF1QjtJQUMvQyx3RUFBd0U7SUFDeEUsTUFBTSxNQUFNLEdBQUcsSUFBQSw4QkFBUSxFQUFDLFdBQVcsQ0FBQyxDQUFBO0lBQ3BDLE1BQU0sU0FBUyxHQUFHLE1BQU07U0FDckIsT0FBTyxDQUFDLEtBQUssRUFBRSxHQUFHLENBQUM7U0FDbkIsT0FBTyxDQUFDLEtBQUssRUFBRSxHQUFHLENBQUM7U0FDbkIsT0FBTyxDQUFDLElBQUksRUFBRSxFQUFFLENBQUMsQ0FBQTtJQUNwQixPQUFPO1FBQ0wsR0FBRyxFQUFFLEtBQUs7UUFDVixDQUFDLEVBQUUsU0FBUztLQUNiLENBQUE7QUFDSCxDQUFDO0FBWEQsOEJBV0MifQ== |
@@ -32,4 +32,4 @@ "use strict"; | ||
async function importCryptoKeyToMaterial(material) { | ||
const backend = await web_crypto_backend_1.getWebCryptoBackend(); | ||
const cryptoKey = await material_helpers_1.importCryptoKey(backend, material); | ||
const backend = await (0, web_crypto_backend_1.getWebCryptoBackend)(); | ||
const cryptoKey = await (0, material_helpers_1.importCryptoKey)(backend, material); | ||
// The trace is only set when the material does not already have | ||
@@ -41,2 +41,2 @@ // an hasUnencryptedDataKey. This is an implementation detail :( | ||
exports.importCryptoKeyToMaterial = importCryptoKeyToMaterial; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2V5cmluZ19oZWxwZXJzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2tleXJpbmdfaGVscGVycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0VBQW9FO0FBQ3BFLHNDQUFzQzs7O0FBUXRDLHlEQUFvRDtBQUVwRCx1RUFBb0U7QUFFN0QsS0FBSyxVQUFVLG9DQUFvQyxDQUN4RCxRQUFxQztJQUVyQywyR0FBMkc7SUFDM0csSUFBSSxRQUFRLENBQUMscUJBQXFCLElBQUksUUFBUSxDQUFDLFlBQVk7UUFBRSxPQUFPLFFBQVEsQ0FBQTtJQUU1RSxPQUFPLHlCQUF5QixDQUFDLFFBQVEsQ0FBQyxDQUFBO0FBQzVDLENBQUM7QUFQRCxvRkFPQztBQUVNLEtBQUssVUFBVSxvQ0FBb0MsQ0FDeEQsUUFBcUM7SUFFckMsMkdBQTJHO0lBQzNHLElBQUksUUFBUSxDQUFDLFdBQVcsRUFBRTtRQUFFLE9BQU8sUUFBUSxDQUFBO0lBQzNDLHlGQUF5RjtJQUN6RixJQUFJLENBQUMsUUFBUSxDQUFDLHFCQUFxQjtRQUFFLE9BQU8sUUFBUSxDQUFBO0lBRXBELE9BQU8sQ0FDTCxDQUFDLE1BQU0seUJBQXlCLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDekM7Ozs7V0FJRztTQUNGLHNCQUFzQixFQUFFLENBQzVCLENBQUE7QUFDSCxDQUFDO0FBakJELG9GQWlCQztBQUVNLEtBQUssVUFBVSx5QkFBeUIsQ0FDN0MsUUFBVztJQUVYLE1BQU0sT0FBTyxHQUFHLE1BQU0s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FDTCxDQUFDLE1BQU0seUJBQXlCLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDekM7Ozs7V0FJRztTQUNGLHNCQUFzQixFQUFFLENBQzVCLENBQUE7QUFDSCxDQUFDO0FBakJELG9GQWlCQztBQUVNLEtBQUssVUFBVSx5QkFBeUIsQ0FDN0MsUUFBVztJQUVYLE1BQU0sT0FBTyxHQUFHLE1BQU0sSUFBQSx3Q0FBbUIsR0FBRSxDQUFBO0lBQzNDLE1BQU0sU0FBUyxHQUFHLE1BQU0sSUFBQSxrQ0FBZSxFQUFDLE9BQU8sRUFBRSxRQUFRLENBQUMsQ0FBQTtJQUMxRCxnRUFBZ0U7SUFDaEUsaUVBQWlFO0lBQ2pFLE1BQU0sQ0FBQyxLQUFLLENBQUMsR0FBRyxRQUFRLENBQUMsWUFBWSxDQUFBO0lBQ3JDLE9BQU8sUUFBUSxDQUFDLFlBQVksQ0FBQyxTQUFTLEVBQUUsS0FBSyxDQUFDLENBQUE7QUFDaEQsQ0FBQztBQVRELDhEQVNDIn0= |
@@ -11,5 +11,5 @@ "use strict"; | ||
const getEncryptHelper = async (material) => { | ||
const backend = await web_crypto_backend_1.getWebCryptoBackend(); | ||
const backend = await (0, web_crypto_backend_1.getWebCryptoBackend)(); | ||
/* Precondition: WebCryptoEncryptionMaterial must have a valid data key. */ | ||
material_management_1.needs(material.hasValidKey(), 'Material has no CryptoKey.'); | ||
(0, material_management_1.needs)(material.hasValidKey(), 'Material has no CryptoKey.'); | ||
const { signatureHash } = material.suite; | ||
@@ -29,6 +29,6 @@ const getEncryptInfo = currySubtleFunction(material, backend, 'encrypt'); | ||
const { privateKey } = signatureKey; | ||
if (!material_management_1.isCryptoKey(privateKey)) | ||
if (!(0, material_management_1.isCryptoKey)(privateKey)) | ||
throw new Error('Malformed Material.'); | ||
const algorithm = { name: 'ECDSA', hash: { name: signatureHash } }; | ||
return web_crypto_backend_1.getNonZeroByteBackend(backend).sign(algorithm, privateKey, data); | ||
return (0, web_crypto_backend_1.getNonZeroByteBackend)(backend).sign(algorithm, privateKey, data); | ||
} | ||
@@ -41,5 +41,5 @@ function dispose() { | ||
const getDecryptionHelper = async (material) => { | ||
const backend = await web_crypto_backend_1.getWebCryptoBackend(); | ||
const backend = await (0, web_crypto_backend_1.getWebCryptoBackend)(); | ||
/* Precondition: WebCryptoDecryptionMaterial must have a valid data key. */ | ||
material_management_1.needs(material.hasValidKey(), 'Material has no valid data key.'); | ||
(0, material_management_1.needs)(material.hasValidKey(), 'Material has no valid data key.'); | ||
const { signatureHash } = material.suite; | ||
@@ -59,6 +59,6 @@ const getDecryptInfo = currySubtleFunction(material, backend, 'decrypt'); | ||
const { publicKey } = verificationKey; | ||
if (!material_management_1.isCryptoKey(publicKey)) | ||
if (!(0, material_management_1.isCryptoKey)(publicKey)) | ||
throw new Error('Malformed Material.'); | ||
const algorithm = { name: 'ECDSA', hash: { name: signatureHash } }; | ||
return web_crypto_backend_1.getNonZeroByteBackend(backend).verify(algorithm, publicKey, signature, data); | ||
return (0, web_crypto_backend_1.getNonZeroByteBackend)(backend).verify(algorithm, publicKey, signature, data); | ||
} | ||
@@ -72,6 +72,6 @@ function dispose() { | ||
/* Precondition: The material must have a CryptoKey. */ | ||
material_management_1.needs(material.hasCryptoKey, 'Material must have a CryptoKey.'); | ||
(0, material_management_1.needs)(material.hasCryptoKey, 'Material must have a CryptoKey.'); | ||
const cryptoKey = material.getCryptoKey(); | ||
/* Precondition: The cryptoKey and backend must match in terms of Mixed vs Full support. */ | ||
material_management_1.needs(material_management_1.isCryptoKey(cryptoKey) === web_crypto_backend_1.isFullSupportWebCryptoBackend(backend), 'CryptoKey vs WebCrypto backend mismatch.'); | ||
(0, material_management_1.needs)((0, material_management_1.isCryptoKey)(cryptoKey) === (0, web_crypto_backend_1.isFullSupportWebCryptoBackend)(backend), 'CryptoKey vs WebCrypto backend mismatch.'); | ||
const { suite } = material; | ||
@@ -90,7 +90,7 @@ const { encryption: cipherName, ivLength, tagLength } = suite; | ||
*/ | ||
const { deriveKey, keyCommitment } = material_management_1.isCryptoKey(cryptoKey) | ||
? await WebCryptoKdf(web_crypto_backend_1.getNonZeroByteBackend(backend), material, cryptoKey, [subtleFunctionName], messageId, commitKey) | ||
const { deriveKey, keyCommitment } = (0, material_management_1.isCryptoKey)(cryptoKey) | ||
? await WebCryptoKdf((0, web_crypto_backend_1.getNonZeroByteBackend)(backend), material, cryptoKey, [subtleFunctionName], messageId, commitKey) | ||
: await Promise.all([ | ||
WebCryptoKdf(web_crypto_backend_1.getNonZeroByteBackend(backend), material, cryptoKey.nonZeroByteCryptoKey, [subtleFunctionName], messageId, commitKey), | ||
WebCryptoKdf(web_crypto_backend_1.getZeroByteSubtle(backend), material, cryptoKey.zeroByteCryptoKey, [subtleFunctionName], messageId, commitKey), | ||
WebCryptoKdf((0, web_crypto_backend_1.getNonZeroByteBackend)(backend), material, cryptoKey.nonZeroByteCryptoKey, [subtleFunctionName], messageId, commitKey), | ||
WebCryptoKdf((0, web_crypto_backend_1.getZeroByteSubtle)(backend), material, cryptoKey.zeroByteCryptoKey, [subtleFunctionName], messageId, commitKey), | ||
]).then(([nonZeroByteCryptoKey, zeroByteCryptoKey]) => ({ | ||
@@ -112,5 +112,5 @@ deriveKey: { | ||
/* Precondition: The length of the IV must match the WebCryptoAlgorithmSuite specification. */ | ||
material_management_1.needs(iv.byteLength === ivLength, 'Iv length does not match algorithm suite specification'); | ||
(0, material_management_1.needs)(iv.byteLength === ivLength, 'Iv length does not match algorithm suite specification'); | ||
return async (data) => { | ||
if (material_management_1.isCryptoKey(deriveKey) && web_crypto_backend_1.isFullSupportWebCryptoBackend(backend)) { | ||
if ((0, material_management_1.isCryptoKey)(deriveKey) && (0, web_crypto_backend_1.isFullSupportWebCryptoBackend)(backend)) { | ||
const { subtle } = backend; | ||
@@ -120,4 +120,4 @@ const algorithm = { name: cipherName, iv, additionalData, tagLength }; | ||
} | ||
else if (!material_management_1.isCryptoKey(deriveKey) && | ||
!web_crypto_backend_1.isFullSupportWebCryptoBackend(backend)) { | ||
else if (!(0, material_management_1.isCryptoKey)(deriveKey) && | ||
!(0, web_crypto_backend_1.isFullSupportWebCryptoBackend)(backend)) { | ||
const { nonZeroByteSubtle, zeroByteSubtle } = backend; | ||
@@ -133,3 +133,3 @@ const { nonZeroByteCryptoKey, zeroByteCryptoKey } = deriveKey; | ||
: data.byteLength; | ||
material_management_1.needs(dataByteLength >= 0, 'Invalid data length.'); | ||
(0, material_management_1.needs)(dataByteLength >= 0, 'Invalid data length.'); | ||
if (dataByteLength === 0) { | ||
@@ -163,3 +163,3 @@ return zeroByteSubtle[subtleFunctionName](algorithm, zeroByteCryptoKey, data); | ||
/* Postcondition: The derived key must conform to the algorith suite specification. */ | ||
material_management_1.needs(material_management_1.isValidCryptoKey(deriveKey, material), 'Invalid derived key'); | ||
(0, material_management_1.needs)((0, material_management_1.isValidCryptoKey)(deriveKey, material), 'Invalid derived key'); | ||
return { deriveKey, keyCommitment }; | ||
@@ -171,7 +171,7 @@ } | ||
/* Precondition: Valid HKDF values must exist for browsers. */ | ||
material_management_1.needs(kdf === 'HKDF' && kdfHash && nonce instanceof Uint8Array, 'Invalid HKDF values.'); | ||
(0, material_management_1.needs)(kdf === 'HKDF' && kdfHash && nonce instanceof Uint8Array, 'Invalid HKDF values.'); | ||
if (suite.commitment === 'NONE') { | ||
/* Precondition: The message ID length must match the specification. */ | ||
material_management_1.needs(nonce.byteLength === serialize_1.MessageIdLength.V1, 'Message id length does not match specification.'); | ||
const info = serialize_1.kdfInfo(suite.id, nonce); | ||
(0, material_management_1.needs)(nonce.byteLength === serialize_1.MessageIdLength.V1, 'Message id length does not match specification.'); | ||
const info = (0, serialize_1.kdfInfo)(suite.id, nonce); | ||
// https://developer.mozilla.org/en-US/docs/Web/API/HkdfParams | ||
@@ -186,3 +186,3 @@ return { | ||
/* Precondition UNTESTED: The suite must be well structured. */ | ||
material_management_1.needs(suite.commitment === 'KEY' && commitmentLength && saltLengthBytes, 'Malformed suite data.'); | ||
(0, material_management_1.needs)(suite.commitment === 'KEY' && commitmentLength && saltLengthBytes, 'Malformed suite data.'); | ||
/* Precondition: The message id length must match the algorithm suite. | ||
@@ -192,4 +192,4 @@ * I am using the message id here, | ||
*/ | ||
material_management_1.needs(nonce.byteLength === saltLengthBytes, 'Message id length does not match specification.'); | ||
const { keyLabel: info } = serialize_1.kdfCommitKeyInfo(suite); | ||
(0, material_management_1.needs)(nonce.byteLength === saltLengthBytes, 'Message id length does not match specification.'); | ||
const { keyLabel: info } = (0, serialize_1.kdfCommitKeyInfo)(suite); | ||
const salt = nonce; | ||
@@ -211,12 +211,12 @@ // https://developer.mozilla.org/en-US/docs/Web/API/HkdfParams | ||
/* Postcondition: Non-committing WebCrypto algorithm suites *must* not have a commitment. */ | ||
material_management_1.needs(!commitKey, 'Commitment not supported.'); | ||
(0, material_management_1.needs)(!commitKey, 'Commitment not supported.'); | ||
return; | ||
} | ||
/* Precondition UNTESTED: Only support key commitment. */ | ||
material_management_1.needs(commitment === 'KEY' && commitmentLength && saltLengthBytes, 'Malformed suite data.'); | ||
(0, material_management_1.needs)(commitment === 'KEY' && commitmentLength && saltLengthBytes, 'Malformed suite data.'); | ||
/* Precondition: Commit key requires 256 bits of entropy. */ | ||
material_management_1.needs(nonce.byteLength === saltLengthBytes, 'Nonce is not the correct length for committed algorithm suite.'); | ||
(0, material_management_1.needs)(nonce.byteLength === saltLengthBytes, 'Nonce is not the correct length for committed algorithm suite.'); | ||
/* Precondition UNTESTED: Valid HKDF values must exist for commit key. */ | ||
material_management_1.needs(kdf === 'HKDF' && kdfHash && nonce instanceof Uint8Array, 'Invalid HKDF values.'); | ||
const { commitLabel: info } = serialize_1.kdfCommitKeyInfo(material.suite); | ||
(0, material_management_1.needs)(kdf === 'HKDF' && kdfHash && nonce instanceof Uint8Array, 'Invalid HKDF values.'); | ||
const { commitLabel: info } = (0, serialize_1.kdfCommitKeyInfo)(material.suite); | ||
/* In a more perfect world, | ||
@@ -267,3 +267,3 @@ * I would use `deriveBits`. | ||
*/ | ||
material_management_1.needs((isDecrypt && | ||
(0, material_management_1.needs)((isDecrypt && | ||
commitKey && | ||
@@ -275,4 +275,4 @@ portableTimingSafeEqual(commitKey, keyCommitment)) || | ||
exports.deriveKeyCommitment = deriveKeyCommitment; | ||
async function importCryptoKey(backend, material, keyUsages = [material_management_1.keyUsageForMaterial(material)]) { | ||
if (web_crypto_backend_1.isFullSupportWebCryptoBackend(backend)) { | ||
async function importCryptoKey(backend, material, keyUsages = [(0, material_management_1.keyUsageForMaterial)(material)]) { | ||
if ((0, web_crypto_backend_1.isFullSupportWebCryptoBackend)(backend)) { | ||
return _importCryptoKey(backend.subtle, material, keyUsages); | ||
@@ -282,4 +282,4 @@ } | ||
return Promise.all([ | ||
_importCryptoKey(web_crypto_backend_1.getNonZeroByteBackend(backend), material, keyUsages), | ||
_importCryptoKey(web_crypto_backend_1.getZeroByteSubtle(backend), material, keyUsages), | ||
_importCryptoKey((0, web_crypto_backend_1.getNonZeroByteBackend)(backend), material, keyUsages), | ||
_importCryptoKey((0, web_crypto_backend_1.getZeroByteSubtle)(backend), material, keyUsages), | ||
]).then(([nonZeroByteCryptoKey, zeroByteCryptoKey]) => ({ | ||
@@ -292,6 +292,6 @@ nonZeroByteCryptoKey, | ||
exports.importCryptoKey = importCryptoKey; | ||
async function _importCryptoKey(subtle, material, keyUsages = [material_management_1.keyUsageForMaterial(material)]) { | ||
async function _importCryptoKey(subtle, material, keyUsages = [(0, material_management_1.keyUsageForMaterial)(material)]) { | ||
const { suite } = material; | ||
const extractable = false; | ||
const udk = material_management_1.unwrapDataKey(material.getUnencryptedDataKey()); | ||
const udk = (0, material_management_1.unwrapDataKey)(material.getUnencryptedDataKey()); | ||
if (suite.kdf) { | ||
@@ -309,3 +309,3 @@ /* For several browsers, import for a key to derive with HKDF | ||
const algorithm = { name: suite.encryption, length: suite.keyLength }; | ||
const jwk = bytes2_jwk_1.bytes2JWK(udk); | ||
const jwk = (0, bytes2_jwk_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xFQUFFO1FBQ2pDLElBQUksSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFBO0tBQ3BCO0lBQ0QsT0FBTyxJQUFJLEtBQUssQ0FBQyxDQUFBO0FBQ25CLENBQUMifQ== |
{ | ||
"name": "@aws-crypto/material-management-browser", | ||
"version": "3.0.2", | ||
"version": "3.1.0", | ||
"scripts": { | ||
@@ -21,5 +21,5 @@ "prepublishOnly": "npm run build", | ||
"dependencies": { | ||
"@aws-crypto/material-management": "^3.0.0", | ||
"@aws-crypto/serialize": "^3.0.0", | ||
"@aws-crypto/web-crypto-backend": "^3.0.2", | ||
"@aws-crypto/material-management": "^3.1.0", | ||
"@aws-crypto/serialize": "^3.1.0", | ||
"@aws-crypto/web-crypto-backend": "^3.1.0", | ||
"@aws-sdk/util-base64-browser": "3.1.0", | ||
@@ -35,3 +35,3 @@ "tslib": "^2.2.0" | ||
], | ||
"gitHead": "80db4edcce0853a303e0200551bf658cac18f9c6" | ||
"gitHead": "1bc8957ce9378767d3fca65ae5310c130384e075" | ||
} |
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
135773