refactor: application dependency management (#2363)

This commit is contained in:
Mo
2023-07-23 15:54:31 -05:00
committed by GitHub
parent e698b1c990
commit a77535456c
299 changed files with 7415 additions and 4890 deletions

View File

@@ -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,

View File

@@ -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)