[go: up one dir, main page]

zeroize 0.3.0

Securely zero memory while avoiding compiler optimizations: cross-platform secure intrinsics for zeroing memory, using FFI to invoke OS intrinsics on stable Rust (with support for Linux, Windows, macOS/iOS, FreeBSD, OpenBSD, NetBSD, DragonflyBSD), or the unstable 'volatile_set_memory()` intrinsic on nightly. No insecure fallbacks, no dependencies, no std, no functionality besides securely zeroing memory.
Documentation
[package]
name        = "zeroize"
description = """
              Securely zero memory while avoiding compiler optimizations:
              cross-platform secure intrinsics for zeroing memory, using FFI
              to invoke OS intrinsics on stable Rust (with support for Linux,
              Windows, macOS/iOS, FreeBSD, OpenBSD, NetBSD, DragonflyBSD),
              or the unstable 'volatile_set_memory()` intrinsic on nightly.
              No insecure fallbacks, no dependencies, no std, no functionality
              besides securely zeroing memory.
              """
version     = "0.3.0" # Also update html_root_url in lib.rs when bumping this
authors     = ["Tony Arcieri <tony@iqlusion.io>"]
license     = "Apache-2.0 OR MIT"
homepage    = "https://github.com/iqlusioninc/crates/"
repository  = "https://github.com/iqlusioninc/crates/tree/master/zeroize"
readme      = "README.md"
categories  = ["cryptography", "memory-management", "no-std", "os"]
keywords    = ["memory", "memset", "secure", "volatile", "zero"]

[features]
# enable feature detection for all platforms by default
default = ["linux-backport", "windows"]

# backport of 'explicit_bzero' (C code) for glibc <2.25
linux-backport = ["cc"]

# `volatile_set_memory` support on nightly Rust
nightly = []

# `SecureZeroMemory` shim on Windows
windows = ["cc"]

[build-dependencies]
cc = { version = "1", optional = true }

[badges]
circle-ci = { repository = "iqlusioninc/crates" }