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

@aws-crypto/material-management-browser

Package Overview
Dependencies
Maintainers
8
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-crypto/material-management-browser - npm Package Compare versions

Comparing version 3.2.0 to 3.2.2

./build/main/src/index.js

8

build/main/src/browser_cryptographic_materials_manager.d.ts
import { WebCryptoMaterialsManager, EncryptionRequest, DecryptionRequest, EncryptionContext, WebCryptoAlgorithmSuite, WebCryptoEncryptionMaterial, WebCryptoDecryptionMaterial, KeyringWebCrypto, GetEncryptionMaterials, GetDecryptMaterials } from '@aws-crypto/material-management';
export declare type WebCryptoEncryptionRequest = EncryptionRequest<WebCryptoAlgorithmSuite>;
export declare type WebCryptoDecryptionRequest = DecryptionRequest<WebCryptoAlgorithmSuite>;
export declare type WebCryptoGetEncryptionMaterials = GetEncryptionMaterials<WebCryptoAlgorithmSuite>;
export declare type WebCryptoGetDecryptMaterials = GetDecryptMaterials<WebCryptoAlgorithmSuite>;
export type WebCryptoEncryptionRequest = EncryptionRequest<WebCryptoAlgorithmSuite>;
export type WebCryptoDecryptionRequest = DecryptionRequest<WebCryptoAlgorithmSuite>;
export type WebCryptoGetEncryptionMaterials = GetEncryptionMaterials<WebCryptoAlgorithmSuite>;
export type WebCryptoGetDecryptMaterials = GetDecryptMaterials<WebCryptoAlgorithmSuite>;
/**

@@ -7,0 +7,0 @@ * The WebCryptoDefaultCryptographicMaterialsManager is a specific implementation of the CryptographicMaterialsManager.

@@ -6,3 +6,7 @@ "use strict";

if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -44,2 +48,2 @@ if (k2 === undefined) k2 = k;

Object.defineProperty(exports, "MessageFormat", { enumerable: true, get: function () { return material_management_1.MessageFormat; } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLG9FQUFvRTtBQUNwRSxzQ0FBc0M7Ozs7Ozs7Ozs7Ozs7QUFFdEMsNEVBQXlEO0FBQ3pELHFEQUFrQztBQUNsQywrQ0FBNEI7QUFDNUIsb0RBQWlDO0FBQ2pDLHVFQThCd0M7QUE3QnRDLGtJQUFBLDJCQUEyQixPQUFBO0FBQzNCLGtJQUFBLDJCQUEyQixPQUFBO0FBQzNCLDhIQUFBLHVCQUF1QixPQUFBO0FBQ3ZCLCtIQUFBLHdCQUF3QixPQUFBO0FBRXhCLHVIQUFBLGdCQUFnQixPQUFBO0FBQ2hCLHVIQUFBLGdCQUFnQixPQUFBO0FBRWhCLHVIQUFBLGdCQUFnQixPQUFBO0FBQ2hCLDRHQUFBLEtBQUssT0FBQTtBQUVMLDRIQUFBLHFCQUFxQixPQUFBO0FBQ3JCLHlIQUFBLGtCQUFrQixPQUFBO0FBQ2xCLHFIQUFBLGNBQWMsT0FBQTtBQUNkLGtIQUFBLFdBQVcsT0FBQTtBQUNYLHVIQUFBLGdCQUFnQixPQUFBO0FBQ2hCLDBIQUFBLG1CQUFtQixPQUFBO0FBQ25CLHVIQUFBLGdCQUFnQixPQUFBO0FBQ2hCLGtIQUFBLFdBQVcsT0FBQTtBQUVYLG9IQUFBLGFBQWEsT0FBQTtBQUViLHVIQUFBLGdCQUFnQixPQUFBO0FBQ2hCLDZIQUFBLHNCQUFzQixPQUFBO0FBQ3RCLDRIQUFBLHFCQUFxQixPQUFBO0FBQ3JCLHNIQUFBLGVBQWUsT0FBQTtBQUNmLG9IQU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ncryptionMaterial, WebCryptoDecryptionMaterial, AwsEsdkJsCryptoKey, WebCryptoMaterial, SupportedAlgorithmSuites } from '@aws-crypto/material-management';

export declare const getDecryptionHelper: GetDecryptionHelper;
declare type SubtleFunctionName = 'encrypt' | 'decrypt';
declare type PickSubtleReturn<T extends SubtleFunctionName> = T extends 'encrypt' ? {
type SubtleFunctionName = 'encrypt' | 'decrypt';
type PickSubtleReturn<T extends SubtleFunctionName> = T extends 'encrypt' ? {
getSubtleEncrypt: GetSubtleEncrypt;
keyCommitment?: Uint8Array;
} : GetSubtleDecrypt;
export declare function currySubtleFunction<Material extends WebCryptoMaterial<Material>, Name extends SubtleFunctionName>(material: Material, backend: WebCryptoBackend, subtleFunctionName: Name): (messageId: Uint8Array, commitKey?: Uint8Array | undefined) => Promise<PickSubtleReturn<Name>>;
export declare function currySubtleFunction<Material extends WebCryptoMaterial<Material>, Name extends SubtleFunctionName>(material: Material, backend: WebCryptoBackend, subtleFunctionName: Name): (messageId: Uint8Array, commitKey?: Uint8Array) => Promise<PickSubtleReturn<Name>>;
export declare function WebCryptoKdf<T extends WebCryptoMaterial<T>>(subtle: SubtleCrypto, material: T, cryptoKey: AwsEsdkJsCryptoKey, keyUsages: SubtleFunctionName[], nonce: Uint8Array, commitKey?: Uint8Array): Promise<{

@@ -50,0 +50,0 @@ deriveKey: AwsEsdkJsCryptoKey;

import { WebCryptoMaterialsManager, EncryptionRequest, DecryptionRequest, EncryptionContext, WebCryptoAlgorithmSuite, WebCryptoEncryptionMaterial, WebCryptoDecryptionMaterial, KeyringWebCrypto, GetEncryptionMaterials, GetDecryptMaterials } from '@aws-crypto/material-management';
export declare type WebCryptoEncryptionRequest = EncryptionRequest<WebCryptoAlgorithmSuite>;
export declare type WebCryptoDecryptionRequest = DecryptionRequest<WebCryptoAlgorithmSuite>;
export declare type WebCryptoGetEncryptionMaterials = GetEncryptionMaterials<WebCryptoAlgorithmSuite>;
export declare type WebCryptoGetDecryptMaterials = GetDecryptMaterials<WebCryptoAlgorithmSuite>;
export type WebCryptoEncryptionRequest = EncryptionRequest<WebCryptoAlgorithmSuite>;
export type WebCryptoDecryptionRequest = DecryptionRequest<WebCryptoAlgorithmSuite>;
export type WebCryptoGetEncryptionMaterials = GetEncryptionMaterials<WebCryptoAlgorithmSuite>;
export type WebCryptoGetDecryptMaterials = GetDecryptMaterials<WebCryptoAlgorithmSuite>;
/**

@@ -7,0 +7,0 @@ * The WebCryptoDefaultCryptographicMaterialsManager is a specific implementation of the CryptographicMaterialsManager.

@@ -42,8 +42,8 @@ import { WebCryptoEncryptionMaterial, WebCryptoDecryptionMaterial, AwsEsdkJsCryptoKey, WebCryptoMaterial, SupportedAlgorithmSuites } from '@aws-crypto/material-management';

export declare const getDecryptionHelper: GetDecryptionHelper;
declare type SubtleFunctionName = 'encrypt' | 'decrypt';
declare type PickSubtleReturn<T extends SubtleFunctionName> = T extends 'encrypt' ? {
type SubtleFunctionName = 'encrypt' | 'decrypt';
type PickSubtleReturn<T extends SubtleFunctionName> = T extends 'encrypt' ? {
getSubtleEncrypt: GetSubtleEncrypt;
keyCommitment?: Uint8Array;
} : GetSubtleDecrypt;
export declare function currySubtleFunction<Material extends WebCryptoMaterial<Material>, Name extends SubtleFunctionName>(material: Material, backend: WebCryptoBackend, subtleFunctionName: Name): (messageId: Uint8Array, commitKey?: Uint8Array | undefined) => Promise<PickSubtleReturn<Name>>;
export declare function currySubtleFunction<Material extends WebCryptoMaterial<Material>, Name extends SubtleFunctionName>(material: Material, backend: WebCryptoBackend, subtleFunctionName: Name): (messageId: Uint8Array, commitKey?: Uint8Array) => Promise<PickSubtleReturn<Name>>;
export declare function WebCryptoKdf<T extends WebCryptoMaterial<T>>(subtle: SubtleCrypto, material: T, cryptoKey: AwsEsdkJsCryptoKey, keyUsages: SubtleFunctionName[], nonce: Uint8Array, commitKey?: Uint8Array): Promise<{

@@ -50,0 +50,0 @@ deriveKey: AwsEsdkJsCryptoKey;

{
"name": "@aws-crypto/material-management-browser",
"version": "3.2.0",
"version": "3.2.2",
"scripts": {

@@ -21,4 +21,4 @@ "prepublishOnly": "npm run build",

"dependencies": {
"@aws-crypto/material-management": "^3.2.0",
"@aws-crypto/serialize": "^3.2.0",
"@aws-crypto/material-management": "^3.2.2",
"@aws-crypto/serialize": "^3.2.2",
"@aws-crypto/web-crypto-backend": "^3.1.1",

@@ -35,3 +35,3 @@ "@aws-sdk/util-base64-browser": "3.1.0",

],
"gitHead": "7928be0e92615386490756d2372636b59b34dcd8"
"gitHead": "c97442ae9f1c35c918eb07549c137fb736eef811"
}

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