@cdk8s/awscdk-resolver 0.0.615 → 0.0.616
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +3 -3
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +35 -20
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/enums.js +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.browser.js +0 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.native.js +0 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/schemas/schemas_0.js +25 -17
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CreateChangeSetCommand.d.ts +5 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CreateStackCommand.d.ts +5 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeleteStackCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeChangeSetCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStacksCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/RollbackStackCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackCommand.d.ts +5 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/enums.d.ts +12 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +107 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/schemas/schemas_0.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/enums.d.ts +6 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_0.d.ts +15 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/package.json +6 -8
- package/node_modules/@aws-sdk/core/package.json +4 -5
- package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +4 -3
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +4 -3
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +4 -3
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +4 -3
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +4 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.browser.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.native.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.browser.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.native.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.browser.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.native.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.native.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.browser.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.native.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +6 -8
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +4 -4
- package/package.json +3 -3
- package/node_modules/@aws-crypto/sha256-browser/CHANGELOG.md +0 -118
- package/node_modules/@aws-crypto/sha256-browser/LICENSE +0 -202
- package/node_modules/@aws-crypto/sha256-browser/README.md +0 -31
- package/node_modules/@aws-crypto/sha256-browser/build/main/constants.d.ts +0 -10
- package/node_modules/@aws-crypto/sha256-browser/build/main/constants.js +0 -43
- package/node_modules/@aws-crypto/sha256-browser/build/main/constants.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-browser/build/main/crossPlatformSha256.d.ts +0 -8
- package/node_modules/@aws-crypto/sha256-browser/build/main/crossPlatformSha256.js +0 -30
- package/node_modules/@aws-crypto/sha256-browser/build/main/crossPlatformSha256.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-browser/build/main/index.d.ts +0 -2
- package/node_modules/@aws-crypto/sha256-browser/build/main/index.js +0 -8
- package/node_modules/@aws-crypto/sha256-browser/build/main/index.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-browser/build/main/isEmptyData.d.ts +0 -2
- package/node_modules/@aws-crypto/sha256-browser/build/main/isEmptyData.js +0 -11
- package/node_modules/@aws-crypto/sha256-browser/build/main/isEmptyData.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-browser/build/main/webCryptoSha256.d.ts +0 -10
- package/node_modules/@aws-crypto/sha256-browser/build/main/webCryptoSha256.js +0 -56
- package/node_modules/@aws-crypto/sha256-browser/build/main/webCryptoSha256.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-browser/build/module/constants.d.ts +0 -10
- package/node_modules/@aws-crypto/sha256-browser/build/module/constants.js +0 -40
- package/node_modules/@aws-crypto/sha256-browser/build/module/constants.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-browser/build/module/crossPlatformSha256.d.ts +0 -8
- package/node_modules/@aws-crypto/sha256-browser/build/module/crossPlatformSha256.js +0 -27
- package/node_modules/@aws-crypto/sha256-browser/build/module/crossPlatformSha256.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-browser/build/module/index.d.ts +0 -2
- package/node_modules/@aws-crypto/sha256-browser/build/module/index.js +0 -3
- package/node_modules/@aws-crypto/sha256-browser/build/module/index.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-browser/build/module/isEmptyData.d.ts +0 -2
- package/node_modules/@aws-crypto/sha256-browser/build/module/isEmptyData.js +0 -7
- package/node_modules/@aws-crypto/sha256-browser/build/module/isEmptyData.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-browser/build/module/webCryptoSha256.d.ts +0 -10
- package/node_modules/@aws-crypto/sha256-browser/build/module/webCryptoSha256.js +0 -53
- package/node_modules/@aws-crypto/sha256-browser/build/module/webCryptoSha256.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-browser/package.json +0 -33
- package/node_modules/@aws-crypto/sha256-browser/src/constants.ts +0 -41
- package/node_modules/@aws-crypto/sha256-browser/src/crossPlatformSha256.ts +0 -30
- package/node_modules/@aws-crypto/sha256-browser/src/index.ts +0 -2
- package/node_modules/@aws-crypto/sha256-browser/src/isEmptyData.ts +0 -9
- package/node_modules/@aws-crypto/sha256-browser/src/webCryptoSha256.ts +0 -71
- package/node_modules/@aws-crypto/sha256-browser/tsconfig.json +0 -10
- package/node_modules/@aws-crypto/sha256-browser/tsconfig.module.json +0 -7
- package/node_modules/@aws-crypto/sha256-js/CHANGELOG.md +0 -106
- package/node_modules/@aws-crypto/sha256-js/LICENSE +0 -201
- package/node_modules/@aws-crypto/sha256-js/README.md +0 -29
- package/node_modules/@aws-crypto/sha256-js/build/main/RawSha256.d.ts +0 -17
- package/node_modules/@aws-crypto/sha256-js/build/main/RawSha256.js +0 -124
- package/node_modules/@aws-crypto/sha256-js/build/main/RawSha256.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-js/build/main/constants.d.ts +0 -20
- package/node_modules/@aws-crypto/sha256-js/build/main/constants.js +0 -98
- package/node_modules/@aws-crypto/sha256-js/build/main/constants.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-js/build/main/index.d.ts +0 -1
- package/node_modules/@aws-crypto/sha256-js/build/main/index.js +0 -5
- package/node_modules/@aws-crypto/sha256-js/build/main/index.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-js/build/main/jsSha256.d.ts +0 -12
- package/node_modules/@aws-crypto/sha256-js/build/main/jsSha256.js +0 -85
- package/node_modules/@aws-crypto/sha256-js/build/main/jsSha256.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-js/build/main/knownHashes.fixture.d.ts +0 -5
- package/node_modules/@aws-crypto/sha256-js/build/main/knownHashes.fixture.js +0 -322
- package/node_modules/@aws-crypto/sha256-js/build/main/knownHashes.fixture.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-js/build/module/RawSha256.d.ts +0 -17
- package/node_modules/@aws-crypto/sha256-js/build/module/RawSha256.js +0 -121
- package/node_modules/@aws-crypto/sha256-js/build/module/RawSha256.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-js/build/module/constants.d.ts +0 -20
- package/node_modules/@aws-crypto/sha256-js/build/module/constants.js +0 -95
- package/node_modules/@aws-crypto/sha256-js/build/module/constants.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-js/build/module/index.d.ts +0 -1
- package/node_modules/@aws-crypto/sha256-js/build/module/index.js +0 -2
- package/node_modules/@aws-crypto/sha256-js/build/module/index.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-js/build/module/jsSha256.d.ts +0 -12
- package/node_modules/@aws-crypto/sha256-js/build/module/jsSha256.js +0 -82
- package/node_modules/@aws-crypto/sha256-js/build/module/jsSha256.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-js/build/module/knownHashes.fixture.d.ts +0 -5
- package/node_modules/@aws-crypto/sha256-js/build/module/knownHashes.fixture.js +0 -319
- package/node_modules/@aws-crypto/sha256-js/build/module/knownHashes.fixture.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-js/package.json +0 -32
- package/node_modules/@aws-crypto/sha256-js/src/RawSha256.ts +0 -164
- package/node_modules/@aws-crypto/sha256-js/src/constants.ts +0 -98
- package/node_modules/@aws-crypto/sha256-js/src/index.ts +0 -1
- package/node_modules/@aws-crypto/sha256-js/src/jsSha256.ts +0 -94
- package/node_modules/@aws-crypto/sha256-js/src/knownHashes.fixture.ts +0 -401
- package/node_modules/@aws-crypto/sha256-js/tsconfig.json +0 -10
- package/node_modules/@aws-crypto/sha256-js/tsconfig.module.json +0 -7
- package/node_modules/@aws-crypto/supports-web-crypto/CHANGELOG.md +0 -66
- package/node_modules/@aws-crypto/supports-web-crypto/LICENSE +0 -202
- package/node_modules/@aws-crypto/supports-web-crypto/README.md +0 -32
- package/node_modules/@aws-crypto/supports-web-crypto/build/main/index.d.ts +0 -1
- package/node_modules/@aws-crypto/supports-web-crypto/build/main/index.js +0 -5
- package/node_modules/@aws-crypto/supports-web-crypto/build/main/index.js.map +0 -1
- package/node_modules/@aws-crypto/supports-web-crypto/build/main/supportsWebCrypto.d.ts +0 -4
- package/node_modules/@aws-crypto/supports-web-crypto/build/main/supportsWebCrypto.js +0 -69
- package/node_modules/@aws-crypto/supports-web-crypto/build/main/supportsWebCrypto.js.map +0 -1
- package/node_modules/@aws-crypto/supports-web-crypto/build/module/index.d.ts +0 -1
- package/node_modules/@aws-crypto/supports-web-crypto/build/module/index.js +0 -2
- package/node_modules/@aws-crypto/supports-web-crypto/build/module/index.js.map +0 -1
- package/node_modules/@aws-crypto/supports-web-crypto/build/module/supportsWebCrypto.d.ts +0 -4
- package/node_modules/@aws-crypto/supports-web-crypto/build/module/supportsWebCrypto.js +0 -62
- package/node_modules/@aws-crypto/supports-web-crypto/build/module/supportsWebCrypto.js.map +0 -1
- package/node_modules/@aws-crypto/supports-web-crypto/package.json +0 -28
- package/node_modules/@aws-crypto/supports-web-crypto/src/index.ts +0 -1
- package/node_modules/@aws-crypto/supports-web-crypto/src/supportsWebCrypto.ts +0 -76
- package/node_modules/@aws-crypto/supports-web-crypto/tsconfig.json +0 -10
- package/node_modules/@aws-crypto/supports-web-crypto/tsconfig.module.json +0 -7
- package/node_modules/@aws-crypto/util/CHANGELOG.md +0 -71
- package/node_modules/@aws-crypto/util/LICENSE +0 -201
- package/node_modules/@aws-crypto/util/README.md +0 -16
- package/node_modules/@aws-crypto/util/build/main/convertToBuffer.d.ts +0 -2
- package/node_modules/@aws-crypto/util/build/main/convertToBuffer.js +0 -24
- package/node_modules/@aws-crypto/util/build/main/convertToBuffer.js.map +0 -1
- package/node_modules/@aws-crypto/util/build/main/index.d.ts +0 -4
- package/node_modules/@aws-crypto/util/build/main/index.js +0 -14
- package/node_modules/@aws-crypto/util/build/main/index.js.map +0 -1
- package/node_modules/@aws-crypto/util/build/main/isEmptyData.d.ts +0 -2
- package/node_modules/@aws-crypto/util/build/main/isEmptyData.js +0 -13
- package/node_modules/@aws-crypto/util/build/main/isEmptyData.js.map +0 -1
- package/node_modules/@aws-crypto/util/build/main/numToUint8.d.ts +0 -1
- package/node_modules/@aws-crypto/util/build/main/numToUint8.js +0 -15
- package/node_modules/@aws-crypto/util/build/main/numToUint8.js.map +0 -1
- package/node_modules/@aws-crypto/util/build/main/uint32ArrayFrom.d.ts +0 -1
- package/node_modules/@aws-crypto/util/build/main/uint32ArrayFrom.js +0 -20
- package/node_modules/@aws-crypto/util/build/main/uint32ArrayFrom.js.map +0 -1
- package/node_modules/@aws-crypto/util/build/module/convertToBuffer.d.ts +0 -2
- package/node_modules/@aws-crypto/util/build/module/convertToBuffer.js +0 -20
- package/node_modules/@aws-crypto/util/build/module/convertToBuffer.js.map +0 -1
- package/node_modules/@aws-crypto/util/build/module/index.d.ts +0 -4
- package/node_modules/@aws-crypto/util/build/module/index.js +0 -7
- package/node_modules/@aws-crypto/util/build/module/index.js.map +0 -1
- package/node_modules/@aws-crypto/util/build/module/isEmptyData.d.ts +0 -2
- package/node_modules/@aws-crypto/util/build/module/isEmptyData.js +0 -9
- package/node_modules/@aws-crypto/util/build/module/isEmptyData.js.map +0 -1
- package/node_modules/@aws-crypto/util/build/module/numToUint8.d.ts +0 -1
- package/node_modules/@aws-crypto/util/build/module/numToUint8.js +0 -11
- package/node_modules/@aws-crypto/util/build/module/numToUint8.js.map +0 -1
- package/node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.d.ts +0 -1
- package/node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.js +0 -16
- package/node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.js.map +0 -1
- package/node_modules/@aws-crypto/util/package.json +0 -32
- package/node_modules/@aws-crypto/util/src/convertToBuffer.ts +0 -30
- package/node_modules/@aws-crypto/util/src/index.ts +0 -7
- package/node_modules/@aws-crypto/util/src/isEmptyData.ts +0 -12
- package/node_modules/@aws-crypto/util/src/numToUint8.ts +0 -11
- package/node_modules/@aws-crypto/util/src/uint32ArrayFrom.ts +0 -16
- package/node_modules/@aws-crypto/util/tsconfig.json +0 -9
- package/node_modules/@aws-crypto/util/tsconfig.module.json +0 -7
- package/node_modules/@aws-sdk/util-locate-window/LICENSE +0 -201
- package/node_modules/@aws-sdk/util-locate-window/README.md +0 -4
- package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +0 -12
- package/node_modules/@aws-sdk/util-locate-window/dist-es/index.js +0 -10
- package/node_modules/@aws-sdk/util-locate-window/dist-types/index.d.ts +0 -6
- package/node_modules/@aws-sdk/util-locate-window/dist-types/ts3.4/index.d.ts +0 -1
- package/node_modules/@aws-sdk/util-locate-window/package.json +0 -54
- package/node_modules/@smithy/is-array-buffer/LICENSE +0 -201
- package/node_modules/@smithy/is-array-buffer/README.md +0 -10
- package/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +0 -32
- package/node_modules/@smithy/is-array-buffer/dist-es/index.js +0 -2
- package/node_modules/@smithy/is-array-buffer/dist-types/index.d.ts +0 -4
- package/node_modules/@smithy/is-array-buffer/dist-types/ts3.4/index.d.ts +0 -4
- package/node_modules/@smithy/is-array-buffer/package.json +0 -60
- package/node_modules/@smithy/util-buffer-from/LICENSE +0 -201
- package/node_modules/@smithy/util-buffer-from/README.md +0 -10
- package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +0 -47
- package/node_modules/@smithy/util-buffer-from/dist-es/index.js +0 -14
- package/node_modules/@smithy/util-buffer-from/dist-types/index.d.ts +0 -13
- package/node_modules/@smithy/util-buffer-from/dist-types/ts3.4/index.d.ts +0 -13
- package/node_modules/@smithy/util-buffer-from/package.json +0 -61
- package/node_modules/@smithy/util-utf8/LICENSE +0 -201
- package/node_modules/@smithy/util-utf8/README.md +0 -4
- package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/index.js +0 -65
- package/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js +0 -5
- package/node_modules/@smithy/util-utf8/dist-es/index.js +0 -3
- package/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js +0 -10
- package/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +0 -9
- package/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +0 -10
- package/node_modules/@smithy/util-utf8/dist-types/fromUtf8.browser.d.ts +0 -1
- package/node_modules/@smithy/util-utf8/dist-types/fromUtf8.d.ts +0 -1
- package/node_modules/@smithy/util-utf8/dist-types/index.d.ts +0 -3
- package/node_modules/@smithy/util-utf8/dist-types/toUint8Array.d.ts +0 -1
- package/node_modules/@smithy/util-utf8/dist-types/toUtf8.browser.d.ts +0 -7
- package/node_modules/@smithy/util-utf8/dist-types/toUtf8.d.ts +0 -7
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.browser.d.ts +0 -1
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.d.ts +0 -1
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/index.d.ts +0 -3
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUint8Array.d.ts +0 -1
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.browser.d.ts +0 -7
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.d.ts +0 -7
- package/node_modules/@smithy/util-utf8/package.json +0 -66
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# crypto-sha256-js
|
|
2
|
-
|
|
3
|
-
A pure JS implementation SHA256.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
- To hash "some data"
|
|
8
|
-
```
|
|
9
|
-
import {Sha256} from '@aws-crypto/sha256-js';
|
|
10
|
-
|
|
11
|
-
const hash = new Sha256();
|
|
12
|
-
hash.update('some data');
|
|
13
|
-
const result = await hash.digest();
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
- To hmac "some data" with "a key"
|
|
18
|
-
```
|
|
19
|
-
import {Sha256} from '@aws-crypto/sha256-js';
|
|
20
|
-
|
|
21
|
-
const hash = new Sha256('a key');
|
|
22
|
-
hash.update('some data');
|
|
23
|
-
const result = await hash.digest();
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Test
|
|
28
|
-
|
|
29
|
-
`npm test`
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @internal
|
|
3
|
-
*/
|
|
4
|
-
export declare class RawSha256 {
|
|
5
|
-
private state;
|
|
6
|
-
private temp;
|
|
7
|
-
private buffer;
|
|
8
|
-
private bufferLength;
|
|
9
|
-
private bytesHashed;
|
|
10
|
-
/**
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
finished: boolean;
|
|
14
|
-
update(data: Uint8Array): void;
|
|
15
|
-
digest(): Uint8Array;
|
|
16
|
-
private hashBuffer;
|
|
17
|
-
}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RawSha256 = void 0;
|
|
4
|
-
var constants_1 = require("./constants");
|
|
5
|
-
/**
|
|
6
|
-
* @internal
|
|
7
|
-
*/
|
|
8
|
-
var RawSha256 = /** @class */ (function () {
|
|
9
|
-
function RawSha256() {
|
|
10
|
-
this.state = Int32Array.from(constants_1.INIT);
|
|
11
|
-
this.temp = new Int32Array(64);
|
|
12
|
-
this.buffer = new Uint8Array(64);
|
|
13
|
-
this.bufferLength = 0;
|
|
14
|
-
this.bytesHashed = 0;
|
|
15
|
-
/**
|
|
16
|
-
* @internal
|
|
17
|
-
*/
|
|
18
|
-
this.finished = false;
|
|
19
|
-
}
|
|
20
|
-
RawSha256.prototype.update = function (data) {
|
|
21
|
-
if (this.finished) {
|
|
22
|
-
throw new Error("Attempted to update an already finished hash.");
|
|
23
|
-
}
|
|
24
|
-
var position = 0;
|
|
25
|
-
var byteLength = data.byteLength;
|
|
26
|
-
this.bytesHashed += byteLength;
|
|
27
|
-
if (this.bytesHashed * 8 > constants_1.MAX_HASHABLE_LENGTH) {
|
|
28
|
-
throw new Error("Cannot hash more than 2^53 - 1 bits");
|
|
29
|
-
}
|
|
30
|
-
while (byteLength > 0) {
|
|
31
|
-
this.buffer[this.bufferLength++] = data[position++];
|
|
32
|
-
byteLength--;
|
|
33
|
-
if (this.bufferLength === constants_1.BLOCK_SIZE) {
|
|
34
|
-
this.hashBuffer();
|
|
35
|
-
this.bufferLength = 0;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
RawSha256.prototype.digest = function () {
|
|
40
|
-
if (!this.finished) {
|
|
41
|
-
var bitsHashed = this.bytesHashed * 8;
|
|
42
|
-
var bufferView = new DataView(this.buffer.buffer, this.buffer.byteOffset, this.buffer.byteLength);
|
|
43
|
-
var undecoratedLength = this.bufferLength;
|
|
44
|
-
bufferView.setUint8(this.bufferLength++, 0x80);
|
|
45
|
-
// Ensure the final block has enough room for the hashed length
|
|
46
|
-
if (undecoratedLength % constants_1.BLOCK_SIZE >= constants_1.BLOCK_SIZE - 8) {
|
|
47
|
-
for (var i = this.bufferLength; i < constants_1.BLOCK_SIZE; i++) {
|
|
48
|
-
bufferView.setUint8(i, 0);
|
|
49
|
-
}
|
|
50
|
-
this.hashBuffer();
|
|
51
|
-
this.bufferLength = 0;
|
|
52
|
-
}
|
|
53
|
-
for (var i = this.bufferLength; i < constants_1.BLOCK_SIZE - 8; i++) {
|
|
54
|
-
bufferView.setUint8(i, 0);
|
|
55
|
-
}
|
|
56
|
-
bufferView.setUint32(constants_1.BLOCK_SIZE - 8, Math.floor(bitsHashed / 0x100000000), true);
|
|
57
|
-
bufferView.setUint32(constants_1.BLOCK_SIZE - 4, bitsHashed);
|
|
58
|
-
this.hashBuffer();
|
|
59
|
-
this.finished = true;
|
|
60
|
-
}
|
|
61
|
-
// The value in state is little-endian rather than big-endian, so flip
|
|
62
|
-
// each word into a new Uint8Array
|
|
63
|
-
var out = new Uint8Array(constants_1.DIGEST_LENGTH);
|
|
64
|
-
for (var i = 0; i < 8; i++) {
|
|
65
|
-
out[i * 4] = (this.state[i] >>> 24) & 0xff;
|
|
66
|
-
out[i * 4 + 1] = (this.state[i] >>> 16) & 0xff;
|
|
67
|
-
out[i * 4 + 2] = (this.state[i] >>> 8) & 0xff;
|
|
68
|
-
out[i * 4 + 3] = (this.state[i] >>> 0) & 0xff;
|
|
69
|
-
}
|
|
70
|
-
return out;
|
|
71
|
-
};
|
|
72
|
-
RawSha256.prototype.hashBuffer = function () {
|
|
73
|
-
var _a = this, buffer = _a.buffer, state = _a.state;
|
|
74
|
-
var state0 = state[0], state1 = state[1], state2 = state[2], state3 = state[3], state4 = state[4], state5 = state[5], state6 = state[6], state7 = state[7];
|
|
75
|
-
for (var i = 0; i < constants_1.BLOCK_SIZE; i++) {
|
|
76
|
-
if (i < 16) {
|
|
77
|
-
this.temp[i] =
|
|
78
|
-
((buffer[i * 4] & 0xff) << 24) |
|
|
79
|
-
((buffer[i * 4 + 1] & 0xff) << 16) |
|
|
80
|
-
((buffer[i * 4 + 2] & 0xff) << 8) |
|
|
81
|
-
(buffer[i * 4 + 3] & 0xff);
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
var u = this.temp[i - 2];
|
|
85
|
-
var t1_1 = ((u >>> 17) | (u << 15)) ^ ((u >>> 19) | (u << 13)) ^ (u >>> 10);
|
|
86
|
-
u = this.temp[i - 15];
|
|
87
|
-
var t2_1 = ((u >>> 7) | (u << 25)) ^ ((u >>> 18) | (u << 14)) ^ (u >>> 3);
|
|
88
|
-
this.temp[i] =
|
|
89
|
-
((t1_1 + this.temp[i - 7]) | 0) + ((t2_1 + this.temp[i - 16]) | 0);
|
|
90
|
-
}
|
|
91
|
-
var t1 = ((((((state4 >>> 6) | (state4 << 26)) ^
|
|
92
|
-
((state4 >>> 11) | (state4 << 21)) ^
|
|
93
|
-
((state4 >>> 25) | (state4 << 7))) +
|
|
94
|
-
((state4 & state5) ^ (~state4 & state6))) |
|
|
95
|
-
0) +
|
|
96
|
-
((state7 + ((constants_1.KEY[i] + this.temp[i]) | 0)) | 0)) |
|
|
97
|
-
0;
|
|
98
|
-
var t2 = ((((state0 >>> 2) | (state0 << 30)) ^
|
|
99
|
-
((state0 >>> 13) | (state0 << 19)) ^
|
|
100
|
-
((state0 >>> 22) | (state0 << 10))) +
|
|
101
|
-
((state0 & state1) ^ (state0 & state2) ^ (state1 & state2))) |
|
|
102
|
-
0;
|
|
103
|
-
state7 = state6;
|
|
104
|
-
state6 = state5;
|
|
105
|
-
state5 = state4;
|
|
106
|
-
state4 = (state3 + t1) | 0;
|
|
107
|
-
state3 = state2;
|
|
108
|
-
state2 = state1;
|
|
109
|
-
state1 = state0;
|
|
110
|
-
state0 = (t1 + t2) | 0;
|
|
111
|
-
}
|
|
112
|
-
state[0] += state0;
|
|
113
|
-
state[1] += state1;
|
|
114
|
-
state[2] += state2;
|
|
115
|
-
state[3] += state3;
|
|
116
|
-
state[4] += state4;
|
|
117
|
-
state[5] += state5;
|
|
118
|
-
state[6] += state6;
|
|
119
|
-
state[7] += state7;
|
|
120
|
-
};
|
|
121
|
-
return RawSha256;
|
|
122
|
-
}());
|
|
123
|
-
exports.RawSha256 = RawSha256;
|
|
124
|
-
//# sourceMappingURL=RawSha256.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RawSha256.js","sourceRoot":"","sources":["../../src/RawSha256.ts"],"names":[],"mappings":";;;AAAA,yCAMqB;AAErB;;GAEG;AACH;IAAA;QACU,UAAK,GAAe,UAAU,CAAC,IAAI,CAAC,gBAAI,CAAC,CAAC;QAC1C,SAAI,GAAe,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;QACtC,WAAM,GAAe,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;QACxC,iBAAY,GAAW,CAAC,CAAC;QACzB,gBAAW,GAAW,CAAC,CAAC;QAEhC;;WAEG;QACH,aAAQ,GAAY,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AK,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC;QACnB,KAAK,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC;QACnB,KAAK,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC;IACrB,CAAC;IACH,gBAAC;AAAD,CAAC,AAxJD,IAwJC;AAxJY,8BAAS"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @internal
|
|
3
|
-
*/
|
|
4
|
-
export declare const BLOCK_SIZE: number;
|
|
5
|
-
/**
|
|
6
|
-
* @internal
|
|
7
|
-
*/
|
|
8
|
-
export declare const DIGEST_LENGTH: number;
|
|
9
|
-
/**
|
|
10
|
-
* @internal
|
|
11
|
-
*/
|
|
12
|
-
export declare const KEY: Uint32Array;
|
|
13
|
-
/**
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
export declare const INIT: number[];
|
|
17
|
-
/**
|
|
18
|
-
* @internal
|
|
19
|
-
*/
|
|
20
|
-
export declare const MAX_HASHABLE_LENGTH: number;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MAX_HASHABLE_LENGTH = exports.INIT = exports.KEY = exports.DIGEST_LENGTH = exports.BLOCK_SIZE = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
|
-
exports.BLOCK_SIZE = 64;
|
|
8
|
-
/**
|
|
9
|
-
* @internal
|
|
10
|
-
*/
|
|
11
|
-
exports.DIGEST_LENGTH = 32;
|
|
12
|
-
/**
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
|
-
exports.KEY = new Uint32Array([
|
|
16
|
-
0x428a2f98,
|
|
17
|
-
0x71374491,
|
|
18
|
-
0xb5c0fbcf,
|
|
19
|
-
0xe9b5dba5,
|
|
20
|
-
0x3956c25b,
|
|
21
|
-
0x59f111f1,
|
|
22
|
-
0x923f82a4,
|
|
23
|
-
0xab1c5ed5,
|
|
24
|
-
0xd807aa98,
|
|
25
|
-
0x12835b01,
|
|
26
|
-
0x243185be,
|
|
27
|
-
0x550c7dc3,
|
|
28
|
-
0x72be5d74,
|
|
29
|
-
0x80deb1fe,
|
|
30
|
-
0x9bdc06a7,
|
|
31
|
-
0xc19bf174,
|
|
32
|
-
0xe49b69c1,
|
|
33
|
-
0xefbe4786,
|
|
34
|
-
0x0fc19dc6,
|
|
35
|
-
0x240ca1cc,
|
|
36
|
-
0x2de92c6f,
|
|
37
|
-
0x4a7484aa,
|
|
38
|
-
0x5cb0a9dc,
|
|
39
|
-
0x76f988da,
|
|
40
|
-
0x983e5152,
|
|
41
|
-
0xa831c66d,
|
|
42
|
-
0xb00327c8,
|
|
43
|
-
0xbf597fc7,
|
|
44
|
-
0xc6e00bf3,
|
|
45
|
-
0xd5a79147,
|
|
46
|
-
0x06ca6351,
|
|
47
|
-
0x14292967,
|
|
48
|
-
0x27b70a85,
|
|
49
|
-
0x2e1b2138,
|
|
50
|
-
0x4d2c6dfc,
|
|
51
|
-
0x53380d13,
|
|
52
|
-
0x650a7354,
|
|
53
|
-
0x766a0abb,
|
|
54
|
-
0x81c2c92e,
|
|
55
|
-
0x92722c85,
|
|
56
|
-
0xa2bfe8a1,
|
|
57
|
-
0xa81a664b,
|
|
58
|
-
0xc24b8b70,
|
|
59
|
-
0xc76c51a3,
|
|
60
|
-
0xd192e819,
|
|
61
|
-
0xd6990624,
|
|
62
|
-
0xf40e3585,
|
|
63
|
-
0x106aa070,
|
|
64
|
-
0x19a4c116,
|
|
65
|
-
0x1e376c08,
|
|
66
|
-
0x2748774c,
|
|
67
|
-
0x34b0bcb5,
|
|
68
|
-
0x391c0cb3,
|
|
69
|
-
0x4ed8aa4a,
|
|
70
|
-
0x5b9cca4f,
|
|
71
|
-
0x682e6ff3,
|
|
72
|
-
0x748f82ee,
|
|
73
|
-
0x78a5636f,
|
|
74
|
-
0x84c87814,
|
|
75
|
-
0x8cc70208,
|
|
76
|
-
0x90befffa,
|
|
77
|
-
0xa4506ceb,
|
|
78
|
-
0xbef9a3f7,
|
|
79
|
-
0xc67178f2
|
|
80
|
-
]);
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
*/
|
|
84
|
-
exports.INIT = [
|
|
85
|
-
0x6a09e667,
|
|
86
|
-
0xbb67ae85,
|
|
87
|
-
0x3c6ef372,
|
|
88
|
-
0xa54ff53a,
|
|
89
|
-
0x510e527f,
|
|
90
|
-
0x9b05688c,
|
|
91
|
-
0x1f83d9ab,
|
|
92
|
-
0x5be0cd19
|
|
93
|
-
];
|
|
94
|
-
/**
|
|
95
|
-
* @internal
|
|
96
|
-
*/
|
|
97
|
-
exports.MAX_HASHABLE_LENGTH = Math.pow(2, 53) - 1;
|
|
98
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACU,QAAA,UAAU,GAAW,EAAE,CAAC;AAErC;;GAEG;AACU,QAAA,aAAa,GAAW,EAAE,CAAC;AAExC;;GAEG;AACU,QAAA,GAAG,GAAG,IAAI,WAAW,CAAC;IACjC,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;CACX,CAAC,CAAC;AAEH;;GAEG;AACU,QAAA,IAAI,GAAG;IAClB,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;CACX,CAAC;AAEF;;GAEG;AACU,QAAA,mBAAmB,GAAG,SAAA,CAAC,EAAI,EAAE,CAAA,GAAG,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./jsSha256";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Checksum, SourceData } from "@aws-sdk/types";
|
|
2
|
-
export declare class Sha256 implements Checksum {
|
|
3
|
-
private readonly secret?;
|
|
4
|
-
private hash;
|
|
5
|
-
private outer?;
|
|
6
|
-
private error;
|
|
7
|
-
constructor(secret?: SourceData);
|
|
8
|
-
update(toHash: SourceData): void;
|
|
9
|
-
digestSync(): Uint8Array;
|
|
10
|
-
digest(): Promise<Uint8Array>;
|
|
11
|
-
reset(): void;
|
|
12
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Sha256 = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var constants_1 = require("./constants");
|
|
6
|
-
var RawSha256_1 = require("./RawSha256");
|
|
7
|
-
var util_1 = require("@aws-crypto/util");
|
|
8
|
-
var Sha256 = /** @class */ (function () {
|
|
9
|
-
function Sha256(secret) {
|
|
10
|
-
this.secret = secret;
|
|
11
|
-
this.hash = new RawSha256_1.RawSha256();
|
|
12
|
-
this.reset();
|
|
13
|
-
}
|
|
14
|
-
Sha256.prototype.update = function (toHash) {
|
|
15
|
-
if ((0, util_1.isEmptyData)(toHash) || this.error) {
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
try {
|
|
19
|
-
this.hash.update((0, util_1.convertToBuffer)(toHash));
|
|
20
|
-
}
|
|
21
|
-
catch (e) {
|
|
22
|
-
this.error = e;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
/* This synchronous method keeps compatibility
|
|
26
|
-
* with the v2 aws-sdk.
|
|
27
|
-
*/
|
|
28
|
-
Sha256.prototype.digestSync = function () {
|
|
29
|
-
if (this.error) {
|
|
30
|
-
throw this.error;
|
|
31
|
-
}
|
|
32
|
-
if (this.outer) {
|
|
33
|
-
if (!this.outer.finished) {
|
|
34
|
-
this.outer.update(this.hash.digest());
|
|
35
|
-
}
|
|
36
|
-
return this.outer.digest();
|
|
37
|
-
}
|
|
38
|
-
return this.hash.digest();
|
|
39
|
-
};
|
|
40
|
-
/* The underlying digest method here is synchronous.
|
|
41
|
-
* To keep the same interface with the other hash functions
|
|
42
|
-
* the default is to expose this as an async method.
|
|
43
|
-
* However, it can sometimes be useful to have a sync method.
|
|
44
|
-
*/
|
|
45
|
-
Sha256.prototype.digest = function () {
|
|
46
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
47
|
-
return tslib_1.__generator(this, function (_a) {
|
|
48
|
-
return [2 /*return*/, this.digestSync()];
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
Sha256.prototype.reset = function () {
|
|
53
|
-
this.hash = new RawSha256_1.RawSha256();
|
|
54
|
-
if (this.secret) {
|
|
55
|
-
this.outer = new RawSha256_1.RawSha256();
|
|
56
|
-
var inner = bufferFromSecret(this.secret);
|
|
57
|
-
var outer = new Uint8Array(constants_1.BLOCK_SIZE);
|
|
58
|
-
outer.set(inner);
|
|
59
|
-
for (var i = 0; i < constants_1.BLOCK_SIZE; i++) {
|
|
60
|
-
inner[i] ^= 0x36;
|
|
61
|
-
outer[i] ^= 0x5c;
|
|
62
|
-
}
|
|
63
|
-
this.hash.update(inner);
|
|
64
|
-
this.outer.update(outer);
|
|
65
|
-
// overwrite the copied key in memory
|
|
66
|
-
for (var i = 0; i < inner.byteLength; i++) {
|
|
67
|
-
inner[i] = 0;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
return Sha256;
|
|
72
|
-
}());
|
|
73
|
-
exports.Sha256 = Sha256;
|
|
74
|
-
function bufferFromSecret(secret) {
|
|
75
|
-
var input = (0, util_1.convertToBuffer)(secret);
|
|
76
|
-
if (input.byteLength > constants_1.BLOCK_SIZE) {
|
|
77
|
-
var bufferHash = new RawSha256_1.RawSha256();
|
|
78
|
-
bufferHash.update(input);
|
|
79
|
-
input = bufferHash.digest();
|
|
80
|
-
}
|
|
81
|
-
var buffer = new Uint8Array(constants_1.BLOCK_SIZE);
|
|
82
|
-
buffer.set(input);
|
|
83
|
-
return buffer;
|
|
84
|
-
}
|
|
85
|
-
//# sourceMappingURL=jsSha256.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsSha256.js","sourceRoot":"","sources":["../../src/jsSha256.ts"],"names":[],"mappings":";;;;AAAA,yCAAyC;AACzC,yCAAwC;AAExC,yCAAgE;AAEhE;IAME,gBAAY,MAAmB;QAC7B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,qBAAS,EAAE,CAAC;QAC5B,IAAI,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IAED,uBAAM,GAAN,UAAO,MAAkB;QACvB,IAAI,IAAA,kBAAW,EAAC,MAAM,CAAC,IAAI,IAAI,CAAC,KAAK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