Skip to content

Correctly wrap all key operations with a finally clause to avoid memory leaks #44

@TimoGlastra

Description

@TimoGlastra

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions