Skip to content

zeroize: libc feature? #1254

@tarcieri

Description

@tarcieri

It looks like on several operating systems, the libc crate has wrappers for secure memset/bzero primitives:

rust-lang/libc#2156

We could potentially have an optional dependency on libc which calls into these primitives from e.g. volatile_set, while defaulting to a portable implementation. Many programs are already linking with libc anyway.

We would somewhat annoyingly have to build an abstraction across them.

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