@aws-crypto/raw-aes-keyring-node
Advanced tools
Comparing version 0.1.0-preview.2 to 0.1.0-preview.3
import { KeyringNode, NodeEncryptionMaterial, // eslint-disable-line no-unused-vars | ||
NodeDecryptionMaterial, // eslint-disable-line no-unused-vars | ||
EncryptedDataKey, NodeAlgorithmSuite, // eslint-disable-line no-unused-vars | ||
EncryptionContext } from '@aws-crypto/material-management-node'; | ||
EncryptedDataKey, NodeAlgorithmSuite } from '@aws-crypto/material-management-node'; | ||
import { WrappingSuiteIdentifier, // eslint-disable-line no-unused-vars | ||
@@ -21,5 +20,5 @@ WrapKey, // eslint-disable-line no-unused-vars | ||
_filter({ providerId, providerInfo }: EncryptedDataKey): boolean; | ||
_onEncrypt: (this: RawAesKeyringNode, material: NodeEncryptionMaterial, context?: EncryptionContext | undefined) => Promise<NodeEncryptionMaterial>; | ||
_onDecrypt: (this: RawAesKeyringNode, material: NodeDecryptionMaterial, encryptedDataKeys: EncryptedDataKey[], context?: EncryptionContext | undefined) => Promise<NodeDecryptionMaterial>; | ||
_onEncrypt: (this: RawAesKeyringNode, material: NodeEncryptionMaterial) => Promise<NodeEncryptionMaterial>; | ||
_onDecrypt: (this: RawAesKeyringNode, material: NodeDecryptionMaterial, encryptedDataKeys: EncryptedDataKey[]) => Promise<NodeDecryptionMaterial>; | ||
} | ||
//# sourceMappingURL=raw_aes_keyring_node.d.ts.map |
@@ -36,5 +36,5 @@ "use strict"; | ||
material_management_node_1.needs(keyName && keyNamespace, 'Identifying information must be defined.'); | ||
/* Precondition: wrappingSuite must be a valid RawAesWrappingSuite. */ | ||
/* Precondition: RawAesKeyringNode requires wrappingSuite to be a valid RawAesWrappingSuite. */ | ||
const wrappingMaterial = new raw_keyring_1.NodeRawAesMaterial(wrappingSuite) | ||
/* Precondition: unencryptedMasterKey must correspond to the algorithm suite specification. | ||
/* Precondition: unencryptedMasterKey must correspond to the NodeAlgorithmSuite specification. | ||
* Note: the KeyringTrace and flag are _only_ set because I am reusing an existing implementation. | ||
@@ -44,3 +44,3 @@ * See: raw_aes_material.ts in @aws-crypto/raw-keyring for details | ||
.setUnencryptedDataKey(unencryptedMasterKey, { keyNamespace, keyName, flags: material_management_node_1.KeyringTraceFlag.WRAPPING_KEY_GENERATED_DATA_KEY }); | ||
const _wrapKey = async (material, context) => { | ||
const _wrapKey = async (material) => { | ||
/* The AAD section is uInt16BE(length) + AAD | ||
@@ -51,3 +51,3 @@ * see: https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/message-format.html#header-aad | ||
*/ | ||
const { buffer, byteOffset, byteLength } = serializeEncryptionContext(context || {}).slice(2); | ||
const { buffer, byteOffset, byteLength } = serializeEncryptionContext(material.encryptionContext).slice(2); | ||
const aad = Buffer.from(buffer, byteOffset, byteLength); | ||
@@ -57,3 +57,3 @@ const { keyNamespace, keyName } = this; | ||
}; | ||
const _unwrapKey = async (material, edk, context) => { | ||
const _unwrapKey = async (material, edk) => { | ||
const { keyNamespace, keyName } = this; | ||
@@ -65,3 +65,3 @@ /* The AAD section is uInt16BE(length) + AAD | ||
*/ | ||
const { buffer, byteOffset, byteLength } = serializeEncryptionContext(context || {}).slice(2); | ||
const { buffer, byteOffset, byteLength } = serializeEncryptionContext(material.encryptionContext).slice(2); | ||
const aad = Buffer.from(buffer, byteOffset, byteLength); | ||
@@ -139,2 +139,2 @@ // const aad = Buffer.concat(encodeEncryptionContext(context || {})) | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmF3X2Flc19rZXlyaW5nX25vZGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcmF3X2Flc19rZXlyaW5nX25vZGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7Ozs7Ozs7O0dBYUc7O0FBRUgsbUZBVzZDO0FBQzdDLG1DQUFzRTtBQUN0RSxxREFHOEI7QUFDOUIseURBU2dDO0FBQ2hDLE1BQU0sUUFBU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UFFLFlBQVksRUFBRSxDQUFBO0lBQzVELE9BQU8sUUFBUSxDQUFDLHFCQUFxQixDQUFDLGtCQUFrQixFQUFFLEtBQUssQ0FBQyxDQUFBO0FBQ2xFLENBQUM7QUFFRCxTQUFTLGdCQUFnQixDQUFFLElBQVk7SUFDckMsT0FBTyxJQUFJLE9BQU8sQ0FBQyxDQUFDLE9BQU8sRUFBRSxNQUFNLEVBQUUsRUFBRTtRQUNyQyxvQkFBVyxDQUFDLElBQUksRUFBRSxDQUFDLEdBQWUsRUFBRSxNQUFjLEVBQUUsRUFBRTtZQUNwRCxJQUFJLEdBQUc7Z0JBQUUsT0FBTyxNQUFNLENBQUMsR0FBRyxDQUFDLENBQUE7WUFDM0IsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFBO1FBQ2pCLENBQUMsQ0FBQyxDQUFBO0lBQ0osQ0FBQyxDQUFDLENBQUE7QUFDSixDQUFDIn0= |
import { KeyringNode, NodeEncryptionMaterial, // eslint-disable-line no-unused-vars | ||
NodeDecryptionMaterial, // eslint-disable-line no-unused-vars | ||
EncryptedDataKey, NodeAlgorithmSuite, // eslint-disable-line no-unused-vars | ||
EncryptionContext } from '@aws-crypto/material-management-node'; | ||
EncryptedDataKey, NodeAlgorithmSuite } from '@aws-crypto/material-management-node'; | ||
import { WrappingSuiteIdentifier, // eslint-disable-line no-unused-vars | ||
@@ -21,5 +20,5 @@ WrapKey, // eslint-disable-line no-unused-vars | ||
_filter({ providerId, providerInfo }: EncryptedDataKey): boolean; | ||
_onEncrypt: (this: RawAesKeyringNode, material: NodeEncryptionMaterial, context?: EncryptionContext | undefined) => Promise<NodeEncryptionMaterial>; | ||
_onDecrypt: (this: RawAesKeyringNode, material: NodeDecryptionMaterial, encryptedDataKeys: EncryptedDataKey[], context?: EncryptionContext | undefined) => Promise<NodeDecryptionMaterial>; | ||
_onEncrypt: (this: RawAesKeyringNode, material: NodeEncryptionMaterial) => Promise<NodeEncryptionMaterial>; | ||
_onDecrypt: (this: RawAesKeyringNode, material: NodeDecryptionMaterial, encryptedDataKeys: EncryptedDataKey[]) => Promise<NodeDecryptionMaterial>; | ||
} | ||
//# sourceMappingURL=raw_aes_keyring_node.d.ts.map |
@@ -35,5 +35,5 @@ /* | ||
needs(keyName && keyNamespace, 'Identifying information must be defined.'); | ||
/* Precondition: wrappingSuite must be a valid RawAesWrappingSuite. */ | ||
/* Precondition: RawAesKeyringNode requires wrappingSuite to be a valid RawAesWrappingSuite. */ | ||
const wrappingMaterial = new NodeRawAesMaterial(wrappingSuite) | ||
/* Precondition: unencryptedMasterKey must correspond to the algorithm suite specification. | ||
/* Precondition: unencryptedMasterKey must correspond to the NodeAlgorithmSuite specification. | ||
* Note: the KeyringTrace and flag are _only_ set because I am reusing an existing implementation. | ||
@@ -43,3 +43,3 @@ * See: raw_aes_material.ts in @aws-crypto/raw-keyring for details | ||
.setUnencryptedDataKey(unencryptedMasterKey, { keyNamespace, keyName, flags: KeyringTraceFlag.WRAPPING_KEY_GENERATED_DATA_KEY }); | ||
const _wrapKey = async (material, context) => { | ||
const _wrapKey = async (material) => { | ||
/* The AAD section is uInt16BE(length) + AAD | ||
@@ -50,3 +50,3 @@ * see: https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/message-format.html#header-aad | ||
*/ | ||
const { buffer, byteOffset, byteLength } = serializeEncryptionContext(context || {}).slice(2); | ||
const { buffer, byteOffset, byteLength } = serializeEncryptionContext(material.encryptionContext).slice(2); | ||
const aad = Buffer.from(buffer, byteOffset, byteLength); | ||
@@ -56,3 +56,3 @@ const { keyNamespace, keyName } = this; | ||
}; | ||
const _unwrapKey = async (material, edk, context) => { | ||
const _unwrapKey = async (material, edk) => { | ||
const { keyNamespace, keyName } = this; | ||
@@ -64,3 +64,3 @@ /* The AAD section is uInt16BE(length) + AAD | ||
*/ | ||
const { buffer, byteOffset, byteLength } = serializeEncryptionContext(context || {}).slice(2); | ||
const { buffer, byteOffset, byteLength } = serializeEncryptionContext(material.encryptionContext).slice(2); | ||
const aad = Buffer.from(buffer, byteOffset, byteLength); | ||
@@ -137,2 +137,2 @@ // const aad = Buffer.concat(encodeEncryptionContext(context || {})) | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmF3X2Flc19rZXlyaW5nX25vZGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcmF3X2Flc19rZXlyaW5nX25vZGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7R0FhRztBQUVILE9BQU8sRUFDTCxXQUFXLEVBQ1gsS0FBSyxFQUdhLHFDQUFxQztBQUN2RCxnQkFBZ0IsRUFDaEIsY0FBYyxFQUNkLGdCQUFnQixFQUdqQixNQUFNLHNDQUFzQyxDQUFBO0FBQzdDLE9BQU8sRUFBRSxXQUFXLEVBQUUsY0FBYyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sUUFBUSxDQUFBO0FBQ3RFLE9BQU8sRUFDTCxnQkFBZ0IsRUFDaEIsYUFBYSxFQUNkLE1BQU0sdUJBQXVCLENBQUE7QUFDOUIsT0FBTyxFQUNMLFVBQVUsRUFDVixVQUFVLEVBQ1Ysa0JBQWtCLEVBQ2xCLDZCQUE2QixFQUM3QiwyQkFBMkIsRUFJNUIsTUFBTSx5QkFBeUIsQ0FBQTtBQUNoQyxNQUFNLFFBQVEsR0FBRyxDQUFDLEtBQWEsRUFBRSxFQUFFLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxLQUFLLEVBQUUsTUFBTSxDQUFDLENBQUE7QUFDOUQsTUFBTSxNQUFNLEdBQUcsQ0FBQyxLQUFpQixFQUFFLEVBQUUsQ0FBQyxNQUFNO0tBQ3pDLElBQUksQ0FBQyxLQUFLLENBQUMsTUFBTSxFQUFFLEtBQUssQ0FBQyxVQUFVLEVBQUUsS0FBSyxDQUFDLFVBQVUsQ0FBQztLQUN0RCxRQUF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yxHQUFHLEVBQUUsWUFBWSxFQUFFLE9BQU8sRUFBRSxLQUFLLEVBQUUsWUFBWSxFQUFFLENBQUE7SUFDNUQsT0FBTyxRQUFRLENBQUMscUJBQXFCLENBQUMsa0JBQWtCLEVBQUUsS0FBSyxDQUFDLENBQUE7QUFDbEUsQ0FBQztBQUVELFNBQVMsZ0JBQWdCLENBQUUsSUFBWTtJQUNyQyxPQUFPLElBQUksT0FBTyxDQUFDLENBQUMsT0FBTyxFQUFFLE1BQU0sRUFBRSxFQUFFO1FBQ3JDLFdBQVcsQ0FBQyxJQUFJLEVBQUUsQ0FBQyxHQUFlLEVBQUUsTUFBYyxFQUFFLEVBQUU7WUFDcEQsSUFBSSxHQUFHO2dCQUFFLE9BQU8sTUFBTSxDQUFDLEdBQUcsQ0FBQyxDQUFBO1lBQzNCLE9BQU8sQ0FBQyxNQUFNLENBQUMsQ0FBQTtRQUNqQixDQUFDLENBQUMsQ0FBQTtJQUNKLENBQUMsQ0FBQyxDQUFBO0FBQ0osQ0FBQyJ9 |
@@ -6,2 +6,13 @@ # Change Log | ||
# [0.1.0-preview.3](/compare/@aws-crypto/raw-aes-keyring-node@0.1.0-preview.2...@aws-crypto/raw-aes-keyring-node@0.1.0-preview.3) (2019-08-08) | ||
### Bug Fixes | ||
* Encryption Context changes (#148) 5a7e9ca, closes #148 #54 | ||
# [0.1.0-preview.2](/compare/@aws-crypto/raw-aes-keyring-node@0.1.0-preview.1...@aws-crypto/raw-aes-keyring-node@0.1.0-preview.2) (2019-07-24) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@aws-crypto/raw-aes-keyring-node", | ||
"version": "0.1.0-preview.2", | ||
"version": "0.1.0-preview.3", | ||
"scripts": { | ||
@@ -19,5 +19,5 @@ "prepublishOnly": "npm run build", | ||
"dependencies": { | ||
"@aws-crypto/material-management-node": "^0.1.0-preview.2", | ||
"@aws-crypto/raw-keyring": "^0.1.0-preview.2", | ||
"@aws-crypto/serialize": "^0.1.0-preview.2", | ||
"@aws-crypto/material-management-node": "^0.1.0-preview.3", | ||
"@aws-crypto/raw-keyring": "^0.1.0-preview.3", | ||
"@aws-crypto/serialize": "^0.1.0-preview.3", | ||
"tslib": "^1.9.3" | ||
@@ -51,3 +51,3 @@ }, | ||
}, | ||
"gitHead": "970dbfad262186db90bd9ad2eba7a36d8a54ca18" | ||
"gitHead": "698180f30c85ef77a5739ebadd676d4b41ad441f" | ||
} |
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
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
380174
350