Go to the source code of this file.
◆ alts_counter_test_input_sanity_check()
static void alts_counter_test_input_sanity_check |
( |
size_t |
counter_size, |
|
|
size_t |
overflow_size |
|
) |
| |
|
static |
◆ alts_counter_test_overflow_full_range()
static void alts_counter_test_overflow_full_range |
( |
bool |
is_client, |
|
|
size_t |
counter_size, |
|
|
size_t |
overflow_size |
|
) |
| |
|
static |
The counter can return 2^{overflow_size * 8} counters. The high-order bit is fixed to the client/server. The last call will yield a useable counter, but overflow the counter object.
Definition at line 86 of file alts_counter_test.cc.
◆ alts_counter_test_overflow_single_increment()
static void alts_counter_test_overflow_single_increment |
( |
bool |
is_client, |
|
|
size_t |
counter_size, |
|
|
size_t |
overflow_size |
|
) |
| |
|
static |
◆ do_bytes_represent_client()
static bool do_bytes_represent_client |
( |
alts_counter * |
ctr, |
|
|
unsigned char * |
, |
|
|
size_t |
size |
|
) |
| |
|
static |
◆ main()
◆ kGcmCounterSize
const size_t kGcmCounterSize = 12 |
◆ kGcmOverflowSize
const size_t kGcmOverflowSize = 5 |
◆ kSmallCounterSize
const size_t kSmallCounterSize = 4 |
◆ kSmallOverflowSize
const size_t kSmallOverflowSize = 1 |