Module ctr

Module ctr 

Source
Expand description

Counter (CTR) mode with proper error propagation and secure memory handling

Counter mode turns a block cipher into a stream cipher by encrypting successive values of a counter and XORing the result with the plaintext.

This implementation follows NIST SP 800-38A recommendations for CTR mode, using a flexible nonce-counter format with secure memory handling.

Structs§

Ctr
Counter mode implementation with secure memory handling

Enums§

CounterPosition
Counter position within the counter block