Module kem

Source
Expand description

Trait definition for Key Encapsulation Mechanisms (KEM) with enhanced type safety

This module provides a type-safe interface for key encapsulation mechanisms, which are used for secure key exchange in public-key cryptography.

§Security Improvements

This trait has been hardened by removing direct byte access:

  • No AsMut<[u8]> - prevents key tampering and corruption
  • No AsRef<[u8]> - prevents accidental key exposure
  • All byte access must go through explicit, auditable methods

Traits§

Kem
Trait for Key Encapsulation Mechanism (KEM) with domain-specific types