Skip to main content

Module prf

Module prf 

Source
Expand description

Define a tweakable pseudorandom stream generator.

Re-exportsยง

use tor_error::internal; ๐Ÿ”’
use super::*; ๐Ÿ”’

Structsยง

Prf ๐Ÿ”’
Pseudorandom function based on CTR128, Polyval, and an underlying block cipher.

Constantsยง

PRF_N0_LEN ๐Ÿ”’
Length of the PRFโ€™s output when used with t=0.
PRF_N1_OFFSET ๐Ÿ”’
Offset of the PRFโ€™s output when used with t=1.

Type Aliasesยง

PrfTweak ๐Ÿ”’
The type used as a tweak for this PRF.