feat(fips): requested changes & additional fixes

This commit is contained in:
Daniel Hougaard
2025-07-09 23:33:18 +04:00
parent 419db549ea
commit 3c4549e262
19 changed files with 91 additions and 431 deletions
@@ -59,7 +59,7 @@ export const getBotKeyFnFactory = (
publicKey: projectV1Keys.senderPublicKey,
privateKey: userPrivateKey
});
const botKey = crypto.encryption().asymmetric().generateKeyPair();
const botKey = await crypto.encryption().asymmetric().generateKeyPair();
const { iv, tag, ciphertext, encoding, algorithm } = crypto
.encryption()
.encryptWithRootEncryptionKey(botKey.privateKey);