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

Module protocol

Module protocol 

Source
Expand description

Kerberos v5 Protocol (RFC 4120)

Implements Kerberos message types, principal names, encryption types, and the client-side AS-REQ/AS-REP and TGS-REQ/TGS-REP flows. All messages are encoded using crate::net::asn1 for ASN.1/BER serialization.

§Key Derivation

Provides string2key stubs for AES-256-CTS-HMAC-SHA1-96 (etype 18) using PBKDF2-HMAC-SHA1 with 4096 iterations. Full AES-CTS encryption is stubbed pending a complete AES implementation.

Structs§

AsRepParts
Parsed AS-REP components.
EncKdcRepPart
Encrypted part of a KDC reply (EncKDCRepPart).
EncryptedData
Encrypted data container (EncryptedData in RFC 4120).
KdcReqBody
KDC request body (KDC-REQ-BODY).
KerberosClient
Kerberos v5 client.
KerberosTime
Kerberos timestamp (seconds since epoch, integer-only).
PrincipalName
Kerberos principal name.
TgsRepParts
Parsed TGS-REP components.
Ticket
Kerberos Ticket.

Enums§

EncryptionType
Kerberos encryption types
KerberosMsgType
Kerberos message types
NameType
Kerberos name types

Constants§

KDC_PORT
Default Kerberos port

Functions§

derive_usage_key
Derive a usage-specific key (dk) from a base key.
random_to_key
Convert random bytes to a key (random-to-key).