Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-crypto/encrypt-node

Package Overview
Dependencies
Maintainers
8
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-crypto/encrypt-node - npm Package Compare versions

Comparing version 1.7.0 to 1.9.0

4

build/main/encrypt_client.d.ts
import { _encryptStream } from './encrypt_stream';
import { _encrypt } from './encrypt';
import { CommitmentPolicy } from '@aws-crypto/material-management-node';
import { CommitmentPolicy, ClientOptions } from '@aws-crypto/material-management-node';
declare type CurryFirst<fn extends (...a: any[]) => any> = fn extends (_: any, ...tail: infer TAIL) => any ? TAIL : [];
export declare function buildEncrypt(commitmentPolicy: CommitmentPolicy): {
export declare function buildEncrypt(options: CommitmentPolicy | ClientOptions): {
encryptStream: (...args: CurryFirst<typeof _encryptStream>) => ReturnType<typeof _encryptStream>;

@@ -7,0 +7,0 @@ encrypt: (...args: CurryFirst<typeof _encrypt>) => ReturnType<typeof _encrypt>;

@@ -9,11 +9,18 @@ "use strict";

const material_management_node_1 = require("@aws-crypto/material-management-node");
function buildEncrypt(commitmentPolicy) {
function buildEncrypt(options) {
const { commitmentPolicy, maxEncryptedDataKeys = false } = typeof options === 'string' ? { commitmentPolicy: options } : options;
/* Precondition: node buildEncrypt needs a valid commitmentPolicy. */
material_management_node_1.needs(material_management_node_1.CommitmentPolicy[commitmentPolicy], 'Invalid commitment policy.');
/* Precondition: node buildEncrypt needs a valid maxEncryptedDataKeys. */
material_management_node_1.needs(maxEncryptedDataKeys === false || maxEncryptedDataKeys >= 1, 'Invalid maxEncryptedDataKeys value.');
const clientOptions = {
commitmentPolicy,
maxEncryptedDataKeys,
};
return {
encryptStream: encrypt_stream_1._encryptStream.bind({}, commitmentPolicy),
encrypt: encrypt_1._encrypt.bind({}, commitmentPolicy),
encryptStream: encrypt_stream_1._encryptStream.bind({}, clientOptions),
encrypt: encrypt_1._encrypt.bind({}, clientOptions),
};
}
exports.buildEncrypt = buildEncrypt;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5jcnlwdF9jbGllbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZW5jcnlwdF9jbGllbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLG9FQUFvRTtBQUNwRSxzQ0FBc0M7OztBQUV0QyxxREFBaUQ7QUFDakQsdUNBQW9DO0FBQ3BDLG1GQUE4RTtBQVM5RSxTQUFnQixZQUFZLENBQzFCLGdCQUFrQztJQU9sQyxxRUFBcUU7SUFDckUsZ0NBQUssQ0FBQywyQ0FBZ0IsQ0FBQyxnQkFBZ0IsQ0FBQyxFQUFFLDRCQUE0QixDQUFDLENBQUE7SUFDdkUsT0FBTztRQUNMLGFBQWEsRUFBRSwrQkFBYyxDQUFDLElBQUksQ0FBQyxFQUFFLEVBQUUsZ0JBQWdCLENBQUM7UUFDeEQsT0FBTyxFQUFFLGtCQUFRLENBQUMsSUFBSSxDQUFDLEVBQUUsRUFBRSxnQkFBZ0IsQ0FBQztLQUM3QyxDQUFBO0FBQ0gsQ0FBQztBQWRELG9DQWNDIn0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5jcnlwdF9jbGllbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZW5jcnlwdF9jbGllbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLG9FQUFvRTtBQUNwRSxzQ0FBc0M7OztBQUV0QyxxREFBaUQ7QUFDakQsdUNBQW9DO0FBQ3BDLG1GQUk2QztBQVM3QyxTQUFnQixZQUFZLENBQzFCLE9BQXlDO0lBT3pDLE1BQU0sRUFBRSxnQkFBZ0IsRUFBRSxvQkFBb0IsR0FBRyxLQUFLLEVBQUUsR0FDdEQsT0FBTyxPQUFPLEtBQUssUUFBUSxDQUFDLENBQUMsQ0FBQyxFQUFFLGdCQUFnQixFQUFFLE9BQU8sRUFBRSxDQUFDLENBQUMsQ0FBQyxPQUFPLENBQUE7SUFFdkUscUVBQXFFO0lBQ3JFLGdDQUFLLENBQUMsMkNBQWdCLENBQUMsZ0JBQWdCLENBQUMsRUFBRSw0QkFBNEIsQ0FBQyxDQUFBO0lBQ3ZFLHlFQUF5RTtJQUN6RSxnQ0FBSyxDQUNILG9CQUFvQixLQUFLLEtBQUssSUFBSSxvQkFBb0IsSUFBSSxDQUFDLEVBQzNELHFDQUFxQyxDQUN0QyxDQUFBO0lBRUQsTUFBTSxhQUFhLEdBQWtCO1FBQ25DLGdCQUFnQjtRQUNoQixvQkFBb0I7S0FDckIsQ0FBQTtJQUNELE9BQU87UUFDTCxhQUFhLEVBQUUsK0JBQWMsQ0FBQyxJQUFJLENBQUMsRUFBRSxFQUFFLGFBQWEsQ0FBQztRQUNyRCxPQUFPLEVBQUUsa0JBQVEsQ0FBQyxJQUFJLENBQUMsRUFBRSxFQUFFLGFBQWEsQ0FBQztLQUMxQyxDQUFBO0FBQ0gsQ0FBQztBQTNCRCxvQ0EyQkMifQ==
/// <reference types="node" />
import { AlgorithmSuiteIdentifier, KeyringNode, NodeEncryptionMaterial, EncryptionContext, NodeMaterialsManager, CommitmentPolicy } from '@aws-crypto/material-management-node';
import { AlgorithmSuiteIdentifier, KeyringNode, NodeEncryptionMaterial, EncryptionContext, NodeMaterialsManager, ClientOptions } from '@aws-crypto/material-management-node';
import { Duplex } from 'stream';

@@ -14,6 +14,7 @@ export interface EncryptStreamInput {

*
* @param commitmentPolicy
* @param cmm NodeMaterialsManager|KeyringNode
* @param op EncryptStreamInput
*/
export declare function _encryptStream(commitmentPolicy: CommitmentPolicy, cmm: KeyringNode | NodeMaterialsManager, op?: EncryptStreamInput): Duplex;
export declare function _encryptStream({ commitmentPolicy, maxEncryptedDataKeys }: ClientOptions, cmm: KeyringNode | NodeMaterialsManager, op?: EncryptStreamInput): Duplex;
export declare function getEncryptionInfo(material: NodeEncryptionMaterial, frameLength: number): {

@@ -20,0 +21,0 @@ getCipher: import("@aws-crypto/material-management-node").GetCipher;

@@ -23,8 +23,12 @@ "use strict";

*
* @param commitmentPolicy
* @param cmm NodeMaterialsManager|KeyringNode
* @param op EncryptStreamInput
*/
function _encryptStream(commitmentPolicy, cmm, op = {}) {
function _encryptStream({ commitmentPolicy, maxEncryptedDataKeys }, cmm, op = {}) {
/* Precondition: encryptStream needs a valid commitmentPolicy. */
material_management_node_1.needs(material_management_node_1.CommitmentPolicy[commitmentPolicy], 'Invalid commitment policy.');
// buildEncrypt defaults this to false for backwards compatibility, so this is satisfied
/* Precondition: encryptStream needs a valid maxEncryptedDataKeys. */
material_management_node_1.needs(maxEncryptedDataKeys === false || maxEncryptedDataKeys >= 1, 'Invalid maxEncryptedDataKeys value.');
const { suiteId, encryptionContext = {}, frameLength = serialize_1.FRAME_LENGTH, plaintextLength, } = op;

@@ -52,2 +56,5 @@ /* Precondition: The frameLength must be less than the maximum frame size Node.js stream. */

material_management_node_1.CommitmentPolicySuites.isEncryptEnabled(commitmentPolicy, material.suite);
/* Precondition: _encryptStream encryption materials must not exceed maxEncryptedDataKeys */
material_management_node_1.needs(maxEncryptedDataKeys === false ||
material.encryptedDataKeys.length <= maxEncryptedDataKeys, 'maxEncryptedDataKeys exceeded.');
const { getCipher, messageHeader, rawHeader, dispose, getSigner, } = getEncryptionInfo(material, frameLength);

@@ -106,2 +113,2 @@ wrappingStream.emit('MessageHeader', messageHeader);

exports.getEncryptionInfo = getEncryptionInfo;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5jcnlwdF9zdHJlYW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZW5jcnlwdF9zdHJlYW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLG9FQUFvRTtBQ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DRCxNQUFNLFlBQVksR0FBRyxNQUFNLENBQUMsSUFBSSxDQUFDLE1BQU0sRUFBRSxVQUFVLEVBQUUsVUFBVSxDQUFDLENBQUE7SUFDaEUsTUFBTSxRQUFRLEdBQUcsWUFBWSxDQUFDLFFBQVEsQ0FBQyxDQUFBO0lBQ3ZDLE1BQU0sY0FBYyxHQUFHLFNBQVMsQ0FBQyxRQUFRLENBQUMsQ0FBQTtJQUMxQyxjQUFjLENBQUMsTUFBTSxDQUFDLFlBQVksQ0FBQyxDQUFBO0lBQ25DLGNBQWMsQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFBO0lBQ3RDLGNBQWMsQ0FBQyxLQUFLLEVBQUUsQ0FBQTtJQUN0QixNQUFNLGFBQWEsR0FBRyxjQUFjLENBQUMsVUFBVSxFQUFFLENBQUE7SUFFakQsT0FBTztRQUNMLFNBQVM7UUFDVCxPQUFPO1FBQ1AsU0FBUztRQUNULGFBQWE7UUFDYixTQUFTLEVBQUU7WUFDVCxZQUFZO1lBQ1osc0NBQTBCLENBQUMsRUFBRSxRQUFRLEVBQUUsYUFBYSxFQUFFLGFBQWEsRUFBRSxDQUFDO1NBQ3ZFO0tBQ0YsQ0FBQTtBQUNILENBQUM7QUE5Q0QsOENBOENDIn0=
/// <reference types="node" />
import { KeyringNode, NodeMaterialsManager, CommitmentPolicy } from '@aws-crypto/material-management-node';
import { KeyringNode, NodeMaterialsManager, ClientOptions } from '@aws-crypto/material-management-node';
import { EncryptStreamInput } from './encrypt_stream';

@@ -13,3 +13,3 @@ import { Readable } from 'stream';

}
export declare function _encrypt(commitmentPolicy: CommitmentPolicy, cmm: KeyringNode | NodeMaterialsManager, plaintext: Buffer | Uint8Array | Readable | string | NodeJS.ReadableStream, op?: EncryptInput): Promise<EncryptOutput>;
export declare function _encrypt(clientOptions: ClientOptions, cmm: KeyringNode | NodeMaterialsManager, plaintext: Buffer | Uint8Array | Readable | string | NodeJS.ReadableStream, op?: EncryptInput): Promise<EncryptOutput>;
//# sourceMappingURL=encrypt.d.ts.map

@@ -9,3 +9,3 @@ "use strict";

const readable_stream_1 = require("readable-stream");
async function _encrypt(commitmentPolicy, cmm, plaintext, op = {}) {
async function _encrypt(clientOptions, cmm, plaintext, op = {}) {
const { encoding } = op;

@@ -19,3 +19,3 @@ if (plaintext instanceof Uint8Array) {

}
const stream = encrypt_stream_1._encryptStream(commitmentPolicy, cmm, op);
const stream = encrypt_stream_1._encryptStream(clientOptions, cmm, op);
const result = [];

@@ -52,2 +52,2 @@ let messageHeader = false;

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5jcnlwdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lbmNyeXB0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvRUFBb0U7QUFDcEUsc0NBQXNDOzs7QUFPdEMscURBQXFFO0FBRXJFLGFBQWE7QUFDYixxREFBMEM7QUFhbkMsS0FBSyxVQUFVLFFBQVEsQ0FDNUIsZ0JBQWtDLEVBQ2xDLEdBQXVDLEVBQ3ZDLFNBQTBFLEVBQzFFLEtBQW1CLEVBQUU7SUFFckIsTUFBTSxFQUFFLFFBQVEsRUFBRSxHQUFHLEVBQUUsQ0FBQTtJQUN2QixJQUFJLFNBQVMsWUFBWSxVQUFVLEVBQUU7UUFDbkMsRUFBRSxDQUFDLGVBQWUsR0FBRyxTQUFTLENBQUMsVUFBVSxDQUFBO0tBQzFDO1NBQU0sSUFBSSxPQUFPLFNBQVMsS0FBSyxRQUFRLEVBQUU7UUFDeEMsU0FBUyxHQUFHLE1BQU0sQ0FBQyxJQUFJLENBQUMsU0FBUyxFQUFFLFFBQVEsQ0FBQyxDQUFBO1FBQzVDLEVBQUUsQ0FBQyxlQUFlLEdBQUcsU0FBUyxDQUFDLFVBQVUsQ0FBQTtL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UFBRSxFQUFFO1FBQzNDLDBCQUFRLENBQUMsTUFBTSxFQUFFLENBQUMsR0FBVSxFQUFFLEVBQUUsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsTUFBTSxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxPQUFPLEVBQUUsQ0FBQyxDQUFDLENBQUE7SUFDbkUsQ0FBQyxDQUFDLENBQUE7QUFDSixDQUFDIn0=

@@ -33,18 +33,18 @@ /// <reference types="node" />

readonly writableCorked: number;
_write(chunk: any, encoding: string, callback: (error?: Error | null | undefined) => void): void;
_write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null | undefined) => void): void;
_writev?(chunks: {
chunk: any;
encoding: string;
encoding: BufferEncoding;
}[], callback: (error?: Error | null | undefined) => void): void;
_final(callback: (error?: Error | null | undefined) => void): void;
write(chunk: any, encoding?: string | undefined, cb?: ((error: Error | null | undefined) => void) | undefined): boolean;
write(chunk: any, encoding?: BufferEncoding | undefined, cb?: ((error: Error | null | undefined) => void) | undefined): boolean;
write(chunk: any, cb?: ((error: Error | null | undefined) => void) | undefined): boolean;
setDefaultEncoding(encoding: string): any;
setDefaultEncoding(encoding: BufferEncoding): any;
end(cb?: (() => void) | undefined): void;
end(chunk: any, cb?: (() => void) | undefined): void;
end(chunk: any, encoding?: string | undefined, cb?: (() => void) | undefined): void;
end(chunk: any, encoding?: BufferEncoding | undefined, cb?: (() => void) | undefined): void;
cork(): void;
uncork(): void;
readable: boolean;
readonly readableEncoding: "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | null;
readonly readableEncoding: BufferEncoding | null;
readonly readableEnded: boolean;

@@ -57,3 +57,3 @@ readonly readableFlowing: boolean | null;

read(size?: number | undefined): any;
setEncoding(encoding: string): any;
setEncoding(encoding: BufferEncoding): any;
pause(): any;

@@ -63,5 +63,5 @@ resume(): any;

unpipe(destination?: NodeJS.WritableStream | undefined): any;
unshift(chunk: any, encoding?: "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | undefined): void;
unshift(chunk: any, encoding?: BufferEncoding | undefined): void;
wrap(oldStream: NodeJS.ReadableStream): any;
push(chunk: any, encoding?: string | undefined): boolean;
push(chunk: any, encoding?: BufferEncoding | undefined): boolean;
destroy(error?: Error | undefined): void;

@@ -134,3 +134,3 @@ addListener(event: "close", listener: () => void): any;

rawListeners(event: string | symbol): Function[];
listenerCount(type: string | symbol): number;
listenerCount(event: string | symbol): number;
eventNames(): (string | symbol)[];

@@ -137,0 +137,0 @@ };

@@ -167,2 +167,2 @@ "use strict";

exports.getEncryptFrame = getEncryptFrame;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnJhbWVkX2VuY3J5cHRfc3RyZWFtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2ZyYW1lZF9lbmNyeXB0X3N0cmVhbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0VBQW9FO0FBQ3BFLHNDQUFzQzs7O0FBRXRDLHFEQUs4QjtBQUM5QixhQUFhO0FBQ2IscURBQWdFO0FBRWhFLG1GQUs2QztBQUU3QyxNQUFNLFFBQVEsR0FBRyxDQUFDLEtBQWEsRUFBRSxFQUFFLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxLQUFLLEVBQUUsTUFBTSxDQUFDLENBQUE7QUFDOUQsTUFBTSxTQUFTLEdBQUcsNEJBQWdCLENBQUMsUUFBUSxDQUFDLENBQUE7QUFDNUMsTUFBTSxFQUFFLGdCQUFnQixFQUFFLFdBQVcsRUFBRSxHQUFHLFNBQVMsQ0FBQTtBQUNuRCxNQUFNLFVBQVUsR0FBRyxzQkFBVSxDQUFDLFFBQVEsQ0FBQyxDQUFBO0FBZXZDLE1BQU0seUJBQXlCLEdBQUcsMkJ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iLENBQUMsQ0FBQTtJQUNGLE1BQU0sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLFVBQVUsRUFBRSxHQUFHLFVBQVUsQ0FBQyxVQUFVLENBQzlELFNBQVMsRUFDVCxhQUFhLEVBQ2IsY0FBYyxFQUNkLGFBQWEsQ0FDZCxDQUFBO0lBQ0QsTUFBTSxNQUFNLEdBQUcsU0FBUyxDQUFDLE9BQU8sQ0FBQyxDQUFBO0lBQ2pDLE1BQU0sQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxNQUFNLEVBQUUsVUFBVSxFQUFFLFVBQVUsQ0FBQyxDQUFDLENBQUE7SUFFMUQsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLFlBQVksRUFBRSxDQUFBO0FBQ3RELENBQUM7QUF2Q0QsMENBdUNDIn0=
import { _encryptStream } from './encrypt_stream';
import { _encrypt } from './encrypt';
import { CommitmentPolicy } from '@aws-crypto/material-management-node';
import { CommitmentPolicy, ClientOptions } from '@aws-crypto/material-management-node';
declare type CurryFirst<fn extends (...a: any[]) => any> = fn extends (_: any, ...tail: infer TAIL) => any ? TAIL : [];
export declare function buildEncrypt(commitmentPolicy: CommitmentPolicy): {
export declare function buildEncrypt(options: CommitmentPolicy | ClientOptions): {
encryptStream: (...args: CurryFirst<typeof _encryptStream>) => ReturnType<typeof _encryptStream>;

@@ -7,0 +7,0 @@ encrypt: (...args: CurryFirst<typeof _encrypt>) => ReturnType<typeof _encrypt>;

@@ -5,11 +5,18 @@ // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.

import { _encrypt } from './encrypt';
import { CommitmentPolicy, needs } from '@aws-crypto/material-management-node';
export function buildEncrypt(commitmentPolicy) {
import { CommitmentPolicy, needs, } from '@aws-crypto/material-management-node';
export function buildEncrypt(options) {
const { commitmentPolicy, maxEncryptedDataKeys = false } = typeof options === 'string' ? { commitmentPolicy: options } : options;
/* Precondition: node buildEncrypt needs a valid commitmentPolicy. */
needs(CommitmentPolicy[commitmentPolicy], 'Invalid commitment policy.');
/* Precondition: node buildEncrypt needs a valid maxEncryptedDataKeys. */
needs(maxEncryptedDataKeys === false || maxEncryptedDataKeys >= 1, 'Invalid maxEncryptedDataKeys value.');
const clientOptions = {
commitmentPolicy,
maxEncryptedDataKeys,
};
return {
encryptStream: _encryptStream.bind({}, commitmentPolicy),
encrypt: _encrypt.bind({}, commitmentPolicy),
encryptStream: _encryptStream.bind({}, clientOptions),
encrypt: _encrypt.bind({}, clientOptions),
};
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5jcnlwdF9jbGllbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZW5jcnlwdF9jbGllbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsb0VBQW9FO0FBQ3BFLHNDQUFzQztBQUV0QyxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sa0JBQWtCLENBQUE7QUFDakQsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLFdBQVcsQ0FBQTtBQUNwQyxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsS0FBSyxFQUFFLE1BQU0sc0NBQXNDLENBQUE7QUFTOUUsTUFBTSxVQUFVLFlBQVksQ0FDMUIsZ0JBQWtDO0lBT2xDLHFFQUFxRTtJQUNyRSxLQUFLLENBQUMsZ0JBQWdCLENBQUMsZ0JBQWdCLENBQUMsRUFBRSw0QkFBNEIsQ0FBQyxDQUFBO0lBQ3ZFLE9BQU87UUFDTCxhQUFhLEVBQUUsY0FBYyxDQUFDLElBQUksQ0FBQyxFQUFFLEVBQUUsZ0JBQWdCLENBQUM7UUFDeEQsT0FBTyxFQUFFLFFBQVEsQ0FBQyxJQUFJLENBQUMsRUFBRSxFQUFFLGdCQUFnQixDQUFDO0tBQzdDLENBQUE7QUFDSCxDQUFDIn0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UFPLEVBQUUsUUFBUSxDQUFDLElBQUksQ0FBQyxFQUFFLEVBQUUsYUFBYSxDQUFDO0tBQzFDLENBQUE7QUFDSCxDQUFDIn0=
/// <reference types="node" />
import { AlgorithmSuiteIdentifier, KeyringNode, NodeEncryptionMaterial, EncryptionContext, NodeMaterialsManager, CommitmentPolicy } from '@aws-crypto/material-management-node';
import { AlgorithmSuiteIdentifier, KeyringNode, NodeEncryptionMaterial, EncryptionContext, NodeMaterialsManager, ClientOptions } from '@aws-crypto/material-management-node';
import { Duplex } from 'stream';

@@ -14,6 +14,7 @@ export interface EncryptStreamInput {

*
* @param commitmentPolicy
* @param cmm NodeMaterialsManager|KeyringNode
* @param op EncryptStreamInput
*/
export declare function _encryptStream(commitmentPolicy: CommitmentPolicy, cmm: KeyringNode | NodeMaterialsManager, op?: EncryptStreamInput): Duplex;
export declare function _encryptStream({ commitmentPolicy, maxEncryptedDataKeys }: ClientOptions, cmm: KeyringNode | NodeMaterialsManager, op?: EncryptStreamInput): Duplex;
export declare function getEncryptionInfo(material: NodeEncryptionMaterial, frameLength: number): {

@@ -20,0 +21,0 @@ getCipher: import("@aws-crypto/material-management-node").GetCipher;

@@ -17,8 +17,12 @@ // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.

*
* @param commitmentPolicy
* @param cmm NodeMaterialsManager|KeyringNode
* @param op EncryptStreamInput
*/
export function _encryptStream(commitmentPolicy, cmm, op = {}) {
export function _encryptStream({ commitmentPolicy, maxEncryptedDataKeys }, cmm, op = {}) {
/* Precondition: encryptStream needs a valid commitmentPolicy. */
needs(CommitmentPolicy[commitmentPolicy], 'Invalid commitment policy.');
// buildEncrypt defaults this to false for backwards compatibility, so this is satisfied
/* Precondition: encryptStream needs a valid maxEncryptedDataKeys. */
needs(maxEncryptedDataKeys === false || maxEncryptedDataKeys >= 1, 'Invalid maxEncryptedDataKeys value.');
const { suiteId, encryptionContext = {}, frameLength = FRAME_LENGTH, plaintextLength, } = op;

@@ -46,2 +50,5 @@ /* Precondition: The frameLength must be less than the maximum frame size Node.js stream. */

CommitmentPolicySuites.isEncryptEnabled(commitmentPolicy, material.suite);
/* Precondition: _encryptStream encryption materials must not exceed maxEncryptedDataKeys */
needs(maxEncryptedDataKeys === false ||
material.encryptedDataKeys.length <= maxEncryptedDataKeys, 'maxEncryptedDataKeys exceeded.');
const { getCipher, messageHeader, rawHeader, dispose, getSigner, } = getEncryptionInfo(material, frameLength);

@@ -98,2 +105,2 @@ wrappingStream.emit('MessageHeader', messageHeader);

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5jcnlwdF9zdHJlYW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZW5jcnlwdF9zdHJlYW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsb0VBQW9FO0FBQ3BFLHNDQUFzQztBQUV0QyxPQUFPLEVBQ0wsd0NBQXdDLEVBQ3hDLGtCQUFrQixFQUVsQixXQUFXLEVBRVgsZ0JBQWdCLEVBR2hCLEtBQUssRUFDTCxnQkFBZ0IsRUFDaEIsc0JBQXNCLEVBQ3RCLGFBQWEsR0FDZCxNQUFNLHNDQUFzQyxDQUFBO0FBQzdDLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLHlCQUF5QixDQUFBO0FBQ2hFLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQTtBQUNwRCxPQUFPLFNBQVMsTUFBTSxXQUFXLENBQUE7QUFDakMsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLFFBQVEsQ0FBQTtBQUNwQyxPQUFPLEVBQ0wsZ0JBQWdCLEVBQ2hCLFlBQVksRUFDWixPQUFPLEVBQ1AsZUFBZSxFQUNmLDBCQUEwQixHQUMzQixNQUFNLHVCQUF1QixDQUFBO0FBRTlCLGFBQWE7QUFDYixPQUFPLEVBQUUsUUFBUSxFQUFFL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UFpQjtRQUNqQixpQkFBaUI7UUFDakIsU0FBUztRQUNULFdBQVc7UUFDWCxTQUFTLEVBQUUsYUFBYTtLQUN6QixDQUFDLENBQUE7SUFFRixNQUFNLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxVQUFVLEVBQUUsR0FBRyxzQkFBc0IsQ0FDL0QsYUFBYSxDQUNkLENBQUE7SUFDRCxNQUFNLFlBQVksR0FBRyxNQUFNLENBQUMsSUFBSSxDQUFDLE1BQU0sRUFBRSxVQUFVLEVBQUUsVUFBVSxDQUFDLENBQUE7SUFDaEUsTUFBTSxRQUFRLEdBQUcsWUFBWSxDQUFDLFFBQVEsQ0FBQyxDQUFBO0lBQ3ZDLE1BQU0sY0FBYyxHQUFHLFNBQVMsQ0FBQyxRQUFRLENBQUMsQ0FBQTtJQUMxQyxjQUFjLENBQUMsTUFBTSxDQUFDLFlBQVksQ0FBQyxDQUFBO0lBQ25DLGNBQWMsQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFBO0lBQ3RDLGNBQWMsQ0FBQyxLQUFLLEVBQUUsQ0FBQTtJQUN0QixNQUFNLGFBQWEsR0FBRyxjQUFjLENBQUMsVUFBVSxFQUFFLENBQUE7SUFFakQsT0FBTztRQUNMLFNBQVM7UUFDVCxPQUFPO1FBQ1AsU0FBUztRQUNULGFBQWE7UUFDYixTQUFTLEVBQUU7WUFDVCxZQUFZO1lBQ1osMEJBQTBCLENBQUMsRUFBRSxRQUFRLEVBQUUsYUFBYSxFQUFFLGFBQWEsRUFBRSxDQUFDO1NBQ3ZFO0tBQ0YsQ0FBQTtBQUNILENBQUMifQ==
/// <reference types="node" />
import { KeyringNode, NodeMaterialsManager, CommitmentPolicy } from '@aws-crypto/material-management-node';
import { KeyringNode, NodeMaterialsManager, ClientOptions } from '@aws-crypto/material-management-node';
import { EncryptStreamInput } from './encrypt_stream';

@@ -13,3 +13,3 @@ import { Readable } from 'stream';

}
export declare function _encrypt(commitmentPolicy: CommitmentPolicy, cmm: KeyringNode | NodeMaterialsManager, plaintext: Buffer | Uint8Array | Readable | string | NodeJS.ReadableStream, op?: EncryptInput): Promise<EncryptOutput>;
export declare function _encrypt(clientOptions: ClientOptions, cmm: KeyringNode | NodeMaterialsManager, plaintext: Buffer | Uint8Array | Readable | string | NodeJS.ReadableStream, op?: EncryptInput): Promise<EncryptOutput>;
//# sourceMappingURL=encrypt.d.ts.map

@@ -6,3 +6,3 @@ // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.

import { finished } from 'readable-stream';
export async function _encrypt(commitmentPolicy, cmm, plaintext, op = {}) {
export async function _encrypt(clientOptions, cmm, plaintext, op = {}) {
const { encoding } = op;

@@ -16,3 +16,3 @@ if (plaintext instanceof Uint8Array) {

}
const stream = _encryptStream(commitmentPolicy, cmm, op);
const stream = _encryptStream(clientOptions, cmm, op);
const result = [];

@@ -48,2 +48,2 @@ let messageHeader = false;

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5jcnlwdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lbmNyeXB0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLG9FQUFvRTtBQUNwRSxzQ0FBc0M7QUFPdEMsT0FBTyxFQUFFLGNBQWMsRUFBc0IsTUFBTSxrQkFBa0IsQ0FBQTtBQUVyRSxhQUFhO0FBQ2IsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGlCQUFpQixDQUFBO0FBYTFDLE1BQU0sQ0FBQyxLQUFLLFVBQVUsUUFBUSxDQUM1QixnQkFBa0MsRUFDbEMsR0FBdUMsRUFDdkMsU0FBMEUsRUFDMUUsS0FBbUIsRUFBRTtJQUVyQixNQUFNLEVBQUUsUUFBUSxFQUFFLEdBQUcsRUFBRSxDQUFBO0lBQ3ZCLElBQUksU0FBUyxZ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7SUFFRCxNQUFNLGFBQWEsQ0FBQyxNQUFNLENBQUMsQ0FBQTtJQUMzQixJQUFJLENBQUMsYUFBYTtRQUFFLE1BQU0sSUFBSSxLQUFLLENBQUMsZ0JBQWdCLENBQUMsQ0FBQTtJQUVyRCxPQUFPO1FBQ0wsTUFBTSxFQUFFLE1BQU0sQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDO1FBQzdCLGFBQWE7S0FDZCxDQUFBO0FBQ0gsQ0FBQztBQUVELEtBQUssVUFBVSxhQUFhLENBQUMsTUFBYztJQUN6QyxPQUFPLElBQUksT0FBTyxDQUFPLENBQUMsT0FBTyxFQUFFLE1BQU0sRUFBRSxFQUFFO1FBQzNDLFFBQVEsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxHQUFVLEVBQUUsRUFBRSxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDLE9BQU8sRUFBRSxDQUFDLENBQUMsQ0FBQTtJQUNuRSxDQUFDLENBQUMsQ0FBQTtBQUNKLENBQUMifQ==

@@ -33,18 +33,18 @@ /// <reference types="node" />

readonly writableCorked: number;
_write(chunk: any, encoding: string, callback: (error?: Error | null | undefined) => void): void;
_write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null | undefined) => void): void;
_writev?(chunks: {
chunk: any;
encoding: string;
encoding: BufferEncoding;
}[], callback: (error?: Error | null | undefined) => void): void;
_final(callback: (error?: Error | null | undefined) => void): void;
write(chunk: any, encoding?: string | undefined, cb?: ((error: Error | null | undefined) => void) | undefined): boolean;
write(chunk: any, encoding?: BufferEncoding | undefined, cb?: ((error: Error | null | undefined) => void) | undefined): boolean;
write(chunk: any, cb?: ((error: Error | null | undefined) => void) | undefined): boolean;
setDefaultEncoding(encoding: string): any;
setDefaultEncoding(encoding: BufferEncoding): any;
end(cb?: (() => void) | undefined): void;
end(chunk: any, cb?: (() => void) | undefined): void;
end(chunk: any, encoding?: string | undefined, cb?: (() => void) | undefined): void;
end(chunk: any, encoding?: BufferEncoding | undefined, cb?: (() => void) | undefined): void;
cork(): void;
uncork(): void;
readable: boolean;
readonly readableEncoding: "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | null;
readonly readableEncoding: BufferEncoding | null;
readonly readableEnded: boolean;

@@ -57,3 +57,3 @@ readonly readableFlowing: boolean | null;

read(size?: number | undefined): any;
setEncoding(encoding: string): any;
setEncoding(encoding: BufferEncoding): any;
pause(): any;

@@ -63,5 +63,5 @@ resume(): any;

unpipe(destination?: NodeJS.WritableStream | undefined): any;
unshift(chunk: any, encoding?: "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | undefined): void;
unshift(chunk: any, encoding?: BufferEncoding | undefined): void;
wrap(oldStream: NodeJS.ReadableStream): any;
push(chunk: any, encoding?: string | undefined): boolean;
push(chunk: any, encoding?: BufferEncoding | undefined): boolean;
destroy(error?: Error | undefined): void;

@@ -134,3 +134,3 @@ addListener(event: "close", listener: () => void): any;

rawListeners(event: string | symbol): Function[];
listenerCount(type: string | symbol): number;
listenerCount(event: string | symbol): number;
eventNames(): (string | symbol)[];

@@ -137,0 +137,0 @@ };

@@ -162,2 +162,2 @@ // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnJhbWVkX2VuY3J5cHRfc3RyZWFtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2ZyYW1lZF9lbmNyeXB0X3N0cmVhbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxvRUFBb0U7QUFDcEUsc0NBQXNDO0FBRXRDLE9BQU8sRUFDTCxnQkFBZ0IsRUFDaEIsVUFBVSxFQUVWLE9BQU8sR0FDUix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FLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLFlBQVksRUFBRSxDQUFBO0FBQ3RELENBQUMifQ==

@@ -6,2 +6,18 @@ # Change Log

# [1.9.0](https://github.com/aws/private-aws-encryption-sdk-javascript-staging/compare/@aws-crypto/encrypt-node@1.7.0...@aws-crypto/encrypt-node@1.9.0) (2021-05-27)
### Bug Fixes
* better typing from typescript ([7a32a7e](https://github.com/aws/private-aws-encryption-sdk-javascript-staging/commit/7a32a7e793fb4c334a8b1bf5f0747ac8498681b0))
### Features
* Improvements to the message decryption process ([#612](https://github.com/aws/private-aws-encryption-sdk-javascript-staging/issues/612)) ([1f09117](https://github.com/aws/private-aws-encryption-sdk-javascript-staging/commit/1f09117a0c08bd42cd1260e1b010d313ee6f5371))
# [1.7.0](https://github.com/aws/private-aws-encryption-sdk-javascript-staging/compare/@aws-crypto/encrypt-node@1.0.5...@aws-crypto/encrypt-node@1.7.0) (2020-09-24)

@@ -8,0 +24,0 @@

{
"name": "@aws-crypto/encrypt-node",
"version": "1.7.0",
"version": "1.9.0",
"scripts": {

@@ -20,8 +20,8 @@ "prepublishOnly": "tsc -p tsconfig.json && tsc -p tsconfig.module.json",

"dependencies": {
"@aws-crypto/material-management-node": "^1.7.0",
"@aws-crypto/serialize": "^1.7.0",
"@aws-crypto/material-management-node": "^1.9.0",
"@aws-crypto/serialize": "^1.9.0",
"@types/duplexify": "^3.6.0",
"duplexify": "^4.1.1",
"readable-stream": "^3.6.0",
"tslib": "^1.11.1"
"tslib": "^2.2.0"
},

@@ -35,3 +35,3 @@ "sideEffects": false,

],
"gitHead": "4469f3ec0ea8dc42ac5fec37ba0c207675d46e69"
"gitHead": "754ae40a40b0d7d839d8c72cbd083bb3848c8017"
}

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc