-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add notice and remove changes comment (#17)
- Loading branch information
1 parent
a4a94c5
commit a6dd0cb
Showing
3 changed files
with
21 additions
and
9 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Cognito SRP Helper | ||
Copyright 2022 Simon McAllister | ||
|
||
This product includes software developed at | ||
Amazon Cognito Identity Provider SDK for JavaScript (https://github.com/aws-amplify/amplify-js/tree/main/packages/amazon-cognito-identity-js) | ||
|
||
==== Amazon Cognito Identity Provider SDK for JavaScript ==== | ||
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
|
||
==== Modifications ==== | ||
Modifications to the Amazon Cognito Identity Provider SDK in Cognito SRP Helper: | ||
|
||
- Renamed and moved `infoBits`, `N`, `g`, `k` properties in `AuthenticationHelper.js` to `constants.ts` | ||
- Renamed and moved `generateRandomSmallA`, `calculateA`, `calculateU`, `computehkdf`, `calculateS` | ||
- Moved `hash`, `hexHash`, `padHex`, `randomBytes` functions from `AuthenticationHelper.js` to `util.ts` | ||
- Modified functions to remove callbacks | ||
- Modified functions to use new constants | ||
- Modified functions to use `crypto-js` library for HMAC, WordArrays, and Base64 encoding | ||
- Modified functions to use `jsbn` library instead of `BigInteger` | ||
- Modified functions to throw custom errors for easier error handling | ||
- Use version `6.0.3` of `buffer` library |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters