#include <CookieJar.hpp>
List of all members.
Public Member Functions |
| u32 | Generate (u32 ip, u16 port) |
| u32 | Generate (const void *address_info, int bytes) |
| void | Initialize (FortunaOutput *csprng) |
| bool | Verify (const void *address_info, int bytes, u32 cookie) |
| bool | Verify (u32 ip, u16 port, u32 cookie) |
Private Member Functions |
| u32 | GetEpoch () |
| u32 | Hash (u32 ip, u16 port, u32 epoch) |
| u32 | Hash (const void *address_info, int bytes, u32 epoch) |
| u32 | ReconstructEpoch (u32 cookie) |
| u32 | Salsa6 (u32 *x) |
Private Attributes |
| u32 | key [16] |
Static Private Attributes |
| static const int | BIN_COUNT = 16 |
| static const int | BIN_MASK = BIN_COUNT - 1 |
| static const int | BIN_TIME = EXPIRE_TIME / BIN_COUNT |
| static const int | EXPIRE_TIME = 4000 |
Detailed Description
Definition at line 37 of file CookieJar.hpp.
Member Function Documentation
| u32 cat::CookieJar::Generate |
( |
u32 |
ip, |
|
|
u16 |
port |
|
) |
| |
| u32 cat::CookieJar::Generate |
( |
const void * |
address_info, |
|
|
int |
bytes |
|
) |
| |
| u32 cat::CookieJar::GetEpoch |
( |
| ) |
[private] |
| u32 cat::CookieJar::Hash |
( |
u32 |
ip, |
|
|
u16 |
port, |
|
|
u32 |
epoch |
|
) |
| [private] |
| u32 cat::CookieJar::Hash |
( |
const void * |
address_info, |
|
|
int |
bytes, |
|
|
u32 |
epoch |
|
) |
| [private] |
| u32 cat::CookieJar::ReconstructEpoch |
( |
u32 |
cookie | ) |
[private] |
| u32 cat::CookieJar::Salsa6 |
( |
u32 * |
x | ) |
[private] |
| bool cat::CookieJar::Verify |
( |
const void * |
address_info, |
|
|
int |
bytes, |
|
|
u32 |
cookie |
|
) |
| |
Member Data Documentation
The documentation for this class was generated from the following file: