Socket
Socket
Sign inDemoInstall

@aws-crypto/sha256-js

Package Overview
Dependencies
3
Maintainers
4
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 1.0.0-alpha.0

CHANGELOG.md

2

build/constants.js

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

0x1f83d9ab,
0x5be0cd19,
0x5be0cd19
];

@@ -94,0 +94,0 @@ /**

@@ -1,1 +0,1 @@

export * from './jsSha256';
export * from "./jsSha256";

@@ -1,2 +0,2 @@

import { Hash, SourceData } from '@aws-sdk/types';
import { Hash, SourceData } from "@aws-sdk/types";
export declare class Sha256 implements Hash {

@@ -8,3 +8,4 @@ private readonly hash;

update(toHash: SourceData): void;
digestSync(): Uint8Array;
digest(): Promise<Uint8Array>;
}

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

function Sha256(secret) {
this.hash = new RawSha256_1.RawSha256;
this.hash = new RawSha256_1.RawSha256();
if (secret) {
this.outer = new RawSha256_1.RawSha256;
this.outer = new RawSha256_1.RawSha256();
var inner = bufferFromSecret(secret);

@@ -39,15 +39,26 @@ var outer = new Uint8Array(constants_1.BLOCK_SIZE);

};
/* This synchronous method keeps compatibility
* with the v2 aws-sdk.
*/
Sha256.prototype.digestSync = function () {
if (this.error) {
throw this.error;
}
if (this.outer) {
if (!this.outer.finished) {
this.outer.update(this.hash.digest());
}
return this.outer.digest();
}
return this.hash.digest();
};
/* The underlying digest method here is synchronous.
* To keep the same interface with the other hash functions
* the default is to expose this as an async method.
* However, it can sometimes be useful to have a sync method.
*/
Sha256.prototype.digest = function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib_1.__generator(this, function (_a) {
if (this.error) {
throw this.error;
}
if (this.outer) {
if (!this.outer.finished) {
this.outer.update(this.hash.digest());
}
return [2 /*return*/, this.outer.digest()];
}
return [2 /*return*/, this.hash.digest()];
return [2 /*return*/, this.digestSync()];
});

@@ -62,3 +73,3 @@ });

if (input.byteLength > constants_1.BLOCK_SIZE) {
var bufferHash = new RawSha256_1.RawSha256;
var bufferHash = new RawSha256_1.RawSha256();
bufferHash.update(input);

@@ -72,3 +83,3 @@ input = bufferHash.digest();

function isEmptyData(data) {
if (typeof data === 'string') {
if (typeof data === "string") {
return data.length === 0;

@@ -79,3 +90,3 @@ }

function convertToBuffer(data) {
if (typeof data === 'string') {
if (typeof data === "string") {
return util_utf8_browser_1.fromUtf8(data);

@@ -82,0 +93,0 @@ }

@@ -11,275 +11,275 @@ "use strict";

Uint8Array.from([97, 98, 99]),
util_hex_encoding_1.fromHex('ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad'),
util_hex_encoding_1.fromHex("ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad")
],
[
new Uint8Array(0),
util_hex_encoding_1.fromHex('e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855')
util_hex_encoding_1.fromHex("e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855")
],
[
util_hex_encoding_1.fromHex('61'),
util_hex_encoding_1.fromHex('ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb'),
util_hex_encoding_1.fromHex("61"),
util_hex_encoding_1.fromHex("ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb")
],
[
util_hex_encoding_1.fromHex('6161'),
util_hex_encoding_1.fromHex('961b6dd3ede3cb8ecbaacbd68de040cd78eb2ed5889130cceb4c49268ea4d506'),
util_hex_encoding_1.fromHex("6161"),
util_hex_encoding_1.fromHex("961b6dd3ede3cb8ecbaacbd68de040cd78eb2ed5889130cceb4c49268ea4d506")
],
[
util_hex_encoding_1.fromHex('616161'),
util_hex_encoding_1.fromHex('9834876dcfb05cb167a5c24953eba58c4ac89b1adf57f28f2f9d09af107ee8f0'),
util_hex_encoding_1.fromHex("616161"),
util_hex_encoding_1.fromHex("9834876dcfb05cb167a5c24953eba58c4ac89b1adf57f28f2f9d09af107ee8f0")
],
[
util_hex_encoding_1.fromHex('61616161'),
util_hex_encoding_1.fromHex('61be55a8e2f6b4e172338bddf184d6dbee29c98853e0a0485ecee7f27b9af0b4'),
util_hex_encoding_1.fromHex("61616161"),
util_hex_encoding_1.fromHex("61be55a8e2f6b4e172338bddf184d6dbee29c98853e0a0485ecee7f27b9af0b4")
],
[
util_hex_encoding_1.fromHex('6161616161'),
util_hex_encoding_1.fromHex('ed968e840d10d2d313a870bc131a4e2c311d7ad09bdf32b3418147221f51a6e2'),
util_hex_encoding_1.fromHex("6161616161"),
util_hex_encoding_1.fromHex("ed968e840d10d2d313a870bc131a4e2c311d7ad09bdf32b3418147221f51a6e2")
],
[
util_hex_encoding_1.fromHex('616161616161'),
util_hex_encoding_1.fromHex('ed02457b5c41d964dbd2f2a609d63fe1bb7528dbe55e1abf5b52c249cd735797'),
util_hex_encoding_1.fromHex("616161616161"),
util_hex_encoding_1.fromHex("ed02457b5c41d964dbd2f2a609d63fe1bb7528dbe55e1abf5b52c249cd735797")
],
[
util_hex_encoding_1.fromHex('61616161616161'),
util_hex_encoding_1.fromHex('e46240714b5db3a23eee60479a623efba4d633d27fe4f03c904b9e219a7fbe60'),
util_hex_encoding_1.fromHex("61616161616161"),
util_hex_encoding_1.fromHex("e46240714b5db3a23eee60479a623efba4d633d27fe4f03c904b9e219a7fbe60")
],
[
util_hex_encoding_1.fromHex('6161616161616161'),
util_hex_encoding_1.fromHex('1f3ce40415a2081fa3eee75fc39fff8e56c22270d1a978a7249b592dcebd20b4'),
util_hex_encoding_1.fromHex("6161616161616161"),
util_hex_encoding_1.fromHex("1f3ce40415a2081fa3eee75fc39fff8e56c22270d1a978a7249b592dcebd20b4")
],
[
util_hex_encoding_1.fromHex('616161616161616161'),
util_hex_encoding_1.fromHex('f2aca93b80cae681221f0445fa4e2cae8a1f9f8fa1e1741d9639caad222f537d'),
util_hex_encoding_1.fromHex("616161616161616161"),
util_hex_encoding_1.fromHex("f2aca93b80cae681221f0445fa4e2cae8a1f9f8fa1e1741d9639caad222f537d")
],
[
util_hex_encoding_1.fromHex('61616161616161616161'),
util_hex_encoding_1.fromHex('bf2cb58a68f684d95a3b78ef8f661c9a4e5b09e82cc8f9cc88cce90528caeb27'),
util_hex_encoding_1.fromHex("61616161616161616161"),
util_hex_encoding_1.fromHex("bf2cb58a68f684d95a3b78ef8f661c9a4e5b09e82cc8f9cc88cce90528caeb27")
],
[
util_hex_encoding_1.fromHex('6161616161616161616161'),
util_hex_encoding_1.fromHex('28cb017dfc99073aa1b47c1b30f413e3ce774c4991eb4158de50f9dbb36d8043'),
util_hex_encoding_1.fromHex("6161616161616161616161"),
util_hex_encoding_1.fromHex("28cb017dfc99073aa1b47c1b30f413e3ce774c4991eb4158de50f9dbb36d8043")
],
[
util_hex_encoding_1.fromHex('616161616161616161616161'),
util_hex_encoding_1.fromHex('f24abc34b13fade76e805799f71187da6cd90b9cac373ae65ed57f143bd664e5'),
util_hex_encoding_1.fromHex("616161616161616161616161"),
util_hex_encoding_1.fromHex("f24abc34b13fade76e805799f71187da6cd90b9cac373ae65ed57f143bd664e5")
],
[
util_hex_encoding_1.fromHex('61616161616161616161616161'),
util_hex_encoding_1.fromHex('a689d786e81340e45511dec6c7ab2d978434e5db123362450fe10cfac70d19d0'),
util_hex_encoding_1.fromHex("61616161616161616161616161"),
util_hex_encoding_1.fromHex("a689d786e81340e45511dec6c7ab2d978434e5db123362450fe10cfac70d19d0")
],
[
util_hex_encoding_1.fromHex('6161616161616161616161616161'),
util_hex_encoding_1.fromHex('82cab7df0abfb9d95dca4e5937ce2968c798c726fea48c016bf9763221efda13'),
util_hex_encoding_1.fromHex("6161616161616161616161616161"),
util_hex_encoding_1.fromHex("82cab7df0abfb9d95dca4e5937ce2968c798c726fea48c016bf9763221efda13")
],
[
util_hex_encoding_1.fromHex('616161616161616161616161616161'),
util_hex_encoding_1.fromHex('ef2df0b539c6c23de0f4cbe42648c301ae0e22e887340a4599fb4ef4e2678e48'),
util_hex_encoding_1.fromHex("616161616161616161616161616161"),
util_hex_encoding_1.fromHex("ef2df0b539c6c23de0f4cbe42648c301ae0e22e887340a4599fb4ef4e2678e48")
],
[
util_hex_encoding_1.fromHex('61616161616161616161616161616161'),
util_hex_encoding_1.fromHex('0c0beacef8877bbf2416eb00f2b5dc96354e26dd1df5517320459b1236860f8c'),
util_hex_encoding_1.fromHex("61616161616161616161616161616161"),
util_hex_encoding_1.fromHex("0c0beacef8877bbf2416eb00f2b5dc96354e26dd1df5517320459b1236860f8c")
],
[
util_hex_encoding_1.fromHex('6161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('b860666ee2966dd8f903be44ee605c6e1366f926d9f17a8f49937d11624eb99d'),
util_hex_encoding_1.fromHex("6161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("b860666ee2966dd8f903be44ee605c6e1366f926d9f17a8f49937d11624eb99d")
],
[
util_hex_encoding_1.fromHex('616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('c926defaaa3d13eda2fc63a553bb7fb7326bece6e7cb67ca5296e4727d89bab4'),
util_hex_encoding_1.fromHex("616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("c926defaaa3d13eda2fc63a553bb7fb7326bece6e7cb67ca5296e4727d89bab4")
],
[
util_hex_encoding_1.fromHex('61616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('a0b4aaab8a966e2193ba172d68162c4656860197f256b5f45f0203397ff3f99c'),
util_hex_encoding_1.fromHex("61616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("a0b4aaab8a966e2193ba172d68162c4656860197f256b5f45f0203397ff3f99c")
],
[
util_hex_encoding_1.fromHex('6161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('42492da06234ad0ac76f5d5debdb6d1ae027cffbe746a1c13b89bb8bc0139137'),
util_hex_encoding_1.fromHex("6161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("42492da06234ad0ac76f5d5debdb6d1ae027cffbe746a1c13b89bb8bc0139137")
],
[
util_hex_encoding_1.fromHex('616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('7df8e299c834de198e264c3e374bc58ecd9382252a705c183beb02f275571e3b'),
util_hex_encoding_1.fromHex("616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("7df8e299c834de198e264c3e374bc58ecd9382252a705c183beb02f275571e3b")
],
[
util_hex_encoding_1.fromHex('61616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('ec7c494df6d2a7ea36668d656e6b8979e33641bfea378c15038af3964db057a3'),
util_hex_encoding_1.fromHex("61616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("ec7c494df6d2a7ea36668d656e6b8979e33641bfea378c15038af3964db057a3")
],
[
util_hex_encoding_1.fromHex('6161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('897d3e95b65f26676081f8b9f3a98b6ee4424566303e8d4e7c7522ebae219eab'),
util_hex_encoding_1.fromHex("6161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("897d3e95b65f26676081f8b9f3a98b6ee4424566303e8d4e7c7522ebae219eab")
],
[
util_hex_encoding_1.fromHex('616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('09f61f8d9cd65e6a0c258087c485b6293541364e42bd97b2d7936580c8aa3c54'),
util_hex_encoding_1.fromHex("616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("09f61f8d9cd65e6a0c258087c485b6293541364e42bd97b2d7936580c8aa3c54")
],
[
util_hex_encoding_1.fromHex('61616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('2f521e2a7d0bd812cbc035f4ed6806eb8d851793b04ba147e8f66b72f5d1f20f'),
util_hex_encoding_1.fromHex("61616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("2f521e2a7d0bd812cbc035f4ed6806eb8d851793b04ba147e8f66b72f5d1f20f")
],
[
util_hex_encoding_1.fromHex('6161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('9976d549a25115dab4e36d0c1fb8f31cb07da87dd83275977360eb7dc09e88de'),
util_hex_encoding_1.fromHex("6161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("9976d549a25115dab4e36d0c1fb8f31cb07da87dd83275977360eb7dc09e88de")
],
[
util_hex_encoding_1.fromHex('616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('cc0616e61cbd6e8e5e34e9fb2d320f37de915820206f5696c31f1fbd24aa16de'),
util_hex_encoding_1.fromHex("616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("cc0616e61cbd6e8e5e34e9fb2d320f37de915820206f5696c31f1fbd24aa16de")
],
[
util_hex_encoding_1.fromHex('61616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('9c547cb8115a44883b9f70ba68f75117cd55359c92611875e386f8af98c172ab'),
util_hex_encoding_1.fromHex("61616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("9c547cb8115a44883b9f70ba68f75117cd55359c92611875e386f8af98c172ab")
],
[
util_hex_encoding_1.fromHex('6161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('6913c9c7fd42fe23df8b6bcd4dbaf1c17748948d97f2980b432319c39eddcf6c'),
util_hex_encoding_1.fromHex("6161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("6913c9c7fd42fe23df8b6bcd4dbaf1c17748948d97f2980b432319c39eddcf6c")
],
[
util_hex_encoding_1.fromHex('616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('3a54fc0cbc0b0ef48b6507b7788096235d10292dd3ae24e22f5aa062d4f9864a'),
util_hex_encoding_1.fromHex("616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("3a54fc0cbc0b0ef48b6507b7788096235d10292dd3ae24e22f5aa062d4f9864a")
],
[
util_hex_encoding_1.fromHex('61616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('61c60b487d1a921e0bcc9bf853dda0fb159b30bf57b2e2d2c753b00be15b5a09'),
util_hex_encoding_1.fromHex("61616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("61c60b487d1a921e0bcc9bf853dda0fb159b30bf57b2e2d2c753b00be15b5a09")
],
[
util_hex_encoding_1.fromHex('6161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('3ba3f5f43b92602683c19aee62a20342b084dd5971ddd33808d81a328879a547'),
util_hex_encoding_1.fromHex("6161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("3ba3f5f43b92602683c19aee62a20342b084dd5971ddd33808d81a328879a547")
],
[
util_hex_encoding_1.fromHex('616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('852785c805c77e71a22340a54e9d95933ed49121e7d2bf3c2d358854bc1359ea'),
util_hex_encoding_1.fromHex("616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("852785c805c77e71a22340a54e9d95933ed49121e7d2bf3c2d358854bc1359ea")
],
[
util_hex_encoding_1.fromHex('61616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('a27c896c4859204843166af66f0e902b9c3b3ed6d2fd13d435abc020065c526f'),
util_hex_encoding_1.fromHex("61616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("a27c896c4859204843166af66f0e902b9c3b3ed6d2fd13d435abc020065c526f")
],
[
util_hex_encoding_1.fromHex('6161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('629362afc62c74497caed2272e30f8125ecd0965f8d8d7cfc4e260f7f8dd319d'),
util_hex_encoding_1.fromHex("6161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("629362afc62c74497caed2272e30f8125ecd0965f8d8d7cfc4e260f7f8dd319d")
],
[
util_hex_encoding_1.fromHex('616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('22c1d24bcd03e9aee9832efccd6da613fc702793178e5f12c945c7b67ddda933'),
util_hex_encoding_1.fromHex("616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("22c1d24bcd03e9aee9832efccd6da613fc702793178e5f12c945c7b67ddda933")
],
[
util_hex_encoding_1.fromHex('61616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('21ec055b38ce759cd4d0f477e9bdec2c5b8199945db4439bae334a964df6246c'),
util_hex_encoding_1.fromHex("61616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("21ec055b38ce759cd4d0f477e9bdec2c5b8199945db4439bae334a964df6246c")
],
[
util_hex_encoding_1.fromHex('6161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('365a9c3e2c2af0a56e47a9dac51c2c5381bf8f41273bad3175e0e619126ad087'),
util_hex_encoding_1.fromHex("6161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("365a9c3e2c2af0a56e47a9dac51c2c5381bf8f41273bad3175e0e619126ad087")
],
[
util_hex_encoding_1.fromHex('616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('b4d5e56e929ba4cda349e9274e3603d0be246b82016bca20f363963c5f2d6845'),
util_hex_encoding_1.fromHex("616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("b4d5e56e929ba4cda349e9274e3603d0be246b82016bca20f363963c5f2d6845")
],
[
util_hex_encoding_1.fromHex('61616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('e33cdf9c7f7120b98e8c78408953e07f2ecd183006b5606df349b4c212acf43e'),
util_hex_encoding_1.fromHex("61616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("e33cdf9c7f7120b98e8c78408953e07f2ecd183006b5606df349b4c212acf43e")
],
[
util_hex_encoding_1.fromHex('6161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('c0f8bd4dbc2b0c03107c1c37913f2a7501f521467f45dd0fef6958e9a4692719'),
util_hex_encoding_1.fromHex("6161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("c0f8bd4dbc2b0c03107c1c37913f2a7501f521467f45dd0fef6958e9a4692719")
],
[
util_hex_encoding_1.fromHex('616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('7a538607fdaab9296995929f451565bbb8142e1844117322aafd2b3d76b01aff'),
util_hex_encoding_1.fromHex("616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("7a538607fdaab9296995929f451565bbb8142e1844117322aafd2b3d76b01aff")
],
[
util_hex_encoding_1.fromHex('61616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('66d34fba71f8f450f7e45598853e53bfc23bbd129027cbb131a2f4ffd7878cd0'),
util_hex_encoding_1.fromHex("61616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("66d34fba71f8f450f7e45598853e53bfc23bbd129027cbb131a2f4ffd7878cd0")
],
[
util_hex_encoding_1.fromHex('6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('16849877c6c21ef0bfa68e4f6747300ddb171b170b9f00e189edc4c2fc4db93e'),
util_hex_encoding_1.fromHex("6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("16849877c6c21ef0bfa68e4f6747300ddb171b170b9f00e189edc4c2fc4db93e")
],
[
util_hex_encoding_1.fromHex('616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('52789e3423b72beeb898456a4f49662e46b0cbb960784c5ef4b1399d327e7c27'),
util_hex_encoding_1.fromHex("616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("52789e3423b72beeb898456a4f49662e46b0cbb960784c5ef4b1399d327e7c27")
],
[
util_hex_encoding_1.fromHex('61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('6643110c5628fff59edf76d82d5bf573bf800f16a4d65dfb1e5d6f1a46296d0b'),
util_hex_encoding_1.fromHex("61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("6643110c5628fff59edf76d82d5bf573bf800f16a4d65dfb1e5d6f1a46296d0b")
],
[
util_hex_encoding_1.fromHex('6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('11eaed932c6c6fddfc2efc394e609facf4abe814fc6180d03b14fce13a07d0e5'),
util_hex_encoding_1.fromHex("6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("11eaed932c6c6fddfc2efc394e609facf4abe814fc6180d03b14fce13a07d0e5")
],
[
util_hex_encoding_1.fromHex('616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('97daac0ee9998dfcad6c9c0970da5ca411c86233a944c25b47566f6a7bc1ddd5'),
util_hex_encoding_1.fromHex("616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("97daac0ee9998dfcad6c9c0970da5ca411c86233a944c25b47566f6a7bc1ddd5")
],
[
util_hex_encoding_1.fromHex('61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('8f9bec6a62dd28ebd36d1227745592de6658b36974a3bb98a4c582f683ea6c42'),
util_hex_encoding_1.fromHex("61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("8f9bec6a62dd28ebd36d1227745592de6658b36974a3bb98a4c582f683ea6c42")
],
[
util_hex_encoding_1.fromHex('6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('160b4e433e384e05e537dc59b467f7cb2403f0214db15c5db58862a3f1156d2e'),
util_hex_encoding_1.fromHex("6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("160b4e433e384e05e537dc59b467f7cb2403f0214db15c5db58862a3f1156d2e")
],
[
util_hex_encoding_1.fromHex('616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('bfc5fe0e360152ca98c50fab4ed7e3078c17debc2917740d5000913b686ca129'),
util_hex_encoding_1.fromHex("616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("bfc5fe0e360152ca98c50fab4ed7e3078c17debc2917740d5000913b686ca129")
],
[
util_hex_encoding_1.fromHex('61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('6c1b3dc7a706b9dc81352a6716b9c666c608d8626272c64b914ab05572fc6e84'),
util_hex_encoding_1.fromHex("61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("6c1b3dc7a706b9dc81352a6716b9c666c608d8626272c64b914ab05572fc6e84")
],
[
util_hex_encoding_1.fromHex('6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('abe346a7259fc90b4c27185419628e5e6af6466b1ae9b5446cac4bfc26cf05c4'),
util_hex_encoding_1.fromHex("6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("abe346a7259fc90b4c27185419628e5e6af6466b1ae9b5446cac4bfc26cf05c4")
],
[
util_hex_encoding_1.fromHex('616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('a3f01b6939256127582ac8ae9fb47a382a244680806a3f613a118851c1ca1d47'),
util_hex_encoding_1.fromHex("616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("a3f01b6939256127582ac8ae9fb47a382a244680806a3f613a118851c1ca1d47")
],
[
util_hex_encoding_1.fromHex('61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('9f4390f8d30c2dd92ec9f095b65e2b9ae9b0a925a5258e241c9f1e910f734318'),
util_hex_encoding_1.fromHex("61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("9f4390f8d30c2dd92ec9f095b65e2b9ae9b0a925a5258e241c9f1e910f734318")
],
[
util_hex_encoding_1.fromHex('6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('b35439a4ac6f0948b6d6f9e3c6af0f5f590ce20f1bde7090ef7970686ec6738a'),
util_hex_encoding_1.fromHex("6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("b35439a4ac6f0948b6d6f9e3c6af0f5f590ce20f1bde7090ef7970686ec6738a")
],
[
util_hex_encoding_1.fromHex('616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('f13b2d724659eb3bf47f2dd6af1accc87b81f09f59f2b75e5c0bed6589dfe8c6'),
util_hex_encoding_1.fromHex("616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("f13b2d724659eb3bf47f2dd6af1accc87b81f09f59f2b75e5c0bed6589dfe8c6")
],
[
util_hex_encoding_1.fromHex('61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('d5c039b748aa64665782974ec3dc3025c042edf54dcdc2b5de31385b094cb678'),
util_hex_encoding_1.fromHex("61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("d5c039b748aa64665782974ec3dc3025c042edf54dcdc2b5de31385b094cb678")
],
[
util_hex_encoding_1.fromHex('6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('111bb261277afd65f0744b247cd3e47d386d71563d0ed995517807d5ebd4fba3'),
util_hex_encoding_1.fromHex("6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("111bb261277afd65f0744b247cd3e47d386d71563d0ed995517807d5ebd4fba3")
],
[
util_hex_encoding_1.fromHex('616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('11ee391211c6256460b6ed375957fadd8061cafbb31daf967db875aebd5aaad4'),
util_hex_encoding_1.fromHex("616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("11ee391211c6256460b6ed375957fadd8061cafbb31daf967db875aebd5aaad4")
],
[
util_hex_encoding_1.fromHex('61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('35d5fc17cfbbadd00f5e710ada39f194c5ad7c766ad67072245f1fad45f0f530'),
util_hex_encoding_1.fromHex("61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("35d5fc17cfbbadd00f5e710ada39f194c5ad7c766ad67072245f1fad45f0f530")
],
[
util_hex_encoding_1.fromHex('6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('f506898cc7c2e092f9eb9fadae7ba50383f5b46a2a4fe5597dbb553a78981268'),
util_hex_encoding_1.fromHex("6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("f506898cc7c2e092f9eb9fadae7ba50383f5b46a2a4fe5597dbb553a78981268")
],
[
util_hex_encoding_1.fromHex('616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('7d3e74a05d7db15bce4ad9ec0658ea98e3f06eeecf16b4c6fff2da457ddc2f34'),
util_hex_encoding_1.fromHex("616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("7d3e74a05d7db15bce4ad9ec0658ea98e3f06eeecf16b4c6fff2da457ddc2f34")
],
[
util_hex_encoding_1.fromHex('61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
util_hex_encoding_1.fromHex('ffe054fe7ae0cb6dc65c3af9b61d5209f439851db43d0ba5997337df154668eb'),
util_hex_encoding_1.fromHex("61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
util_hex_encoding_1.fromHex("ffe054fe7ae0cb6dc65c3af9b61d5209f439851db43d0ba5997337df154668eb")
],
[
util_hex_encoding_1.fromHex('de188941a3375d3a8a061e67576e926dc71a7fa3f0cceb97452b4d3227965f9ea8cc75076d9fb9c5417aa5cb30fc22198b34982dbb629e'),
util_hex_encoding_1.fromHex('038051e9c324393bd1ca1978dd0952c2aa3742ca4f1bd5cd4611cea83892d382'),
util_hex_encoding_1.fromHex("de188941a3375d3a8a061e67576e926dc71a7fa3f0cceb97452b4d3227965f9ea8cc75076d9fb9c5417aa5cb30fc22198b34982dbb629e"),
util_hex_encoding_1.fromHex("038051e9c324393bd1ca1978dd0952c2aa3742ca4f1bd5cd4611cea83892d382")
],
[
millionChars,
util_hex_encoding_1.fromHex('cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0'),
util_hex_encoding_1.fromHex("cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0")
],
[
util_hex_encoding_1.fromHex('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'),
util_hex_encoding_1.fromHex('45ad4b37c6e2fc0a2cfcc1b5da524132ec707615c2cae1dbbc43c97aa521db81')
util_hex_encoding_1.fromHex("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
util_hex_encoding_1.fromHex("45ad4b37c6e2fc0a2cfcc1b5da524132ec707615c2cae1dbbc43c97aa521db81")
]

@@ -292,32 +292,32 @@ ];

[
util_hex_encoding_1.fromHex('0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b'),
util_hex_encoding_1.fromHex('4869205468657265'),
util_hex_encoding_1.fromHex('b0344c61d8db38535ca8afceaf0bf12b881dc200c9833da726e9376c2e32cff7'),
util_hex_encoding_1.fromHex("0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b"),
util_hex_encoding_1.fromHex("4869205468657265"),
util_hex_encoding_1.fromHex("b0344c61d8db38535ca8afceaf0bf12b881dc200c9833da726e9376c2e32cff7")
],
[
util_hex_encoding_1.fromHex('4a656665'),
util_hex_encoding_1.fromHex('7768617420646f2079612077616e7420666f72206e6f7468696e673f'),
util_hex_encoding_1.fromHex('5bdcc146bf60754e6a042426089575c75a003f089d2739839dec58b964ec3843'),
util_hex_encoding_1.fromHex("4a656665"),
util_hex_encoding_1.fromHex("7768617420646f2079612077616e7420666f72206e6f7468696e673f"),
util_hex_encoding_1.fromHex("5bdcc146bf60754e6a042426089575c75a003f089d2739839dec58b964ec3843")
],
[
util_hex_encoding_1.fromHex('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'),
util_hex_encoding_1.fromHex('dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd'),
util_hex_encoding_1.fromHex('773ea91e36800e46854db8ebd09181a72959098b3ef8c122d9635514ced565fe'),
util_hex_encoding_1.fromHex("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
util_hex_encoding_1.fromHex("dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd"),
util_hex_encoding_1.fromHex("773ea91e36800e46854db8ebd09181a72959098b3ef8c122d9635514ced565fe")
],
[
util_hex_encoding_1.fromHex('0102030405060708090a0b0c0d0e0f10111213141516171819'),
util_hex_encoding_1.fromHex('cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd'),
util_hex_encoding_1.fromHex('82558a389a443c0ea4cc819899f2083a85f0faa3e578f8077a2e3ff46729665b'),
util_hex_encoding_1.fromHex("0102030405060708090a0b0c0d0e0f10111213141516171819"),
util_hex_encoding_1.fromHex("cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd"),
util_hex_encoding_1.fromHex("82558a389a443c0ea4cc819899f2083a85f0faa3e578f8077a2e3ff46729665b")
],
[
util_hex_encoding_1.fromHex('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'),
util_hex_encoding_1.fromHex('54657374205573696e67204c6172676572205468616e20426c6f636b2d53697a65204b6579202d2048617368204b6579204669727374'),
util_hex_encoding_1.fromHex('60e431591ee0b67f0d8a26aacbf5b77f8e0bc6213728c5140546040f0ee37f54'),
util_hex_encoding_1.fromHex("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
util_hex_encoding_1.fromHex("54657374205573696e67204c6172676572205468616e20426c6f636b2d53697a65204b6579202d2048617368204b6579204669727374"),
util_hex_encoding_1.fromHex("60e431591ee0b67f0d8a26aacbf5b77f8e0bc6213728c5140546040f0ee37f54")
],
[
util_hex_encoding_1.fromHex('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'),
util_hex_encoding_1.fromHex('5468697320697320612074657374207573696e672061206c6172676572207468616e20626c6f636b2d73697a65206b657920616e642061206c6172676572207468616e20626c6f636b2d73697a6520646174612e20546865206b6579206e6565647320746f20626520686173686564206265666f7265206265696e6720757365642062792074686520484d414320616c676f726974686d2e'),
util_hex_encoding_1.fromHex('9b09ffa71b942fcb27635fbcd5b0e944bfdc63644f0713938a7f51535c3a35e2'),
],
util_hex_encoding_1.fromHex("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
util_hex_encoding_1.fromHex("5468697320697320612074657374207573696e672061206c6172676572207468616e20626c6f636b2d73697a65206b657920616e642061206c6172676572207468616e20626c6f636b2d73697a6520646174612e20546865206b6579206e6565647320746f20626520686173686564206265666f7265206265696e6720757365642062792074686520484d414320616c676f726974686d2e"),
util_hex_encoding_1.fromHex("9b09ffa71b942fcb27635fbcd5b0e944bfdc63644f0713938a7f51535c3a35e2")
]
];
//# sourceMappingURL=knownHashes.fixture.js.map

@@ -76,27 +76,28 @@ "use strict";

if (i < 16) {
this.temp[i] = (((buffer[i * 4] & 0xff) << 24) |
((buffer[(i * 4) + 1] & 0xff) << 16) |
((buffer[(i * 4) + 2] & 0xff) << 8) |
(buffer[(i * 4) + 3] & 0xff));
this.temp[i] =
((buffer[i * 4] & 0xff) << 24) |
((buffer[i * 4 + 1] & 0xff) << 16) |
((buffer[i * 4 + 2] & 0xff) << 8) |
(buffer[i * 4 + 3] & 0xff);
}
else {
var u = this.temp[i - 2];
var t1_1 = (u >>> 17 | u << 15) ^
(u >>> 19 | u << 13) ^
(u >>> 10);
var t1_1 = ((u >>> 17) | (u << 15)) ^ ((u >>> 19) | (u << 13)) ^ (u >>> 10);
u = this.temp[i - 15];
var t2_1 = (u >>> 7 | u << 25) ^
(u >>> 18 | u << 14) ^
(u >>> 3);
this.temp[i] = (t1_1 + this.temp[i - 7] | 0) +
(t2_1 + this.temp[i - 16] | 0);
var t2_1 = ((u >>> 7) | (u << 25)) ^ ((u >>> 18) | (u << 14)) ^ (u >>> 3);
this.temp[i] =
((t1_1 + this.temp[i - 7]) | 0) + ((t2_1 + this.temp[i - 16]) | 0);
}
var t1 = (((((state4 >>> 6 | state4 << 26) ^
(state4 >>> 11 | state4 << 21) ^
(state4 >>> 25 | state4 << 7))
+ ((state4 & state5) ^ (~state4 & state6))) | 0)
+ ((state7 + ((constants_1.KEY[i] + this.temp[i]) | 0)) | 0)) | 0;
var t2 = (((state0 >>> 2 | state0 << 30) ^
(state0 >>> 13 | state0 << 19) ^
(state0 >>> 22 | state0 << 10)) + ((state0 & state1) ^ (state0 & state2) ^ (state1 & state2))) | 0;
var t1 = ((((((state4 >>> 6) | (state4 << 26)) ^
((state4 >>> 11) | (state4 << 21)) ^
((state4 >>> 25) | (state4 << 7))) +
((state4 & state5) ^ (~state4 & state6))) |
0) +
((state7 + ((constants_1.KEY[i] + this.temp[i]) | 0)) | 0)) |
0;
var t2 = ((((state0 >>> 2) | (state0 << 30)) ^
((state0 >>> 13) | (state0 << 19)) ^
((state0 >>> 22) | (state0 << 10))) +
((state0 & state1) ^ (state0 & state2) ^ (state1 & state2))) |
0;
state7 = state6;

@@ -103,0 +104,0 @@ state6 = state5;

{
"name": "@aws-crypto/sha256-js",
"version": "0.1.0",
"version": "1.0.0-alpha.0",
"scripts": {

@@ -11,25 +11,18 @@ "prepublishOnly": "tsc",

"types": "./build/index.d.ts",
"repository": {
"type": "git",
"url": "git@github.com:aws/aws-sdk-js-crypto-helpers.git"
},
"author": {
"name": "AWS Crypto Tools Team",
"email": "aws-cryptools@amazon.com",
"url": "https://aws.amazon.com/javascript/"
"url": "https://docs.aws.amazon.com/aws-crypto-tools/index.html?id=docs_gateway#lang/en_us"
},
"license": "Apache-2.0",
"dependencies": {
"@aws-sdk/types": "^0.1.0",
"@aws-sdk/util-utf8-browser": "^0.1.0",
"@aws-sdk/types": "^1.0.0-alpha.0",
"@aws-sdk/util-utf8-browser": "^1.0.0-alpha.0",
"tslib": "^1.9.3"
},
"devDependencies": {
"@aws-sdk/util-hex-encoding": "^0.1.0",
"@types/chai": "^4.1.4",
"@types/mocha": "^5.2.5",
"@types/sinon": "^5.0.2",
"chai": "^4.1.2",
"mocha": "^5.2.0",
"nyc": "^13.0.1",
"sinon": "^6.3.4",
"ts-node": "^7.0.1",
"typescript": "^3.0.1"
}
"gitHead": "1aeaf55c8803ae537cc03fef3541dc8567983b9b"
}

@@ -8,3 +8,3 @@ # crypto-sha256-js

```
import {Sha256} from '@aws/crypto-sha256-js';
import {Sha256} from '@aws-crypto/crypto-sha256-js';

@@ -11,0 +11,0 @@ const hash = new Sha256();

@@ -9,7 +9,3 @@ {

"downlevelIteration": true,
"lib": [
"es5",
"es2015.promise",
"es2015.collection"
],
"lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable"],
"rootDir": "./src",

@@ -22,2 +18,2 @@ "outDir": "./build",

"exclude": ["node_modules/**"]
}
}

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc