secbits 0.3.3

A library for secure memory handling featuring
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;

/// Custom error type for secure memory operations
#[derive(Debug, Error)]
pub enum SecError {
    #[error("Invalid input: {0}")]
    InvalidInput(String),

    #[error("Allocation failed")]
    AllocationFailed,

    #[error("System call failed: {0}")]
    SyscallFailed(#[from] std::io::Error),

    #[error("Memory protection violation")]
    ProtectionViolation,
}