⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module screen_lock

Module screen_lock 

Source
Expand description

Screen Lock

Provides a fullscreen lock screen with password authentication. Triggered via Ctrl+Alt+L or idle timeout. Renders a dark gradient background with a padlock icon, username, and dot-masked password field. Integrates with the security/auth module for credential verification.

All rendering uses integer math only (no floating point). Text is drawn via crate::graphics::font8x16::glyph() into a u32 pixel buffer (0xAARRGGBB native-endian).

Structs§

ScreenLocker
Fullscreen lock screen with password authentication.

Enums§

LockAction
Action returned from handle_key to the caller.
LockState
Current state of the screen locker.

Functions§

djb2_hash
DJB2 hash function for simple string hashing.
format_lockout_time
Convert remaining lockout ticks to whole seconds (rounded up).