refactor: application dependency management (#2363)
This commit is contained in:
@@ -350,8 +350,8 @@ export class SNWebCrypto implements PureCryptoInterface {
|
||||
public sodiumCryptoBoxEasyEncrypt(
|
||||
message: Utf8String,
|
||||
nonce: HexString,
|
||||
senderSecretKey: HexString,
|
||||
recipientPublicKey: HexString,
|
||||
senderSecretKey: HexString,
|
||||
): Base64String {
|
||||
const result = sodium.crypto_box_easy(
|
||||
message,
|
||||
|
||||
@@ -277,8 +277,8 @@ describe('crypto operations', async function () {
|
||||
const ciphertext = await webCrypto.sodiumCryptoBoxEasyEncrypt(
|
||||
plaintext,
|
||||
nonce,
|
||||
senderKeyPair.privateKey,
|
||||
recipientKeyPair.publicKey,
|
||||
senderKeyPair.privateKey,
|
||||
)
|
||||
|
||||
expect(ciphertext.length).to.equal(44)
|
||||
|
||||
Reference in New Issue
Block a user