Skip to main content

Module lib_ctx

Module lib_ctx 

Source
Expand description

LibCtxOSSL_LIB_CTX wrapper and ProviderOSSL_PROVIDER wrapper.

Most callers use the global default library context and never need this module. Create an explicit context when:

  • FIPS mode is required (load "fips" + "base" providers).
  • Per-process isolation of algorithm state is needed.

§Arc<LibCtx> ownership

OpenSSL does not expose OSSL_LIB_CTX_up_ref. Rust manages the lifetime via Arc<LibCtx>. Algorithm descriptors that use an explicit context store Option<Arc<LibCtx>> to extend its lifetime.

Structs§

LibCtx
An OpenSSL library context (OSSL_LIB_CTX*).
Provider
A loaded OpenSSL provider (OSSL_PROVIDER*).