@aws-crypto/raw-aes-keyring-browser
Advanced tools
Comparing version 1.2.1 to 1.7.0
"use strict"; | ||
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RawAesWrappingSuiteIdentifier = void 0; | ||
var raw_keyring_1 = require("@aws-crypto/raw-keyring"); | ||
exports.RawAesWrappingSuiteIdentifier = raw_keyring_1.RawAesWrappingSuiteIdentifier; | ||
__export(require("./raw_aes_keyring_browser")); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLG9FQUFvRTtBQUNwRSxzQ0FBc0M7Ozs7O0FBRXRDLHVEQUdnQztBQUY5QixzREFBQSw2QkFBNkIsQ0FBQTtBQUcvQiwrQ0FBeUMifQ== | ||
Object.defineProperty(exports, "RawAesWrappingSuiteIdentifier", { enumerable: true, get: function () { return raw_keyring_1.RawAesWrappingSuiteIdentifier; } }); | ||
__exportStar(require("./raw_aes_keyring_browser"), exports); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLG9FQUFvRTtBQUNwRSxzQ0FBc0M7Ozs7Ozs7Ozs7Ozs7QUFFdEMsdURBR2dDO0FBRjlCLDRIQUFBLDZCQUE2QixPQUFBO0FBRy9CLDREQUF5QyJ9 |
@@ -5,2 +5,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RawAesKeyringWebCrypto = void 0; | ||
const material_management_browser_1 = require("@aws-crypto/material-management-browser"); | ||
@@ -105,6 +106,7 @@ const serialize_1 = require("@aws-crypto/serialize"); | ||
const iv = await backend.randomValues(material.suite.ivLength); | ||
const kdfGetSubtleEncrypt = material_management_browser_1.getSubtleFunction(wrappingMaterial, backend, 'encrypt'); | ||
const getSubtleInfo = material_management_browser_1.currySubtleFunction(wrappingMaterial, backend, 'encrypt'); | ||
const info = new Uint8Array(); | ||
const { getSubtleEncrypt } = await getSubtleInfo(info); | ||
const dataKey = material_management_browser_1.unwrapDataKey(material.getUnencryptedDataKey()); | ||
const buffer = await kdfGetSubtleEncrypt(info)(iv, aad)(dataKey); | ||
const buffer = await getSubtleEncrypt(iv, aad)(dataKey); | ||
const ciphertext = new Uint8Array(buffer, 0, buffer.byteLength - material.suite.tagLength / 8); | ||
@@ -130,5 +132,6 @@ const authTag = new Uint8Array(buffer, buffer.byteLength - material.suite.tagLength / 8); | ||
const backend = await backendForRawAesMasterKey(); | ||
const KdfGetSubtleDecrypt = material_management_browser_1.getSubtleFunction(wrappingMaterial, backend, 'decrypt'); | ||
const getSubtleInfo = material_management_browser_1.currySubtleFunction(wrappingMaterial, backend, 'decrypt'); | ||
const info = new Uint8Array(); | ||
const buffer = await KdfGetSubtleDecrypt(info)(iv, aad)(serialize_1.concatBuffers(ciphertext, authTag)); | ||
const getSubtleDecrypt = await getSubtleInfo(info); | ||
const buffer = await getSubtleDecrypt(iv, aad)(serialize_1.concatBuffers(ciphertext, authTag)); | ||
const trace = { keyNamespace, keyName, flags: decryptFlags }; | ||
@@ -153,2 +156,2 @@ material.setUnencryptedDataKey(new Uint8Array(buffer), trace); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmF3X2Flc19rZXlyaW5nX2Jyb3dzZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcmF3X2Flc19rZXlyaW5nX2Jyb3dzZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLG9FQUFvRTtBQUNwRSxzQ0FBc0M7O0FBRXRDLHlGQWdCZ0Q7QUFDaEQscURBQXVFO0FBQ3ZFLHlEQVNnQztBQUNoQyxrRUFBNkQ7QUFDN0QsNkVBQW9FO0FBQ3BFLHVFQUd1QztBQUN2QyxNQUFNLEVBQUUsMEJBQTBCLEVBQUUsR0FBRyw0QkFBZ0IsQ0FBQyw0QkFBUSxDQUFDLENBQUE7QUFDakUsTUFBTSxFQUFFLHNCQUFzQixFQUFFLEdBQUcsMkNBQTZCLENBQzlELDBCQUFNLEVBQ04sNEJBQVEsQ0FDVCxDQUFBO0FBQ0QsTUFBTSxFQUFFLG9CQUFvQixFQUFFLEdBQUcseUNBQTJCLENBQUMsNEJBQVEsQ0FBQyxDQUFBO0FBQ3RFLE1BQU0sWUFBWSxHQUNoQiw4Q0FBZ0IsQ0FBQywrQkFBK0I7SUFDaEQsOENBQWdCLENBQUMsMkJBQTJCLENBQUE7QUFDOUMsTUFBTSxZQUFZLEdBQ2hCLDhDQUFnQixDQUFDLCtCQUErQjtJQUNoRCw4Q0FBZ0IsQ0FBQyw2QkFBNkIsQ0FBQTtBQVNoRCxNQUFhLHNCQUF1QixTQUFRLDhDQUFnQjtJQU0xRCxZQUFZLEtBQWtDO1FBQzVDLEtBQUssRUFBRSxDQUFBO1FBdUVULGtCQUFhLE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Identifier: Apache-2.0 | ||
import { KeyringWebCrypto, needs, KeyringTraceFlag, immutableClass, readOnlyProperty, getSubtleFunction, _importCryptoKey, unwrapDataKey, importForWebCryptoEncryptionMaterial, importForWebCryptoDecryptionMaterial, } from '@aws-crypto/material-management-browser'; | ||
import { KeyringWebCrypto, needs, KeyringTraceFlag, immutableClass, readOnlyProperty, currySubtleFunction, _importCryptoKey, unwrapDataKey, importForWebCryptoEncryptionMaterial, importForWebCryptoDecryptionMaterial, } from '@aws-crypto/material-management-browser'; | ||
import { serializeFactory, concatBuffers } from '@aws-crypto/serialize'; | ||
@@ -101,6 +101,7 @@ import { _onEncrypt, _onDecrypt, WebCryptoRawAesMaterial, rawAesEncryptedDataKeyFactory, rawAesEncryptedPartsFactory, } from '@aws-crypto/raw-keyring'; | ||
const iv = await backend.randomValues(material.suite.ivLength); | ||
const kdfGetSubtleEncrypt = getSubtleFunction(wrappingMaterial, backend, 'encrypt'); | ||
const getSubtleInfo = currySubtleFunction(wrappingMaterial, backend, 'encrypt'); | ||
const info = new Uint8Array(); | ||
const { getSubtleEncrypt } = await getSubtleInfo(info); | ||
const dataKey = unwrapDataKey(material.getUnencryptedDataKey()); | ||
const buffer = await kdfGetSubtleEncrypt(info)(iv, aad)(dataKey); | ||
const buffer = await getSubtleEncrypt(iv, aad)(dataKey); | ||
const ciphertext = new Uint8Array(buffer, 0, buffer.byteLength - material.suite.tagLength / 8); | ||
@@ -126,5 +127,6 @@ const authTag = new Uint8Array(buffer, buffer.byteLength - material.suite.tagLength / 8); | ||
const backend = await backendForRawAesMasterKey(); | ||
const KdfGetSubtleDecrypt = getSubtleFunction(wrappingMaterial, backend, 'decrypt'); | ||
const getSubtleInfo = currySubtleFunction(wrappingMaterial, backend, 'decrypt'); | ||
const info = new Uint8Array(); | ||
const buffer = await KdfGetSubtleDecrypt(info)(iv, aad)(concatBuffers(ciphertext, authTag)); | ||
const getSubtleDecrypt = await getSubtleInfo(info); | ||
const buffer = await getSubtleDecrypt(iv, aad)(concatBuffers(ciphertext, authTag)); | ||
const trace = { keyNamespace, keyName, flags: decryptFlags }; | ||
@@ -149,2 +151,2 @@ material.setUnencryptedDataKey(new Uint8Array(buffer), trace); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmF3X2Flc19rZXlyaW5nX2Jyb3dzZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcmF3X2Flc19rZXlyaW5nX2Jyb3dzZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsb0VBQW9FO0FBQ3BFLHNDQUFzQztBQUV0QyxPQUFPLEVBQ0wsZ0JBQWdCLEVBQ2hCLEtBQUssRUFJTCxnQkFBZ0IsRUFDaEIsY0FBYyxFQUNkLGdCQUFnQixFQUVoQixpQkFBaUIsRUFDakIsZ0JBQWdCLEVBQ2hCLGFBQWEsRUFDYixvQ0FBb0MsRUFDcEMsb0NBQW9DLEdBRXJDLE1BQU0seUNBQXlDLENBQUE7QUFDaEQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLGFBQWEsRUFBRSxNQUFNLHVCQUF1QixDQUFBO0FBQ3ZFLE9BQU8sRUFDTCxVQUFVLEVBQ1YsVUFBVSxFQUNWLHVCQUF1QixFQUN2Qiw2QkFBNkIsRUFDN0IsMkJBQTJCLEdBSTVCLE1BQU0seUJBQXlCLENBQUE7QUFDaEMsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQTtBQUM3RCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxtQ0FBbUMsQ0FBQTtBQUNwRSxPQUFPLEVBQ0wsbUJBQW1CLEVBQ25CLHFCQUFxQixHQUN0QixNQUFNLGdDQUFnQyxDQUFBO0FBQ3ZDLE1BQU0sRUFBRSwwQkFBMEIsRUFBRSxHQUFHLGdCQUFnQixDQUFDLFFBQVEsQ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RyxtQkFBbUIsQ0FDdkMsZ0JBQWdCLEVBQ2hCLE9BQU8sRUFDUCxTQUFTLENBQ1YsQ0FBQTtJQUNELE1BQU0sSUFBSSxHQUFHLElBQUksVUFBVSxFQUFFLENBQUE7SUFDN0IsTUFBTSxnQkFBZ0IsR0FBRyxNQUFNLGFBQWEsQ0FBQyxJQUFJLENBQUMsQ0FBQTtJQUNsRCxNQUFNLE1BQU0sR0FBRyxNQUFNLGdCQUFnQixDQUNuQyxFQUFFLEVBQ0YsR0FBRyxDQUNKLENBQUMsYUFBYSxDQUFDLFVBQVUsRUFBRSxPQUFPLENBQUMsQ0FBQyxDQUFBO0lBQ3JDLE1BQU0sS0FBSyxHQUFHLEVBQUUsWUFBWSxFQUFFLE9BQU8sRUFBRSxLQUFLLEVBQUUsWUFBWSxFQUFFLENBQUE7SUFDNUQsUUFBUSxDQUFDLHFCQUFxQixDQUFDLElBQUksVUFBVSxDQUFDLE1BQU0sQ0FBQyxFQUFFLEtBQUssQ0FBQyxDQUFBO0lBQzdELE9BQU8sb0NBQW9DLENBQUMsUUFBUSxDQUFDLENBQUE7QUFDdkQsQ0FBQztBQUVEOzs7Ozs7OztHQVFHO0FBQ0gsS0FBSyxVQUFVLHlCQUF5QjtJQUN0QyxNQUFNLE9BQU8sR0FBRyxNQUFNLG1CQUFtQixFQUFFLENBQUE7SUFDM0MsTUFBTSxFQUFFLFlBQVksRUFBRSxHQUFHLE9BQU8sQ0FBQTtJQUNoQyxNQUFNLE1BQU0sR0FBRyxxQkFBcUIsQ0FBQyxPQUFPLENBQUMsQ0FBQTtJQUU3QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sRUFBRSxDQUFBO0FBQ2pDLENBQUMifQ== |
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.7.0](https://github.com/aws/private-aws-encryption-sdk-javascript-staging/compare/@aws-crypto/raw-aes-keyring-browser@1.2.1...@aws-crypto/raw-aes-keyring-browser@1.7.0) (2020-09-24) | ||
### Features | ||
* Updates to the AWS Encryption SDK. ([748be9e](https://github.com/aws/private-aws-encryption-sdk-javascript-staging/commit/748be9e1799d999a350e9cafbf902d43aeab0aa5)) | ||
## [1.2.1](https://github.com/aws/aws-encryption-sdk-javascript/compare/@aws-crypto/raw-aes-keyring-browser@1.2.0...@aws-crypto/raw-aes-keyring-browser@1.2.1) (2020-05-26) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@aws-crypto/raw-aes-keyring-browser", | ||
"version": "1.2.1", | ||
"version": "1.7.0", | ||
"scripts": { | ||
@@ -21,6 +21,6 @@ "prepublishOnly": "npm run build", | ||
"dependencies": { | ||
"@aws-crypto/material-management-browser": "^1.2.1", | ||
"@aws-crypto/material-management-browser": "^1.7.0", | ||
"@aws-crypto/random-source-browser": "^1.0.0-alpha.0", | ||
"@aws-crypto/raw-keyring": "^1.0.4", | ||
"@aws-crypto/serialize": "^1.0.4", | ||
"@aws-crypto/raw-keyring": "^1.7.0", | ||
"@aws-crypto/serialize": "^1.7.0", | ||
"@aws-crypto/web-crypto-backend": "^1.1.2", | ||
@@ -37,3 +37,3 @@ "@aws-sdk/util-utf8-browser": "1.0.0-beta.2", | ||
], | ||
"gitHead": "4b60e0607e83d1ea2da98fd593e681f98f0d0082" | ||
"gitHead": "4469f3ec0ea8dc42ac5fec37ba0c207675d46e69" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
392345
366