@cdk8s/awscdk-resolver 0.0.614 → 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.
Files changed (300) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +35 -20
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/enums.js +4 -0
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.browser.js +0 -2
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.js +1 -2
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.native.js +0 -2
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.shared.js +2 -0
  9. package/node_modules/@aws-sdk/client-cloudformation/dist-es/schemas/schemas_0.js +25 -17
  10. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CreateChangeSetCommand.d.ts +5 -0
  11. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CreateStackCommand.d.ts +5 -0
  12. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeleteStackCommand.d.ts +4 -0
  13. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeChangeSetCommand.d.ts +4 -0
  14. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStacksCommand.d.ts +4 -0
  15. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/RollbackStackCommand.d.ts +4 -0
  16. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackCommand.d.ts +5 -0
  17. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/enums.d.ts +12 -0
  18. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +107 -2
  19. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +1 -1
  20. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +1 -1
  21. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +1 -1
  22. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.shared.d.ts +1 -0
  23. package/node_modules/@aws-sdk/client-cloudformation/dist-types/schemas/schemas_0.d.ts +1 -0
  24. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/enums.d.ts +6 -0
  25. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_0.d.ts +15 -0
  26. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  27. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  28. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  29. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  30. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
  31. package/node_modules/@aws-sdk/client-cloudformation/package.json +6 -8
  32. package/node_modules/@aws-sdk/core/package.json +4 -5
  33. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  34. package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
  35. package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
  36. package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
  37. package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
  38. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  39. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  40. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  41. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +4 -3
  42. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +4 -3
  43. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +4 -3
  44. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +4 -3
  45. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +4 -3
  46. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.browser.js +0 -2
  47. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +1 -2
  48. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.native.js +0 -2
  49. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.shared.js +2 -0
  50. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.browser.js +0 -2
  51. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +1 -2
  52. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.native.js +0 -2
  53. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js +2 -0
  54. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.browser.js +0 -2
  55. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +1 -2
  56. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.native.js +0 -2
  57. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js +2 -0
  58. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +0 -2
  59. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +1 -2
  60. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.native.js +0 -2
  61. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
  62. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.browser.js +0 -2
  63. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +1 -2
  64. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.native.js +0 -2
  65. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +2 -0
  66. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +1 -1
  67. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +1 -1
  68. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +1 -1
  69. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.shared.d.ts +1 -0
  70. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +1 -1
  71. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +1 -1
  72. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +1 -1
  73. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.shared.d.ts +1 -0
  74. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +1 -1
  75. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +1 -1
  76. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +1 -1
  77. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.shared.d.ts +1 -0
  78. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +1 -1
  79. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +1 -1
  80. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +1 -1
  81. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -0
  82. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +1 -1
  83. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +1 -1
  84. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +1 -1
  85. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +1 -0
  86. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +1 -1
  87. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +1 -1
  88. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +1 -1
  89. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +1 -0
  90. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +1 -1
  91. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +1 -1
  92. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +1 -1
  93. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +1 -0
  94. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +1 -1
  95. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +1 -1
  96. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +1 -1
  97. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.shared.d.ts +1 -0
  98. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +1 -1
  99. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +1 -1
  100. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +1 -1
  101. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -0
  102. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +1 -1
  103. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +1 -1
  104. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +1 -1
  105. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +1 -0
  106. package/node_modules/@aws-sdk/nested-clients/package.json +6 -8
  107. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  108. package/node_modules/@aws-sdk/token-providers/package.json +4 -4
  109. package/package.json +5 -5
  110. package/node_modules/@aws-crypto/sha256-browser/CHANGELOG.md +0 -118
  111. package/node_modules/@aws-crypto/sha256-browser/LICENSE +0 -202
  112. package/node_modules/@aws-crypto/sha256-browser/README.md +0 -31
  113. package/node_modules/@aws-crypto/sha256-browser/build/main/constants.d.ts +0 -10
  114. package/node_modules/@aws-crypto/sha256-browser/build/main/constants.js +0 -43
  115. package/node_modules/@aws-crypto/sha256-browser/build/main/constants.js.map +0 -1
  116. package/node_modules/@aws-crypto/sha256-browser/build/main/crossPlatformSha256.d.ts +0 -8
  117. package/node_modules/@aws-crypto/sha256-browser/build/main/crossPlatformSha256.js +0 -30
  118. package/node_modules/@aws-crypto/sha256-browser/build/main/crossPlatformSha256.js.map +0 -1
  119. package/node_modules/@aws-crypto/sha256-browser/build/main/index.d.ts +0 -2
  120. package/node_modules/@aws-crypto/sha256-browser/build/main/index.js +0 -8
  121. package/node_modules/@aws-crypto/sha256-browser/build/main/index.js.map +0 -1
  122. package/node_modules/@aws-crypto/sha256-browser/build/main/isEmptyData.d.ts +0 -2
  123. package/node_modules/@aws-crypto/sha256-browser/build/main/isEmptyData.js +0 -11
  124. package/node_modules/@aws-crypto/sha256-browser/build/main/isEmptyData.js.map +0 -1
  125. package/node_modules/@aws-crypto/sha256-browser/build/main/webCryptoSha256.d.ts +0 -10
  126. package/node_modules/@aws-crypto/sha256-browser/build/main/webCryptoSha256.js +0 -56
  127. package/node_modules/@aws-crypto/sha256-browser/build/main/webCryptoSha256.js.map +0 -1
  128. package/node_modules/@aws-crypto/sha256-browser/build/module/constants.d.ts +0 -10
  129. package/node_modules/@aws-crypto/sha256-browser/build/module/constants.js +0 -40
  130. package/node_modules/@aws-crypto/sha256-browser/build/module/constants.js.map +0 -1
  131. package/node_modules/@aws-crypto/sha256-browser/build/module/crossPlatformSha256.d.ts +0 -8
  132. package/node_modules/@aws-crypto/sha256-browser/build/module/crossPlatformSha256.js +0 -27
  133. package/node_modules/@aws-crypto/sha256-browser/build/module/crossPlatformSha256.js.map +0 -1
  134. package/node_modules/@aws-crypto/sha256-browser/build/module/index.d.ts +0 -2
  135. package/node_modules/@aws-crypto/sha256-browser/build/module/index.js +0 -3
  136. package/node_modules/@aws-crypto/sha256-browser/build/module/index.js.map +0 -1
  137. package/node_modules/@aws-crypto/sha256-browser/build/module/isEmptyData.d.ts +0 -2
  138. package/node_modules/@aws-crypto/sha256-browser/build/module/isEmptyData.js +0 -7
  139. package/node_modules/@aws-crypto/sha256-browser/build/module/isEmptyData.js.map +0 -1
  140. package/node_modules/@aws-crypto/sha256-browser/build/module/webCryptoSha256.d.ts +0 -10
  141. package/node_modules/@aws-crypto/sha256-browser/build/module/webCryptoSha256.js +0 -53
  142. package/node_modules/@aws-crypto/sha256-browser/build/module/webCryptoSha256.js.map +0 -1
  143. package/node_modules/@aws-crypto/sha256-browser/package.json +0 -33
  144. package/node_modules/@aws-crypto/sha256-browser/src/constants.ts +0 -41
  145. package/node_modules/@aws-crypto/sha256-browser/src/crossPlatformSha256.ts +0 -30
  146. package/node_modules/@aws-crypto/sha256-browser/src/index.ts +0 -2
  147. package/node_modules/@aws-crypto/sha256-browser/src/isEmptyData.ts +0 -9
  148. package/node_modules/@aws-crypto/sha256-browser/src/webCryptoSha256.ts +0 -71
  149. package/node_modules/@aws-crypto/sha256-browser/tsconfig.json +0 -10
  150. package/node_modules/@aws-crypto/sha256-browser/tsconfig.module.json +0 -7
  151. package/node_modules/@aws-crypto/sha256-js/CHANGELOG.md +0 -106
  152. package/node_modules/@aws-crypto/sha256-js/LICENSE +0 -201
  153. package/node_modules/@aws-crypto/sha256-js/README.md +0 -29
  154. package/node_modules/@aws-crypto/sha256-js/build/main/RawSha256.d.ts +0 -17
  155. package/node_modules/@aws-crypto/sha256-js/build/main/RawSha256.js +0 -124
  156. package/node_modules/@aws-crypto/sha256-js/build/main/RawSha256.js.map +0 -1
  157. package/node_modules/@aws-crypto/sha256-js/build/main/constants.d.ts +0 -20
  158. package/node_modules/@aws-crypto/sha256-js/build/main/constants.js +0 -98
  159. package/node_modules/@aws-crypto/sha256-js/build/main/constants.js.map +0 -1
  160. package/node_modules/@aws-crypto/sha256-js/build/main/index.d.ts +0 -1
  161. package/node_modules/@aws-crypto/sha256-js/build/main/index.js +0 -5
  162. package/node_modules/@aws-crypto/sha256-js/build/main/index.js.map +0 -1
  163. package/node_modules/@aws-crypto/sha256-js/build/main/jsSha256.d.ts +0 -12
  164. package/node_modules/@aws-crypto/sha256-js/build/main/jsSha256.js +0 -85
  165. package/node_modules/@aws-crypto/sha256-js/build/main/jsSha256.js.map +0 -1
  166. package/node_modules/@aws-crypto/sha256-js/build/main/knownHashes.fixture.d.ts +0 -5
  167. package/node_modules/@aws-crypto/sha256-js/build/main/knownHashes.fixture.js +0 -322
  168. package/node_modules/@aws-crypto/sha256-js/build/main/knownHashes.fixture.js.map +0 -1
  169. package/node_modules/@aws-crypto/sha256-js/build/module/RawSha256.d.ts +0 -17
  170. package/node_modules/@aws-crypto/sha256-js/build/module/RawSha256.js +0 -121
  171. package/node_modules/@aws-crypto/sha256-js/build/module/RawSha256.js.map +0 -1
  172. package/node_modules/@aws-crypto/sha256-js/build/module/constants.d.ts +0 -20
  173. package/node_modules/@aws-crypto/sha256-js/build/module/constants.js +0 -95
  174. package/node_modules/@aws-crypto/sha256-js/build/module/constants.js.map +0 -1
  175. package/node_modules/@aws-crypto/sha256-js/build/module/index.d.ts +0 -1
  176. package/node_modules/@aws-crypto/sha256-js/build/module/index.js +0 -2
  177. package/node_modules/@aws-crypto/sha256-js/build/module/index.js.map +0 -1
  178. package/node_modules/@aws-crypto/sha256-js/build/module/jsSha256.d.ts +0 -12
  179. package/node_modules/@aws-crypto/sha256-js/build/module/jsSha256.js +0 -82
  180. package/node_modules/@aws-crypto/sha256-js/build/module/jsSha256.js.map +0 -1
  181. package/node_modules/@aws-crypto/sha256-js/build/module/knownHashes.fixture.d.ts +0 -5
  182. package/node_modules/@aws-crypto/sha256-js/build/module/knownHashes.fixture.js +0 -319
  183. package/node_modules/@aws-crypto/sha256-js/build/module/knownHashes.fixture.js.map +0 -1
  184. package/node_modules/@aws-crypto/sha256-js/package.json +0 -32
  185. package/node_modules/@aws-crypto/sha256-js/src/RawSha256.ts +0 -164
  186. package/node_modules/@aws-crypto/sha256-js/src/constants.ts +0 -98
  187. package/node_modules/@aws-crypto/sha256-js/src/index.ts +0 -1
  188. package/node_modules/@aws-crypto/sha256-js/src/jsSha256.ts +0 -94
  189. package/node_modules/@aws-crypto/sha256-js/src/knownHashes.fixture.ts +0 -401
  190. package/node_modules/@aws-crypto/sha256-js/tsconfig.json +0 -10
  191. package/node_modules/@aws-crypto/sha256-js/tsconfig.module.json +0 -7
  192. package/node_modules/@aws-crypto/supports-web-crypto/CHANGELOG.md +0 -66
  193. package/node_modules/@aws-crypto/supports-web-crypto/LICENSE +0 -202
  194. package/node_modules/@aws-crypto/supports-web-crypto/README.md +0 -32
  195. package/node_modules/@aws-crypto/supports-web-crypto/build/main/index.d.ts +0 -1
  196. package/node_modules/@aws-crypto/supports-web-crypto/build/main/index.js +0 -5
  197. package/node_modules/@aws-crypto/supports-web-crypto/build/main/index.js.map +0 -1
  198. package/node_modules/@aws-crypto/supports-web-crypto/build/main/supportsWebCrypto.d.ts +0 -4
  199. package/node_modules/@aws-crypto/supports-web-crypto/build/main/supportsWebCrypto.js +0 -69
  200. package/node_modules/@aws-crypto/supports-web-crypto/build/main/supportsWebCrypto.js.map +0 -1
  201. package/node_modules/@aws-crypto/supports-web-crypto/build/module/index.d.ts +0 -1
  202. package/node_modules/@aws-crypto/supports-web-crypto/build/module/index.js +0 -2
  203. package/node_modules/@aws-crypto/supports-web-crypto/build/module/index.js.map +0 -1
  204. package/node_modules/@aws-crypto/supports-web-crypto/build/module/supportsWebCrypto.d.ts +0 -4
  205. package/node_modules/@aws-crypto/supports-web-crypto/build/module/supportsWebCrypto.js +0 -62
  206. package/node_modules/@aws-crypto/supports-web-crypto/build/module/supportsWebCrypto.js.map +0 -1
  207. package/node_modules/@aws-crypto/supports-web-crypto/package.json +0 -28
  208. package/node_modules/@aws-crypto/supports-web-crypto/src/index.ts +0 -1
  209. package/node_modules/@aws-crypto/supports-web-crypto/src/supportsWebCrypto.ts +0 -76
  210. package/node_modules/@aws-crypto/supports-web-crypto/tsconfig.json +0 -10
  211. package/node_modules/@aws-crypto/supports-web-crypto/tsconfig.module.json +0 -7
  212. package/node_modules/@aws-crypto/util/CHANGELOG.md +0 -71
  213. package/node_modules/@aws-crypto/util/LICENSE +0 -201
  214. package/node_modules/@aws-crypto/util/README.md +0 -16
  215. package/node_modules/@aws-crypto/util/build/main/convertToBuffer.d.ts +0 -2
  216. package/node_modules/@aws-crypto/util/build/main/convertToBuffer.js +0 -24
  217. package/node_modules/@aws-crypto/util/build/main/convertToBuffer.js.map +0 -1
  218. package/node_modules/@aws-crypto/util/build/main/index.d.ts +0 -4
  219. package/node_modules/@aws-crypto/util/build/main/index.js +0 -14
  220. package/node_modules/@aws-crypto/util/build/main/index.js.map +0 -1
  221. package/node_modules/@aws-crypto/util/build/main/isEmptyData.d.ts +0 -2
  222. package/node_modules/@aws-crypto/util/build/main/isEmptyData.js +0 -13
  223. package/node_modules/@aws-crypto/util/build/main/isEmptyData.js.map +0 -1
  224. package/node_modules/@aws-crypto/util/build/main/numToUint8.d.ts +0 -1
  225. package/node_modules/@aws-crypto/util/build/main/numToUint8.js +0 -15
  226. package/node_modules/@aws-crypto/util/build/main/numToUint8.js.map +0 -1
  227. package/node_modules/@aws-crypto/util/build/main/uint32ArrayFrom.d.ts +0 -1
  228. package/node_modules/@aws-crypto/util/build/main/uint32ArrayFrom.js +0 -20
  229. package/node_modules/@aws-crypto/util/build/main/uint32ArrayFrom.js.map +0 -1
  230. package/node_modules/@aws-crypto/util/build/module/convertToBuffer.d.ts +0 -2
  231. package/node_modules/@aws-crypto/util/build/module/convertToBuffer.js +0 -20
  232. package/node_modules/@aws-crypto/util/build/module/convertToBuffer.js.map +0 -1
  233. package/node_modules/@aws-crypto/util/build/module/index.d.ts +0 -4
  234. package/node_modules/@aws-crypto/util/build/module/index.js +0 -7
  235. package/node_modules/@aws-crypto/util/build/module/index.js.map +0 -1
  236. package/node_modules/@aws-crypto/util/build/module/isEmptyData.d.ts +0 -2
  237. package/node_modules/@aws-crypto/util/build/module/isEmptyData.js +0 -9
  238. package/node_modules/@aws-crypto/util/build/module/isEmptyData.js.map +0 -1
  239. package/node_modules/@aws-crypto/util/build/module/numToUint8.d.ts +0 -1
  240. package/node_modules/@aws-crypto/util/build/module/numToUint8.js +0 -11
  241. package/node_modules/@aws-crypto/util/build/module/numToUint8.js.map +0 -1
  242. package/node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.d.ts +0 -1
  243. package/node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.js +0 -16
  244. package/node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.js.map +0 -1
  245. package/node_modules/@aws-crypto/util/package.json +0 -32
  246. package/node_modules/@aws-crypto/util/src/convertToBuffer.ts +0 -30
  247. package/node_modules/@aws-crypto/util/src/index.ts +0 -7
  248. package/node_modules/@aws-crypto/util/src/isEmptyData.ts +0 -12
  249. package/node_modules/@aws-crypto/util/src/numToUint8.ts +0 -11
  250. package/node_modules/@aws-crypto/util/src/uint32ArrayFrom.ts +0 -16
  251. package/node_modules/@aws-crypto/util/tsconfig.json +0 -9
  252. package/node_modules/@aws-crypto/util/tsconfig.module.json +0 -7
  253. package/node_modules/@aws-sdk/util-locate-window/LICENSE +0 -201
  254. package/node_modules/@aws-sdk/util-locate-window/README.md +0 -4
  255. package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +0 -12
  256. package/node_modules/@aws-sdk/util-locate-window/dist-es/index.js +0 -10
  257. package/node_modules/@aws-sdk/util-locate-window/dist-types/index.d.ts +0 -6
  258. package/node_modules/@aws-sdk/util-locate-window/dist-types/ts3.4/index.d.ts +0 -1
  259. package/node_modules/@aws-sdk/util-locate-window/package.json +0 -54
  260. package/node_modules/@smithy/is-array-buffer/LICENSE +0 -201
  261. package/node_modules/@smithy/is-array-buffer/README.md +0 -10
  262. package/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +0 -32
  263. package/node_modules/@smithy/is-array-buffer/dist-es/index.js +0 -2
  264. package/node_modules/@smithy/is-array-buffer/dist-types/index.d.ts +0 -4
  265. package/node_modules/@smithy/is-array-buffer/dist-types/ts3.4/index.d.ts +0 -4
  266. package/node_modules/@smithy/is-array-buffer/package.json +0 -60
  267. package/node_modules/@smithy/util-buffer-from/LICENSE +0 -201
  268. package/node_modules/@smithy/util-buffer-from/README.md +0 -10
  269. package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +0 -47
  270. package/node_modules/@smithy/util-buffer-from/dist-es/index.js +0 -14
  271. package/node_modules/@smithy/util-buffer-from/dist-types/index.d.ts +0 -13
  272. package/node_modules/@smithy/util-buffer-from/dist-types/ts3.4/index.d.ts +0 -13
  273. package/node_modules/@smithy/util-buffer-from/package.json +0 -61
  274. package/node_modules/@smithy/util-utf8/LICENSE +0 -201
  275. package/node_modules/@smithy/util-utf8/README.md +0 -4
  276. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +0 -1
  277. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +0 -1
  278. package/node_modules/@smithy/util-utf8/dist-cjs/index.js +0 -65
  279. package/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +0 -1
  280. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +0 -1
  281. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +0 -1
  282. package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js +0 -1
  283. package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js +0 -5
  284. package/node_modules/@smithy/util-utf8/dist-es/index.js +0 -3
  285. package/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js +0 -10
  286. package/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +0 -9
  287. package/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +0 -10
  288. package/node_modules/@smithy/util-utf8/dist-types/fromUtf8.browser.d.ts +0 -1
  289. package/node_modules/@smithy/util-utf8/dist-types/fromUtf8.d.ts +0 -1
  290. package/node_modules/@smithy/util-utf8/dist-types/index.d.ts +0 -3
  291. package/node_modules/@smithy/util-utf8/dist-types/toUint8Array.d.ts +0 -1
  292. package/node_modules/@smithy/util-utf8/dist-types/toUtf8.browser.d.ts +0 -7
  293. package/node_modules/@smithy/util-utf8/dist-types/toUtf8.d.ts +0 -7
  294. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.browser.d.ts +0 -1
  295. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.d.ts +0 -1
  296. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/index.d.ts +0 -3
  297. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUint8Array.d.ts +0 -1
  298. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.browser.d.ts +0 -7
  299. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.d.ts +0 -7
  300. package/node_modules/@smithy/util-utf8/package.json +0 -66
@@ -1,82 +0,0 @@
1
- import { __awaiter, __generator } from "tslib";
2
- import { BLOCK_SIZE } from "./constants";
3
- import { RawSha256 } from "./RawSha256";
4
- import { isEmptyData, convertToBuffer } from "@aws-crypto/util";
5
- var Sha256 = /** @class */ (function () {
6
- function Sha256(secret) {
7
- this.secret = secret;
8
- this.hash = new RawSha256();
9
- this.reset();
10
- }
11
- Sha256.prototype.update = function (toHash) {
12
- if (isEmptyData(toHash) || this.error) {
13
- return;
14
- }
15
- try {
16
- this.hash.update(convertToBuffer(toHash));
17
- }
18
- catch (e) {
19
- this.error = e;
20
- }
21
- };
22
- /* This synchronous method keeps compatibility
23
- * with the v2 aws-sdk.
24
- */
25
- Sha256.prototype.digestSync = function () {
26
- if (this.error) {
27
- throw this.error;
28
- }
29
- if (this.outer) {
30
- if (!this.outer.finished) {
31
- this.outer.update(this.hash.digest());
32
- }
33
- return this.outer.digest();
34
- }
35
- return this.hash.digest();
36
- };
37
- /* The underlying digest method here is synchronous.
38
- * To keep the same interface with the other hash functions
39
- * the default is to expose this as an async method.
40
- * However, it can sometimes be useful to have a sync method.
41
- */
42
- Sha256.prototype.digest = function () {
43
- return __awaiter(this, void 0, void 0, function () {
44
- return __generator(this, function (_a) {
45
- return [2 /*return*/, this.digestSync()];
46
- });
47
- });
48
- };
49
- Sha256.prototype.reset = function () {
50
- this.hash = new RawSha256();
51
- if (this.secret) {
52
- this.outer = new RawSha256();
53
- var inner = bufferFromSecret(this.secret);
54
- var outer = new Uint8Array(BLOCK_SIZE);
55
- outer.set(inner);
56
- for (var i = 0; i < BLOCK_SIZE; i++) {
57
- inner[i] ^= 0x36;
58
- outer[i] ^= 0x5c;
59
- }
60
- this.hash.update(inner);
61
- this.outer.update(outer);
62
- // overwrite the copied key in memory
63
- for (var i = 0; i < inner.byteLength; i++) {
64
- inner[i] = 0;
65
- }
66
- }
67
- };
68
- return Sha256;
69
- }());
70
- export { Sha256 };
71
- function bufferFromSecret(secret) {
72
- var input = convertToBuffer(secret);
73
- if (input.byteLength > BLOCK_SIZE) {
74
- var bufferHash = new RawSha256();
75
- bufferHash.update(input);
76
- input = bufferHash.digest();
77
- }
78
- var buffer = new Uint8Array(BLOCK_SIZE);
79
- buffer.set(input);
80
- return buffer;
81
- }
82
- //# sourceMappingURL=jsSha256.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jsSha256.js","sourceRoot":"","sources":["../../src/jsSha256.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEhE;IAME,gBAAY,MAAmB;QAC7B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,SAAS,EAAE,CAAC;QAC5B,IAAI,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IAED,uBAAM,GAAN,UAAO,MAAkB;QACvB,IAAI,WAAW,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,KAAK,EAAE;YACrC,OAAO;SACR;QAED,IAAI;YACF,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;SAC3C;QAAC,OAAO,CAAC,EAAE;YACV,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;SAChB;IACH,CAAC;IA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AAC,UAAU,EAAE,CAAC,EAAE,EAAE;gBACzC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;aACd;SACF;IACH,CAAC;IACH,aAAC;AAAD,CAAC,AA1ED,IA0EC;;AAED,SAAS,gBAAgB,CAAC,MAAkB;IAC1C,IAAI,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;IAEpC,IAAI,KAAK,CAAC,UAAU,GAAG,UAAU,EAAE;QACjC,IAAM,UAAU,GAAG,IAAI,SAAS,EAAE,CAAC;QACnC,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACzB,KAAK,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC;KAC7B;IAED,IAAM,MAAM,GAAG,IAAI,UAAU,CAAC,UAAU,CAAC,CAAC;IAC1C,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAClB,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare const hashTestVectors: Array<[Uint8Array, Uint8Array]>;
2
- /**
3
- * @see https://tools.ietf.org/html/rfc4231
4
- */
5
- export declare const hmacTestVectors: Array<[Uint8Array, Uint8Array, Uint8Array]>;
@@ -1,319 +0,0 @@
1
- import { fromHex } from "@aws-sdk/util-hex-encoding";
2
- var millionChars = new Uint8Array(1000000);
3
- for (var i = 0; i < 1000000; i++) {
4
- millionChars[i] = 97;
5
- }
6
- export var hashTestVectors = [
7
- [
8
- Uint8Array.from([97, 98, 99]),
9
- fromHex("ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad")
10
- ],
11
- [
12
- new Uint8Array(0),
13
- fromHex("e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855")
14
- ],
15
- [
16
- fromHex("61"),
17
- fromHex("ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb")
18
- ],
19
- [
20
- fromHex("6161"),
21
- fromHex("961b6dd3ede3cb8ecbaacbd68de040cd78eb2ed5889130cceb4c49268ea4d506")
22
- ],
23
- [
24
- fromHex("616161"),
25
- fromHex("9834876dcfb05cb167a5c24953eba58c4ac89b1adf57f28f2f9d09af107ee8f0")
26
- ],
27
- [
28
- fromHex("61616161"),
29
- fromHex("61be55a8e2f6b4e172338bddf184d6dbee29c98853e0a0485ecee7f27b9af0b4")
30
- ],
31
- [
32
- fromHex("6161616161"),
33
- fromHex("ed968e840d10d2d313a870bc131a4e2c311d7ad09bdf32b3418147221f51a6e2")
34
- ],
35
- [
36
- fromHex("616161616161"),
37
- fromHex("ed02457b5c41d964dbd2f2a609d63fe1bb7528dbe55e1abf5b52c249cd735797")
38
- ],
39
- [
40
- fromHex("61616161616161"),
41
- fromHex("e46240714b5db3a23eee60479a623efba4d633d27fe4f03c904b9e219a7fbe60")
42
- ],
43
- [
44
- fromHex("6161616161616161"),
45
- fromHex("1f3ce40415a2081fa3eee75fc39fff8e56c22270d1a978a7249b592dcebd20b4")
46
- ],
47
- [
48
- fromHex("616161616161616161"),
49
- fromHex("f2aca93b80cae681221f0445fa4e2cae8a1f9f8fa1e1741d9639caad222f537d")
50
- ],
51
- [
52
- fromHex("61616161616161616161"),
53
- fromHex("bf2cb58a68f684d95a3b78ef8f661c9a4e5b09e82cc8f9cc88cce90528caeb27")
54
- ],
55
- [
56
- fromHex("6161616161616161616161"),
57
- fromHex("28cb017dfc99073aa1b47c1b30f413e3ce774c4991eb4158de50f9dbb36d8043")
58
- ],
59
- [
60
- fromHex("616161616161616161616161"),
61
- fromHex("f24abc34b13fade76e805799f71187da6cd90b9cac373ae65ed57f143bd664e5")
62
- ],
63
- [
64
- fromHex("61616161616161616161616161"),
65
- fromHex("a689d786e81340e45511dec6c7ab2d978434e5db123362450fe10cfac70d19d0")
66
- ],
67
- [
68
- fromHex("6161616161616161616161616161"),
69
- fromHex("82cab7df0abfb9d95dca4e5937ce2968c798c726fea48c016bf9763221efda13")
70
- ],
71
- [
72
- fromHex("616161616161616161616161616161"),
73
- fromHex("ef2df0b539c6c23de0f4cbe42648c301ae0e22e887340a4599fb4ef4e2678e48")
74
- ],
75
- [
76
- fromHex("61616161616161616161616161616161"),
77
- fromHex("0c0beacef8877bbf2416eb00f2b5dc96354e26dd1df5517320459b1236860f8c")
78
- ],
79
- [
80
- fromHex("6161616161616161616161616161616161"),
81
- fromHex("b860666ee2966dd8f903be44ee605c6e1366f926d9f17a8f49937d11624eb99d")
82
- ],
83
- [
84
- fromHex("616161616161616161616161616161616161"),
85
- fromHex("c926defaaa3d13eda2fc63a553bb7fb7326bece6e7cb67ca5296e4727d89bab4")
86
- ],
87
- [
88
- fromHex("61616161616161616161616161616161616161"),
89
- fromHex("a0b4aaab8a966e2193ba172d68162c4656860197f256b5f45f0203397ff3f99c")
90
- ],
91
- [
92
- fromHex("6161616161616161616161616161616161616161"),
93
- fromHex("42492da06234ad0ac76f5d5debdb6d1ae027cffbe746a1c13b89bb8bc0139137")
94
- ],
95
- [
96
- fromHex("616161616161616161616161616161616161616161"),
97
- fromHex("7df8e299c834de198e264c3e374bc58ecd9382252a705c183beb02f275571e3b")
98
- ],
99
- [
100
- fromHex("61616161616161616161616161616161616161616161"),
101
- fromHex("ec7c494df6d2a7ea36668d656e6b8979e33641bfea378c15038af3964db057a3")
102
- ],
103
- [
104
- fromHex("6161616161616161616161616161616161616161616161"),
105
- fromHex("897d3e95b65f26676081f8b9f3a98b6ee4424566303e8d4e7c7522ebae219eab")
106
- ],
107
- [
108
- fromHex("616161616161616161616161616161616161616161616161"),
109
- fromHex("09f61f8d9cd65e6a0c258087c485b6293541364e42bd97b2d7936580c8aa3c54")
110
- ],
111
- [
112
- fromHex("61616161616161616161616161616161616161616161616161"),
113
- fromHex("2f521e2a7d0bd812cbc035f4ed6806eb8d851793b04ba147e8f66b72f5d1f20f")
114
- ],
115
- [
116
- fromHex("6161616161616161616161616161616161616161616161616161"),
117
- fromHex("9976d549a25115dab4e36d0c1fb8f31cb07da87dd83275977360eb7dc09e88de")
118
- ],
119
- [
120
- fromHex("616161616161616161616161616161616161616161616161616161"),
121
- fromHex("cc0616e61cbd6e8e5e34e9fb2d320f37de915820206f5696c31f1fbd24aa16de")
122
- ],
123
- [
124
- fromHex("61616161616161616161616161616161616161616161616161616161"),
125
- fromHex("9c547cb8115a44883b9f70ba68f75117cd55359c92611875e386f8af98c172ab")
126
- ],
127
- [
128
- fromHex("6161616161616161616161616161616161616161616161616161616161"),
129
- fromHex("6913c9c7fd42fe23df8b6bcd4dbaf1c17748948d97f2980b432319c39eddcf6c")
130
- ],
131
- [
132
- fromHex("616161616161616161616161616161616161616161616161616161616161"),
133
- fromHex("3a54fc0cbc0b0ef48b6507b7788096235d10292dd3ae24e22f5aa062d4f9864a")
134
- ],
135
- [
136
- fromHex("61616161616161616161616161616161616161616161616161616161616161"),
137
- fromHex("61c60b487d1a921e0bcc9bf853dda0fb159b30bf57b2e2d2c753b00be15b5a09")
138
- ],
139
- [
140
- fromHex("6161616161616161616161616161616161616161616161616161616161616161"),
141
- fromHex("3ba3f5f43b92602683c19aee62a20342b084dd5971ddd33808d81a328879a547")
142
- ],
143
- [
144
- fromHex("616161616161616161616161616161616161616161616161616161616161616161"),
145
- fromHex("852785c805c77e71a22340a54e9d95933ed49121e7d2bf3c2d358854bc1359ea")
146
- ],
147
- [
148
- fromHex("61616161616161616161616161616161616161616161616161616161616161616161"),
149
- fromHex("a27c896c4859204843166af66f0e902b9c3b3ed6d2fd13d435abc020065c526f")
150
- ],
151
- [
152
- fromHex("6161616161616161616161616161616161616161616161616161616161616161616161"),
153
- fromHex("629362afc62c74497caed2272e30f8125ecd0965f8d8d7cfc4e260f7f8dd319d")
154
- ],
155
- [
156
- fromHex("616161616161616161616161616161616161616161616161616161616161616161616161"),
157
- fromHex("22c1d24bcd03e9aee9832efccd6da613fc702793178e5f12c945c7b67ddda933")
158
- ],
159
- [
160
- fromHex("61616161616161616161616161616161616161616161616161616161616161616161616161"),
161
- fromHex("21ec055b38ce759cd4d0f477e9bdec2c5b8199945db4439bae334a964df6246c")
162
- ],
163
- [
164
- fromHex("6161616161616161616161616161616161616161616161616161616161616161616161616161"),
165
- fromHex("365a9c3e2c2af0a56e47a9dac51c2c5381bf8f41273bad3175e0e619126ad087")
166
- ],
167
- [
168
- fromHex("616161616161616161616161616161616161616161616161616161616161616161616161616161"),
169
- fromHex("b4d5e56e929ba4cda349e9274e3603d0be246b82016bca20f363963c5f2d6845")
170
- ],
171
- [
172
- fromHex("61616161616161616161616161616161616161616161616161616161616161616161616161616161"),
173
- fromHex("e33cdf9c7f7120b98e8c78408953e07f2ecd183006b5606df349b4c212acf43e")
174
- ],
175
- [
176
- fromHex("6161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
177
- fromHex("c0f8bd4dbc2b0c03107c1c37913f2a7501f521467f45dd0fef6958e9a4692719")
178
- ],
179
- [
180
- fromHex("616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
181
- fromHex("7a538607fdaab9296995929f451565bbb8142e1844117322aafd2b3d76b01aff")
182
- ],
183
- [
184
- fromHex("61616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
185
- fromHex("66d34fba71f8f450f7e45598853e53bfc23bbd129027cbb131a2f4ffd7878cd0")
186
- ],
187
- [
188
- fromHex("6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
189
- fromHex("16849877c6c21ef0bfa68e4f6747300ddb171b170b9f00e189edc4c2fc4db93e")
190
- ],
191
- [
192
- fromHex("616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
193
- fromHex("52789e3423b72beeb898456a4f49662e46b0cbb960784c5ef4b1399d327e7c27")
194
- ],
195
- [
196
- fromHex("61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
197
- fromHex("6643110c5628fff59edf76d82d5bf573bf800f16a4d65dfb1e5d6f1a46296d0b")
198
- ],
199
- [
200
- fromHex("6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
201
- fromHex("11eaed932c6c6fddfc2efc394e609facf4abe814fc6180d03b14fce13a07d0e5")
202
- ],
203
- [
204
- fromHex("616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
205
- fromHex("97daac0ee9998dfcad6c9c0970da5ca411c86233a944c25b47566f6a7bc1ddd5")
206
- ],
207
- [
208
- fromHex("61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
209
- fromHex("8f9bec6a62dd28ebd36d1227745592de6658b36974a3bb98a4c582f683ea6c42")
210
- ],
211
- [
212
- fromHex("6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
213
- fromHex("160b4e433e384e05e537dc59b467f7cb2403f0214db15c5db58862a3f1156d2e")
214
- ],
215
- [
216
- fromHex("616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
217
- fromHex("bfc5fe0e360152ca98c50fab4ed7e3078c17debc2917740d5000913b686ca129")
218
- ],
219
- [
220
- fromHex("61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
221
- fromHex("6c1b3dc7a706b9dc81352a6716b9c666c608d8626272c64b914ab05572fc6e84")
222
- ],
223
- [
224
- fromHex("6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
225
- fromHex("abe346a7259fc90b4c27185419628e5e6af6466b1ae9b5446cac4bfc26cf05c4")
226
- ],
227
- [
228
- fromHex("616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
229
- fromHex("a3f01b6939256127582ac8ae9fb47a382a244680806a3f613a118851c1ca1d47")
230
- ],
231
- [
232
- fromHex("61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
233
- fromHex("9f4390f8d30c2dd92ec9f095b65e2b9ae9b0a925a5258e241c9f1e910f734318")
234
- ],
235
- [
236
- fromHex("6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
237
- fromHex("b35439a4ac6f0948b6d6f9e3c6af0f5f590ce20f1bde7090ef7970686ec6738a")
238
- ],
239
- [
240
- fromHex("616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
241
- fromHex("f13b2d724659eb3bf47f2dd6af1accc87b81f09f59f2b75e5c0bed6589dfe8c6")
242
- ],
243
- [
244
- fromHex("61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
245
- fromHex("d5c039b748aa64665782974ec3dc3025c042edf54dcdc2b5de31385b094cb678")
246
- ],
247
- [
248
- fromHex("6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
249
- fromHex("111bb261277afd65f0744b247cd3e47d386d71563d0ed995517807d5ebd4fba3")
250
- ],
251
- [
252
- fromHex("616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
253
- fromHex("11ee391211c6256460b6ed375957fadd8061cafbb31daf967db875aebd5aaad4")
254
- ],
255
- [
256
- fromHex("61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
257
- fromHex("35d5fc17cfbbadd00f5e710ada39f194c5ad7c766ad67072245f1fad45f0f530")
258
- ],
259
- [
260
- fromHex("6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
261
- fromHex("f506898cc7c2e092f9eb9fadae7ba50383f5b46a2a4fe5597dbb553a78981268")
262
- ],
263
- [
264
- fromHex("616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
265
- fromHex("7d3e74a05d7db15bce4ad9ec0658ea98e3f06eeecf16b4c6fff2da457ddc2f34")
266
- ],
267
- [
268
- fromHex("61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"),
269
- fromHex("ffe054fe7ae0cb6dc65c3af9b61d5209f439851db43d0ba5997337df154668eb")
270
- ],
271
- [
272
- fromHex("de188941a3375d3a8a061e67576e926dc71a7fa3f0cceb97452b4d3227965f9ea8cc75076d9fb9c5417aa5cb30fc22198b34982dbb629e"),
273
- fromHex("038051e9c324393bd1ca1978dd0952c2aa3742ca4f1bd5cd4611cea83892d382")
274
- ],
275
- [
276
- millionChars,
277
- fromHex("cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0")
278
- ],
279
- [
280
- fromHex("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
281
- fromHex("45ad4b37c6e2fc0a2cfcc1b5da524132ec707615c2cae1dbbc43c97aa521db81")
282
- ]
283
- ];
284
- /**
285
- * @see https://tools.ietf.org/html/rfc4231
286
- */
287
- export var hmacTestVectors = [
288
- [
289
- fromHex("0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b"),
290
- fromHex("4869205468657265"),
291
- fromHex("b0344c61d8db38535ca8afceaf0bf12b881dc200c9833da726e9376c2e32cff7")
292
- ],
293
- [
294
- fromHex("4a656665"),
295
- fromHex("7768617420646f2079612077616e7420666f72206e6f7468696e673f"),
296
- fromHex("5bdcc146bf60754e6a042426089575c75a003f089d2739839dec58b964ec3843")
297
- ],
298
- [
299
- fromHex("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
300
- fromHex("dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd"),
301
- fromHex("773ea91e36800e46854db8ebd09181a72959098b3ef8c122d9635514ced565fe")
302
- ],
303
- [
304
- fromHex("0102030405060708090a0b0c0d0e0f10111213141516171819"),
305
- fromHex("cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd"),
306
- fromHex("82558a389a443c0ea4cc819899f2083a85f0faa3e578f8077a2e3ff46729665b")
307
- ],
308
- [
309
- fromHex("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
310
- fromHex("54657374205573696e67204c6172676572205468616e20426c6f636b2d53697a65204b6579202d2048617368204b6579204669727374"),
311
- fromHex("60e431591ee0b67f0d8a26aacbf5b77f8e0bc6213728c5140546040f0ee37f54")
312
- ],
313
- [
314
- fromHex("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
315
- fromHex("5468697320697320612074657374207573696e672061206c6172676572207468616e20626c6f636b2d73697a65206b657920616e642061206c6172676572207468616e20626c6f636b2d73697a6520646174612e20546865206b6579206e6565647320746f20626520686173686564206265666f7265206265696e6720757365642062792074686520484d414320616c676f726974686d2e"),
316
- fromHex("9b09ffa71b942fcb27635fbcd5b0e944bfdc63644f0713938a7f51535c3a35e2")
317
- ]
318
- ];
319
- //# sourceMappingURL=knownHashes.fixture.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"knownHashes.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AwQ,CACzQ;QACD,OAAO,CACL,kTAAkT,CACnT;QACD,OAAO,CAAC,kEAAkE,CAAC;KAC5E;CACF,CAAC"}
@@ -1,32 +0,0 @@
1
- {
2
- "name": "@aws-crypto/sha256-js",
3
- "version": "5.2.0",
4
- "scripts": {
5
- "prepublishOnly": "tsc -p tsconfig.json && tsc -p tsconfig.module.json",
6
- "pretest": "tsc -p tsconfig.test.json",
7
- "test": "mocha --require ts-node/register test/**/*test.ts"
8
- },
9
- "main": "./build/main/index.js",
10
- "module": "./build/module/index.js",
11
- "types": "./build/main/index.d.ts",
12
- "repository": {
13
- "type": "git",
14
- "url": "git@github.com:aws/aws-sdk-js-crypto-helpers.git"
15
- },
16
- "author": {
17
- "name": "AWS Crypto Tools Team",
18
- "email": "aws-cryptools@amazon.com",
19
- "url": "https://docs.aws.amazon.com/aws-crypto-tools/index.html?id=docs_gateway#lang/en_us"
20
- },
21
- "homepage": "https://github.com/aws/aws-sdk-js-crypto-helpers/tree/master/packages/sha256-js",
22
- "license": "Apache-2.0",
23
- "dependencies": {
24
- "@aws-crypto/util": "^5.2.0",
25
- "@aws-sdk/types": "^3.222.0",
26
- "tslib": "^2.6.2"
27
- },
28
- "engines": {
29
- "node": ">=16.0.0"
30
- },
31
- "gitHead": "c11b171b35ec5c093364f0e0d8dc4ab1af68e748"
32
- }
@@ -1,164 +0,0 @@
1
- import {
2
- BLOCK_SIZE,
3
- DIGEST_LENGTH,
4
- INIT,
5
- KEY,
6
- MAX_HASHABLE_LENGTH
7
- } from "./constants";
8
-
9
- /**
10
- * @internal
11
- */
12
- export class RawSha256 {
13
- private state: Int32Array = Int32Array.from(INIT);
14
- private temp: Int32Array = new Int32Array(64);
15
- private buffer: Uint8Array = new Uint8Array(64);
16
- private bufferLength: number = 0;
17
- private bytesHashed: number = 0;
18
-
19
- /**
20
- * @internal
21
- */
22
- finished: boolean = false;
23
-
24
- update(data: Uint8Array): void {
25
- if (this.finished) {
26
- throw new Error("Attempted to update an already finished hash.");
27
- }
28
-
29
- let position = 0;
30
- let { byteLength } = data;
31
- this.bytesHashed += byteLength;
32
-
33
- if (this.bytesHashed * 8 > MAX_HASHABLE_LENGTH) {
34
- throw new Error("Cannot hash more than 2^53 - 1 bits");
35
- }
36
-
37
- while (byteLength > 0) {
38
- this.buffer[this.bufferLength++] = data[position++];
39
- byteLength--;
40
-
41
- if (this.bufferLength === BLOCK_SIZE) {
42
- this.hashBuffer();
43
- this.bufferLength = 0;
44
- }
45
- }
46
- }
47
-
48
- digest(): Uint8Array {
49
- if (!this.finished) {
50
- const bitsHashed = this.bytesHashed * 8;
51
- const bufferView = new DataView(
52
- this.buffer.buffer,
53
- this.buffer.byteOffset,
54
- this.buffer.byteLength
55
- );
56
-
57
- const undecoratedLength = this.bufferLength;
58
- bufferView.setUint8(this.bufferLength++, 0x80);
59
-
60
- // Ensure the final block has enough room for the hashed length
61
- if (undecoratedLength % BLOCK_SIZE >= BLOCK_SIZE - 8) {
62
- for (let i = this.bufferLength; i < BLOCK_SIZE; i++) {
63
- bufferView.setUint8(i, 0);
64
- }
65
- this.hashBuffer();
66
- this.bufferLength = 0;
67
- }
68
-
69
- for (let i = this.bufferLength; i < BLOCK_SIZE - 8; i++) {
70
- bufferView.setUint8(i, 0);
71
- }
72
- bufferView.setUint32(
73
- BLOCK_SIZE - 8,
74
- Math.floor(bitsHashed / 0x100000000),
75
- true
76
- );
77
- bufferView.setUint32(BLOCK_SIZE - 4, bitsHashed);
78
-
79
- this.hashBuffer();
80
-
81
- this.finished = true;
82
- }
83
-
84
- // The value in state is little-endian rather than big-endian, so flip
85
- // each word into a new Uint8Array
86
- const out = new Uint8Array(DIGEST_LENGTH);
87
- for (let i = 0; i < 8; i++) {
88
- out[i * 4] = (this.state[i] >>> 24) & 0xff;
89
- out[i * 4 + 1] = (this.state[i] >>> 16) & 0xff;
90
- out[i * 4 + 2] = (this.state[i] >>> 8) & 0xff;
91
- out[i * 4 + 3] = (this.state[i] >>> 0) & 0xff;
92
- }
93
-
94
- return out;
95
- }
96
-
97
- private hashBuffer(): void {
98
- const { buffer, state } = this;
99
-
100
- let state0 = state[0],
101
- state1 = state[1],
102
- state2 = state[2],
103
- state3 = state[3],
104
- state4 = state[4],
105
- state5 = state[5],
106
- state6 = state[6],
107
- state7 = state[7];
108
-
109
- for (let i = 0; i < BLOCK_SIZE; i++) {
110
- if (i < 16) {
111
- this.temp[i] =
112
- ((buffer[i * 4] & 0xff) << 24) |
113
- ((buffer[i * 4 + 1] & 0xff) << 16) |
114
- ((buffer[i * 4 + 2] & 0xff) << 8) |
115
- (buffer[i * 4 + 3] & 0xff);
116
- } else {
117
- let u = this.temp[i - 2];
118
- const t1 =
119
- ((u >>> 17) | (u << 15)) ^ ((u >>> 19) | (u << 13)) ^ (u >>> 10);
120
-
121
- u = this.temp[i - 15];
122
- const t2 =
123
- ((u >>> 7) | (u << 25)) ^ ((u >>> 18) | (u << 14)) ^ (u >>> 3);
124
-
125
- this.temp[i] =
126
- ((t1 + this.temp[i - 7]) | 0) + ((t2 + this.temp[i - 16]) | 0);
127
- }
128
-
129
- const t1 =
130
- ((((((state4 >>> 6) | (state4 << 26)) ^
131
- ((state4 >>> 11) | (state4 << 21)) ^
132
- ((state4 >>> 25) | (state4 << 7))) +
133
- ((state4 & state5) ^ (~state4 & state6))) |
134
- 0) +
135
- ((state7 + ((KEY[i] + this.temp[i]) | 0)) | 0)) |
136
- 0;
137
-
138
- const t2 =
139
- ((((state0 >>> 2) | (state0 << 30)) ^
140
- ((state0 >>> 13) | (state0 << 19)) ^
141
- ((state0 >>> 22) | (state0 << 10))) +
142
- ((state0 & state1) ^ (state0 & state2) ^ (state1 & state2))) |
143
- 0;
144
-
145
- state7 = state6;
146
- state6 = state5;
147
- state5 = state4;
148
- state4 = (state3 + t1) | 0;
149
- state3 = state2;
150
- state2 = state1;
151
- state1 = state0;
152
- state0 = (t1 + t2) | 0;
153
- }
154
-
155
- state[0] += state0;
156
- state[1] += state1;
157
- state[2] += state2;
158
- state[3] += state3;
159
- state[4] += state4;
160
- state[5] += state5;
161
- state[6] += state6;
162
- state[7] += state7;
163
- }
164
- }