Skip to content

Add zeroize for output key material  #102

Description

@nnmkhang

Several APIs return or hold sensitive key material (recovered plaintext from AES-KW(P) ,private key bytes from ECDH/ECDSA/RSA exports, derived secrets from HKDF/SP800-108, etc.) in plain Vec or [u8; N]. Dropping these values does not wipe the underlying memory, so secrets can linger in the allocator until the pages are reused.

At a minimum, should document to users that they should zero themselves, or implement zeroize.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions