@aws-crypto/material-management-browser
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -77,4 +77,7 @@ "use strict"; | ||
/* Check for early return (Postcondition): The WebCryptoAlgorithmSuite specification must support a signatureCurve to extract a verification key. */ | ||
if (!namedCurve) | ||
if (!namedCurve) { | ||
/* 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.'); | ||
return new material_management_1.WebCryptoDecryptionMaterial(suite, encryptionContext); | ||
} | ||
/* Precondition: WebCryptoDefaultCryptographicMaterialsManager If the algorithm suite specification requires a signatureCurve a context must exist. */ | ||
@@ -99,2 +102,2 @@ if (!encryptionContext) | ||
material_management_1.immutableBaseClass(WebCryptoDefaultCryptographicMaterialsManager); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvd3Nlcl9jcnlwdG9ncmFwaGljX21hdGVyaWFsc19tYW5hZ2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2Jyb3dzZXJfY3J5cHRvZ3JhcGhpY19tYXRlcmlhbHNfbWFuYWdlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0VBQW9FO0FBQ3BFLHNDQUFzQzs7O0FBRXRDLHlFQW1Cd0M7QUFFeEMscURBQTBEO0FBQzFELHVFQUd1QztBQUN2QyxzRUFBbUU7QUFPbkU7Ozs7R0FJRztBQUNILE1BQWEsNkNBQTZDO0lBR3hELFlBQVksT0FBeUI7UUFDbkMsd0RBQXdEO1FBQ3hELDJCQUFLLENBQUMsT0FBTyxZQUFZLHNDQUFnQixFQUFFLG1CQUFtQixDQUFDLENBQUE7UUFDL0Qsc0NBQWdCLENBQUMsSUFBSSxFQUFFLFNBQVMsRUFBRSxPQUFPLENBQUMsQ0FBQTtJQUM1Qyx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QyxTQUFTLEVBQUUsS0FBSyxDQUFDLENBQUMsQ0FBQTtJQUM3RCxDQUFDO0NBQ0Y7QUFyS0Qsc0dBcUtDO0FBRUQsd0NBQWtCLENBQUMsNkNBQTZDLENBQUMsQ0FBQSJ9 |
@@ -5,3 +5,3 @@ export * from './browser_cryptographic_materials_manager'; | ||
export * from './keyring_helpers'; | ||
export { WebCryptoDecryptionMaterial, WebCryptoEncryptionMaterial, WebCryptoAlgorithmSuite, AlgorithmSuiteIdentifier, EncryptionContext, EncryptedDataKey, KeyringWebCrypto, KeyringTrace, KeyringTraceFlag, needs, MixedBackendCryptoKey, MultiKeyringWebCrypto, immutableBaseClass, immutableClass, frozenClass, readOnlyProperty, keyUsageForMaterial, isValidCryptoKey, isCryptoKey, WebCryptoMaterialsManager, unwrapDataKey, AwsEsdkJsCryptoKey, CommitmentPolicy, CommitmentPolicySuites, MessageFormat, } from '@aws-crypto/material-management'; | ||
export { WebCryptoDecryptionMaterial, WebCryptoEncryptionMaterial, WebCryptoAlgorithmSuite, AlgorithmSuiteIdentifier, EncryptionContext, EncryptedDataKey, KeyringWebCrypto, KeyringTrace, KeyringTraceFlag, needs, MixedBackendCryptoKey, MultiKeyringWebCrypto, immutableBaseClass, immutableClass, frozenClass, readOnlyProperty, keyUsageForMaterial, isValidCryptoKey, isCryptoKey, WebCryptoMaterialsManager, unwrapDataKey, AwsEsdkJsCryptoKey, CommitmentPolicy, CommitmentPolicySuites, SignaturePolicySuites, SignaturePolicy, MessageFormat, ClientOptions, } from '@aws-crypto/material-management'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -15,3 +15,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.MessageFormat = exports.CommitmentPolicySuites = exports.CommitmentPolicy = exports.unwrapDataKey = exports.isCryptoKey = exports.isValidCryptoKey = exports.keyUsageForMaterial = exports.readOnlyProperty = exports.frozenClass = exports.immutableClass = exports.immutableBaseClass = exports.MultiKeyringWebCrypto = exports.needs = exports.KeyringTraceFlag = exports.KeyringWebCrypto = exports.EncryptedDataKey = exports.AlgorithmSuiteIdentifier = exports.WebCryptoAlgorithmSuite = exports.WebCryptoEncryptionMaterial = exports.WebCryptoDecryptionMaterial = void 0; | ||
exports.MessageFormat = exports.SignaturePolicy = exports.SignaturePolicySuites = exports.CommitmentPolicySuites = exports.CommitmentPolicy = exports.unwrapDataKey = exports.isCryptoKey = exports.isValidCryptoKey = exports.keyUsageForMaterial = exports.readOnlyProperty = exports.frozenClass = exports.immutableClass = exports.immutableBaseClass = exports.MultiKeyringWebCrypto = exports.needs = exports.KeyringTraceFlag = exports.KeyringWebCrypto = exports.EncryptedDataKey = exports.AlgorithmSuiteIdentifier = exports.WebCryptoAlgorithmSuite = exports.WebCryptoEncryptionMaterial = exports.WebCryptoDecryptionMaterial = void 0; | ||
__exportStar(require("./browser_cryptographic_materials_manager"), exports); | ||
@@ -41,3 +41,5 @@ __exportStar(require("./material_helpers"), exports); | ||
Object.defineProperty(exports, "CommitmentPolicySuites", { enumerable: true, get: function () { return material_management_1.CommitmentPolicySuites; } }); | ||
Object.defineProperty(exports, "SignaturePolicySuites", { enumerable: true, get: function () { return material_management_1.SignaturePolicySuites; } }); | ||
Object.defineProperty(exports, "SignaturePolicy", { enumerable: true, get: function () { return material_management_1.SignaturePolicy; } }); | ||
Object.defineProperty(exports, "MessageFormat", { enumerable: true, get: function () { return material_management_1.MessageFormat; } }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLG9FQUFvRTtBQUNwRSxzQ0FBc0M7Ozs7Ozs7Ozs7Ozs7QUFFdEMsNEVBQXlEO0FBQ3pELHFEQUFrQztBQUNsQywrQ0FBNEI7QUFDNUIsb0RBQWlDO0FBQ2pDLH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CLCtIQUFBLHdCQUF3QixPQUFBO0FBRXhCLHVIQUFBLGdCQUFnQixPQUFBO0FBQ2hCLHVIQUFBLGdCQUFnQixPQUFBO0FBRWhCLHVIQUFBLGdCQUFnQixPQUFBO0FBQ2hCLDRHQUFBLEtBQUssT0FBQTtBQUVMLDRIQUFBLHFCQUFxQixPQUFBO0FBQ3JCLHlIQUFBLGtCQUFrQixPQUFBO0FBQ2xCLHFIQUFBLGNBQWMsT0FBQTtBQUNkLGtIQUFBLFdBQVcsT0FBQTtBQUNYLHVIQUFBLGdCQUFnQixPQUFBO0FBQ2hCLDBIQUFBLG1CQUFtQixPQUFBO0FBQ25CLHVIQUFBLGdCQUFnQixPQUFBO0FBQ2hCLGtIQUFBLFdBQVcsT0FBQTtBQUVYLG9IQUFBLGFBQWEsT0FBQTtBQUViLHVIQUFBLGdCQUFnQixPQUFBO0FBQ2hCLDZIQUFBLHNCQUFzQixPQUFBO0FBQ3RCLDRIQUFBLHFCQUFxQixPQUFBO0FBQ3JCLHNIQUFBLGVBQWUsT0FBQTtBQUNmLG9IQUFBLGFBQWEsT0FBQSJ9 |
@@ -55,3 +55,3 @@ import { WebCryptoEncryptionMaterial, WebCryptoDecryptionMaterial, AwsEsdkJsCryptoKey, WebCryptoMaterial, SupportedAlgorithmSuites } from '@aws-crypto/material-management'; | ||
hash: { | ||
name: "sha256" | "sha384" | "sha512" | "SHA-256" | "SHA-384" | "SHA-512"; | ||
name: import("@aws-crypto/material-management").NodeHash | import("@aws-crypto/material-management").WebCryptoHash; | ||
}; | ||
@@ -58,0 +58,0 @@ info: Uint8Array; |
@@ -74,4 +74,7 @@ // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. | ||
/* Check for early return (Postcondition): The WebCryptoAlgorithmSuite specification must support a signatureCurve to extract a verification key. */ | ||
if (!namedCurve) | ||
if (!namedCurve) { | ||
/* Precondition: The context must not contain a public key for a non-signing algorithm suite. */ | ||
needs(!Object.prototype.hasOwnProperty.call(encryptionContext, ENCODED_SIGNER_KEY), 'Encryption context contains public verification key for unsigned algorithm suite.'); | ||
return new WebCryptoDecryptionMaterial(suite, encryptionContext); | ||
} | ||
/* Precondition: WebCryptoDefaultCryptographicMaterialsManager If the algorithm suite specification requires a signatureCurve a context must exist. */ | ||
@@ -95,2 +98,2 @@ if (!encryptionContext) | ||
immutableBaseClass(WebCryptoDefaultCryptographicMaterialsManager); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvd3Nlcl9jcnlwdG9ncmFwaGljX21hdGVyaWFsc19tYW5hZ2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2Jyb3dzZXJfY3J5cHRvZ3JhcGhpY19tYXRlcmlhbHNfbWFuYWdlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxvRUFBb0U7QUFDcEUsc0NBQXNDO0FBRXRDLE9BQU8sRUFLTCx1QkFBdUIsRUFDdkIsMkJBQTJCLEVBQzNCLDJCQUEyQixFQUMzQixZQUFZLEVBQ1osS0FBSyxFQUNMLGdCQUFnQixFQUNoQixlQUFlLEVBQ2Ysa0JBQWtCLEVBQ2xCLGdCQUFnQixFQUtoQixzQkFBc0IsR0FDdkIsTUFBTSxpQ0FBaUMsQ0FBQTtBQUV4QyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQTtBQUMxRCxPQUFPLEVBQ0wsbUJBQW1CLEVBQ25CLHFCQUFxQixHQUN0QixNQUFNLGdDQUFnQyxDQUFBO0FBQ3ZDLE9BQU8sRUFBRSxVQUFVLEVBQUUsUUFBUSxFQUFFLE1BQU0sOEJBQThCLENBQUE7QUFPbkU7Ozs7R0FJRztBQUNILE1BQU0sT0FBTyw2Q0FBNkM7SUFHeEQsWUFBWSxPQUF5QjtRQUNuQyx3REFBd0Q7UUFDeEQsS0FBSyxDQUFDLE9BQU8sWUFBWSxnQkFB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0FBQyxRQUFRLENBQXdCLENBQUE7UUFDaEQsTUFBTSxNQUFNLEdBQUcsS0FBSyxDQUFBO1FBRXBCLE1BQU0sY0FBYyxHQUFHLGVBQWUsQ0FBQyxtQkFBbUIsQ0FDeEQsVUFBVSxDQUFDLGFBQWEsQ0FBQyxFQUN6QixLQUFLLENBQ04sQ0FBQTtRQUNELE1BQU0sU0FBUyxHQUFHLE1BQU0sTUFBTSxDQUFDLFNBQVMsQ0FDdEMsTUFBTSxFQUNOLGNBQWMsRUFDZCxrQkFBa0IsRUFDbEIsV0FBVyxFQUNYLE1BQU0sQ0FDUCxDQUFBO1FBRUQsT0FBTyxJQUFJLDJCQUEyQixDQUNwQyxLQUFLLEVBQ0wsaUJBQWlCLENBQ2xCLENBQUMsa0JBQWtCLENBQUMsSUFBSSxlQUFlLENBQUMsU0FBUyxFQUFFLEtBQUssQ0FBQyxDQUFDLENBQUE7SUFDN0QsQ0FBQztDQUNGO0FBRUQsa0JBQWtCLENBQUMsNkNBQTZDLENBQUMsQ0FBQSJ9 |
@@ -5,3 +5,3 @@ export * from './browser_cryptographic_materials_manager'; | ||
export * from './keyring_helpers'; | ||
export { WebCryptoDecryptionMaterial, WebCryptoEncryptionMaterial, WebCryptoAlgorithmSuite, AlgorithmSuiteIdentifier, EncryptionContext, EncryptedDataKey, KeyringWebCrypto, KeyringTrace, KeyringTraceFlag, needs, MixedBackendCryptoKey, MultiKeyringWebCrypto, immutableBaseClass, immutableClass, frozenClass, readOnlyProperty, keyUsageForMaterial, isValidCryptoKey, isCryptoKey, WebCryptoMaterialsManager, unwrapDataKey, AwsEsdkJsCryptoKey, CommitmentPolicy, CommitmentPolicySuites, MessageFormat, } from '@aws-crypto/material-management'; | ||
export { WebCryptoDecryptionMaterial, WebCryptoEncryptionMaterial, WebCryptoAlgorithmSuite, AlgorithmSuiteIdentifier, EncryptionContext, EncryptedDataKey, KeyringWebCrypto, KeyringTrace, KeyringTraceFlag, needs, MixedBackendCryptoKey, MultiKeyringWebCrypto, immutableBaseClass, immutableClass, frozenClass, readOnlyProperty, keyUsageForMaterial, isValidCryptoKey, isCryptoKey, WebCryptoMaterialsManager, unwrapDataKey, AwsEsdkJsCryptoKey, CommitmentPolicy, CommitmentPolicySuites, SignaturePolicySuites, SignaturePolicy, MessageFormat, ClientOptions, } from '@aws-crypto/material-management'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -7,3 +7,3 @@ // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. | ||
export * from './keyring_helpers'; | ||
export { WebCryptoDecryptionMaterial, WebCryptoEncryptionMaterial, WebCryptoAlgorithmSuite, AlgorithmSuiteIdentifier, EncryptedDataKey, KeyringWebCrypto, KeyringTraceFlag, needs, MultiKeyringWebCrypto, immutableBaseClass, immutableClass, frozenClass, readOnlyProperty, keyUsageForMaterial, isValidCryptoKey, isCryptoKey, unwrapDataKey, CommitmentPolicy, CommitmentPolicySuites, MessageFormat, } from '@aws-crypto/material-management'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsb0VBQW9FO0FBQ3BFLHNDQUFzQztBQUV0QyxjQUFjLDJDQUEyQyxDQUFBO0FBQ3pELGNBQWMsb0JBQW9CLENBQUE7QUFDbEMsY0FBYyxjQUFjLENBQUE7QUFDNUIsY0FBYyxtQkFBbUIsQ0FBQTtBQUNqQyxPQUFPLEVBQ0wsMkJBQTJCLEVBQzNCLDJCQUEyQixFQUMzQix1QkFBdUIsRUFDdkIsd0JBQXdCLEVBRXhCLGdCQUFnQixFQUNoQixnQkFBZ0IsRUFFaEIsZ0JBQWdCLEVBQ2hCLEtBQUssRUFFTCxxQkFBcUIsRUFDckIsa0JBQWtCLEVBQ2xCLGNBQWMsRUFDZCxXQUFXLEVBQ1gsZ0JBQWdCLEVBQ2hCLG1CQUFtQixFQUNuQixnQkFBZ0IsRUFDaEIsV0FBVyxFQUVYLGFBQWEsRUFFYixnQkFBZ0IsRUFDaEIsc0JBQXNCLEVBQ3RCLGFBQWEsR0FDZCxNQUFNLGlDQUFpQyxDQUFBIn0= | ||
export { WebCryptoDecryptionMaterial, WebCryptoEncryptionMaterial, WebCryptoAlgorithmSuite, AlgorithmSuiteIdentifier, EncryptedDataKey, KeyringWebCrypto, KeyringTraceFlag, needs, MultiKeyringWebCrypto, immutableBaseClass, immutableClass, frozenClass, readOnlyProperty, keyUsageForMaterial, isValidCryptoKey, isCryptoKey, unwrapDataKey, CommitmentPolicy, CommitmentPolicySuites, SignaturePolicySuites, SignaturePolicy, MessageFormat, } from '@aws-crypto/material-management'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsb0VBQW9FO0FBQ3BFLHNDQUFzQztBQUV0QyxjQUFjLDJDQUEyQyxDQUFBO0FBQ3pELGNBQWMsb0JBQW9CLENBQUE7QUFDbEMsY0FBYyxjQUFjLENBQUE7QUFDNUIsY0FBYyxtQkFBbUIsQ0FBQTtBQUNqQyxPQUFPLEVBQ0wsMkJBQTJCLEVBQzNCLDJCQUEyQixFQUMzQix1QkFBdUIsRUFDdkIsd0JBQXdCLEVBRXhCLGdCQUFnQixFQUNoQixnQkFBZ0IsRUFFaEIsZ0JBQWdCLEVBQ2hCLEtBQUssRUFFTCxxQkFBcUIsRUFDckIsa0JBQWtCLEVBQ2xCLGNBQWMsRUFDZCxXQUFXLEVBQ1gsZ0JBQWdCLEVBQ2hCLG1CQUFtQixFQUNuQixnQkFBZ0IsRUFDaEIsV0FBVyxFQUVYLGFBQWEsRUFFYixnQkFBZ0IsRUFDaEIsc0JBQXNCLEVBQ3RCLHFCQUFxQixFQUNyQixlQUFlLEVBQ2YsYUFBYSxHQUVkLE1BQU0saUNBQWlDLENBQUEifQ== |
@@ -55,3 +55,3 @@ import { WebCryptoEncryptionMaterial, WebCryptoDecryptionMaterial, AwsEsdkJsCryptoKey, WebCryptoMaterial, SupportedAlgorithmSuites } from '@aws-crypto/material-management'; | ||
hash: { | ||
name: "sha256" | "sha384" | "sha512" | "SHA-256" | "SHA-384" | "SHA-512"; | ||
name: import("@aws-crypto/material-management").NodeHash | import("@aws-crypto/material-management").WebCryptoHash; | ||
}; | ||
@@ -58,0 +58,0 @@ info: Uint8Array; |
@@ -6,2 +6,10 @@ # Change Log | ||
# [2.2.0](https://github.com/aws/private-aws-encryption-sdk-javascript-staging/compare/@aws-crypto/material-management-browser@2.1.0...@aws-crypto/material-management-browser@2.2.0) (2021-05-27) | ||
**Note:** Version bump only for package @aws-crypto/material-management-browser | ||
# [2.1.0](https://github.com/aws/aws-encryption-sdk-javascript/compare/@aws-crypto/material-management-browser@2.0.0...@aws-crypto/material-management-browser@2.1.0) (2021-02-04) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@aws-crypto/material-management-browser", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"scripts": { | ||
@@ -21,7 +21,7 @@ "prepublishOnly": "npm run build", | ||
"dependencies": { | ||
"@aws-crypto/material-management": "^2.1.0", | ||
"@aws-crypto/serialize": "^2.1.0", | ||
"@aws-crypto/web-crypto-backend": "^1.2.0", | ||
"@aws-crypto/material-management": "^2.2.0", | ||
"@aws-crypto/serialize": "^2.2.0", | ||
"@aws-crypto/web-crypto-backend": "^2.2.0", | ||
"@aws-sdk/util-base64-browser": "3.1.0", | ||
"tslib": "^1.11.1" | ||
"tslib": "^2.2.0" | ||
}, | ||
@@ -35,3 +35,3 @@ "sideEffects": false, | ||
], | ||
"gitHead": "c6ef12119e60d8527375c600155ff3437c70b44e" | ||
"gitHead": "35a8888596e935beabb99f872da26abc61d20a3e" | ||
} |
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
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
317631
1177
+ Added@aws-crypto/web-crypto-backend@2.4.0(transitive)
+ Added@aws-sdk/util-locate-window@3.13.1(transitive)
- Removed@aws-crypto/web-crypto-backend@1.9.0(transitive)
- Removed@aws-sdk/util-locate-window@3.1.0(transitive)
Updated@aws-crypto/serialize@^2.2.0
Updatedtslib@^2.2.0