aes_cnt_cipher Struct Reference


Data Fields

u32 rk [4 *(MAXNR+1)]
int nr
u32 counter3
u32 counter2
u32 counter1
u32 counter0
u8 buf [16]
u8 pos

Detailed Description

Implements an AES counter-mode cipher.

Field Documentation

u32 aes_cnt_cipher::rk[4 *(MAXNR+1)]

This next element (however it's defined) is the AES key.

Referenced by _aes_fill_buf(), and aes_set_key().

These four values, together, implement a 128-bit counter, with counter0 as the low-order word and counter3 as the high-order word.

Referenced by _aes_fill_buf(), aes_set_iv(), and aes_set_key().

The encrypted value of ctr_buf.

Referenced by _aes_fill_buf(), aes_crypt(), aes_crypt_inplace(), aes_set_iv(), and aes_set_key().

Our current stream position within buf.

Referenced by aes_crypt(), aes_crypt_inplace(), aes_set_iv(), and aes_set_key().


The documentation for this struct was generated from the following file:

Generated on Tue May 25 00:31:06 2010 for tor by  doxygen 1.5.6