File tree Expand file tree Collapse file tree
client-sdk/ts-web/rt/src/mrae Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,13 +68,13 @@ export async function deriveSymmetricKey(
6868export async function boxSeal (
6969 nonce : Uint8Array ,
7070 plainText : Uint8Array ,
71- associateData : Uint8Array ,
71+ associatedData : Uint8Array ,
7272 publicKey : Uint8Array ,
7373 privateCK : CryptoKey ,
7474) : Promise < Uint8Array > {
7575 const sharedKey = await deriveSymmetricKey ( publicKey , privateCK ) ;
7676 const aead = new deoxysii . AEAD ( sharedKey ) ;
77- return aead . encrypt ( nonce , plainText , associateData ) ;
77+ return aead . encrypt ( nonce , plainText , associatedData ) ;
7878}
7979
8080/**
@@ -85,11 +85,11 @@ export async function boxSeal(
8585export async function boxOpen (
8686 nonce : Uint8Array ,
8787 ciperText : Uint8Array ,
88- associateData : Uint8Array ,
88+ associatedData : Uint8Array ,
8989 publicKey : Uint8Array ,
9090 privateCK : CryptoKey ,
9191) : Promise < Uint8Array > {
9292 const sharedKey = await deriveSymmetricKey ( publicKey , privateCK ) ;
9393 const aead = new deoxysii . AEAD ( sharedKey ) ;
94- return aead . decrypt ( nonce , ciperText , associateData ) ;
94+ return aead . decrypt ( nonce , ciperText , associatedData ) ;
9595}
You can’t perform that action at this time.
0 commit comments