Crate ossl

Crate ossl 

Source
Expand description

This package provides common utilities, wrappers, and constants for interacting with the OpenSSL library (libcrypto) via its C API, primarily focusing on the EVP (high-level) interface and parameter handling (OSSL_PARAM).

Modules§

asymcipher
This module provides a coherent abstraction over the several OpenSSL asymmetric encryption apis
bindings
Part of this module is automatically generated by bindgen from the OpenSSL Headers and includes a selection of functions and other items needed to access the libcrypto/libfips functions needed.
cipher
This module provides a coherent abstraction over the OpenSSL symmetric encryption apis
derive
This module provides a coherent abstraction over the OpenSSL key deriveation apis
digest
This module provides a coherent abstraction over the OpenSSL digest apis
mac
This module provides a coherent abstraction over the OpenSSL EVP_MAC apis
pkey
This module provides a coherent abstraction for OpenSSL asymmetric Key management. It handles import/export and key generation
rand
This module provides access to the openSSL random number generator
signature
This module provides a coherent abstraction over the several OpenSSL signature apis

Structs§

Error
OsslContext
A structure representing the main crypto library context
OsslParam
A finalized OpenSSL OSSL_PARAM array.
OsslParamBuilder
A safe builder and manager for OpenSSL OSSL_PARAM arrays.
OsslSecret
A container for sensitive data that is securely zeroized on drop.

Enums§

BorrowedReference
Helper container to keep references around in structure that deal with FFI structures that reference pointers, like arrays of CK_ATTRIBUTEs and OSSL_PARAMs
ErrorKind

Functions§

zeromem
Securely zeroizes a memory slice using OPENSSL_cleanse.