Skip to main content

Crate noxtls_core

Crate noxtls_core 

Source
Expand description

Shared error types, wire-format helpers, build-time profile metadata, and library configuration for the NoxTLS Rust stack. Downstream crates (noxtls-crypto, noxtls, and others) depend on this crate for Error, Result, and Profile.

Structs§

FeatureSet
Boolean feature flags describing which protocol and algorithm areas are enabled for a Profile.
LibraryConfig
Top-level NoxTLS library configuration: active profile and effective security policy.
SecurityPolicy
User-tunable security policy switches paired with a Profile.

Enums§

ConstantTimePolicy
Selects how aggressively cryptographic code paths avoid data-dependent timing.
Error
Library-wide error type for length, encoding, parse, state, crypto, and feature failures.
Profile
Named build or deployment profiles that map to coarse-grained feature sets.

Functions§

compiled_allow_legacy_algorithms
Returns whether the policy-allow-legacy-algorithms Cargo feature was enabled at compile time.
compiled_allow_sha1_signatures
Returns whether the policy-allow-sha1-signatures Cargo feature was enabled at compile time.
compiled_strict_constant_time
Returns whether the policy-strict-constant-time Cargo feature was enabled at compile time.
read_u16_be
Reads an unsigned 16-bit big-endian integer from the start of input.
read_u24_be
Reads an unsigned 24-bit big-endian integer from the start of input.
secure_zero
Overwrites data with zero bytes to reduce sensitive material lifetime in memory.

Type Aliases§

Result
Convenient core::result::Result alias using Error as the error type.