Skip to content

Commit 50549a3

Browse files
committed
fix: Tests comments
1 parent 3d2d8bd commit 50549a3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

modules/example-browser/src/fallback.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
* limitations under the License.
1414
*/
1515

16-
/* This is a simple example of using a raw AES keyring
17-
* to encrypt and decrypt using the AWS Encryption SDK for Javascript
16+
/* This is a simple example of configuring a fallback
17+
* for the AWS Encryption SDK for Javascript
1818
* in a browser.
1919
*/
2020

@@ -31,6 +31,12 @@ import { toBase64 } from '@aws-sdk/util-base64-browser'
3131

3232
// @ts-ignore
3333
import { subtle } from 'msrcrypto'
34+
/* In this example we use the JavaScript implementation
35+
* of WebCrypto from MSRCrypto
36+
* and configure it as a fallback for the AWS Encryption SDK.
37+
* The implementation will only be used if it is needed.
38+
* The AWS Encryption SDK will _always_ prefer the native browser implementation.
39+
*/
3440
configureFallback(subtle)
3541

3642
/* This is done to facilitate testing. */

0 commit comments

Comments
 (0)