E.g in this case the key is not free if there is a decryption error:
|
const derived = this.deriveKey({ encryptionAlgorithm, ephemeralKey: eKey, recipientKey: rKey, receive: false }) |
|
const encryptedBuffer = derived.aeadEncrypt({ message, aad, nonce }) |
|
derived.handle.free() |