![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
#include <Skein.hpp>
Inheritance diagram for cat::Skein:Public Member Functions | |
| bool | BeginKDF () |
| bool | BeginKey (int bits) |
| bool | BeginMAC () |
| bool | BeginPRNG () |
| void | Crunch (const void *message, int bytes) |
| void | End () |
| void | Generate (void *out, int bytes, int strengthening_rounds=0) |
| bool | SetKey (ICryptHash *parent) |
| ~Skein () | |
Protected Types | |
| typedef void(Skein::* | HashComputation )(const void *message, int blocks, u32 byte_count, u64 *NextState) |
Protected Member Functions | |
| void | GenerateInitialState (int bits) |
| void | HashComputation256 (const void *message, int blocks, u32 byte_count, u64 *NextState) |
| void | HashComputation512 (const void *message, int blocks, u32 byte_count, u64 *NextState) |
Protected Attributes | |
| int | digest_words |
| HashComputation | hash_func |
| u64 | output_block_counter |
| bool | output_prng_mode |
| u64 | State [MAX_WORDS] |
| u64 | Tweak [2] |
| int | used_bytes |
| u8 | Work [MAX_BYTES] |
Static Protected Attributes | |
| static const int | BLK_TYPE_CFG = 4 |
| static const int | BLK_TYPE_KDF = 16 |
| static const int | BLK_TYPE_KEY = 0 |
| static const int | BLK_TYPE_MSG = 48 |
| static const int | BLK_TYPE_NONCE = 20 |
| static const int | BLK_TYPE_OUT = 63 |
| static const int | BLK_TYPE_PERS = 8 |
| static const int | BLK_TYPE_PK = 12 |
| static const u32 | ID_STRING_LE = 0x33414853 |
| static const int | MAX_BITS = 512 |
| static const int | MAX_BYTES = MAX_BITS / 8 |
| static const int | MAX_WORDS = MAX_BITS / 64 |
| static const u64 | SCHEMA_VER = ((u64)VERSION << 32) | ID_STRING_LE |
| static const u64 | T1_MASK_BIT_PAD = (u64)1 << T1_POS_BIT_PAD |
| static const u64 | T1_MASK_BLK_TYPE = (u64)63 << T1_POS_BLK_TYPE |
| static const u64 | T1_MASK_FINAL = (u64)1 << T1_POS_FINAL |
| static const u64 | T1_MASK_FIRST = (u64)1 << T1_POS_FIRST |
| static const u64 | T1_MASK_TREE_LVL = (u64)0x7F << T1_POS_TREE_LVL |
| static const int | T1_POS_BIT_PAD = 119-64 |
| static const int | T1_POS_BLK_TYPE = 120-64 |
| static const int | T1_POS_FINAL = 127-64 |
| static const int | T1_POS_FIRST = 126-64 |
| static const int | T1_POS_TREE_LVL = 112-64 |
| static const u32 | VERSION = 1 |
typedef void(Skein::* cat::Skein::HashComputation)(const void *message, int blocks, u32 byte_count, u64 *NextState) [protected] |
| cat::Skein::~Skein | ( | ) |
| bool cat::Skein::BeginKDF | ( | ) | [virtual] |
Implements cat::ICryptHash.
| bool cat::Skein::BeginKey | ( | int | bits | ) | [virtual] |
Implements cat::ICryptHash.
| bool cat::Skein::BeginMAC | ( | ) | [virtual] |
Implements cat::ICryptHash.
| bool cat::Skein::BeginPRNG | ( | ) | [virtual] |
Implements cat::ICryptHash.
| void cat::Skein::Crunch | ( | const void * | message, |
| int | bytes | ||
| ) | [virtual] |
Implements cat::ICryptHash.
| void cat::Skein::End | ( | ) | [virtual] |
Implements cat::ICryptHash.
| void cat::Skein::Generate | ( | void * | out, |
| int | bytes, | ||
| int | strengthening_rounds = 0 |
||
| ) | [virtual] |
Implements cat::ICryptHash.
| void cat::Skein::GenerateInitialState | ( | int | bits | ) | [protected] |
| void cat::Skein::HashComputation256 | ( | const void * | message, |
| int | blocks, | ||
| u32 | byte_count, | ||
| u64 * | NextState | ||
| ) | [protected] |
| void cat::Skein::HashComputation512 | ( | const void * | message, |
| int | blocks, | ||
| u32 | byte_count, | ||
| u64 * | NextState | ||
| ) | [protected] |
| bool cat::Skein::SetKey | ( | ICryptHash * | parent | ) | [virtual] |
Implements cat::ICryptHash.
const int cat::Skein::BLK_TYPE_CFG = 4 [static, protected] |
const int cat::Skein::BLK_TYPE_KDF = 16 [static, protected] |
const int cat::Skein::BLK_TYPE_KEY = 0 [static, protected] |
const int cat::Skein::BLK_TYPE_MSG = 48 [static, protected] |
const int cat::Skein::BLK_TYPE_NONCE = 20 [static, protected] |
const int cat::Skein::BLK_TYPE_OUT = 63 [static, protected] |
const int cat::Skein::BLK_TYPE_PERS = 8 [static, protected] |
const int cat::Skein::BLK_TYPE_PK = 12 [static, protected] |
int cat::Skein::digest_words [protected] |
HashComputation cat::Skein::hash_func [protected] |
const u32 cat::Skein::ID_STRING_LE = 0x33414853 [static, protected] |
const int cat::Skein::MAX_BITS = 512 [static, protected] |
const int cat::Skein::MAX_BYTES = MAX_BITS / 8 [static, protected] |
const int cat::Skein::MAX_WORDS = MAX_BITS / 64 [static, protected] |
u64 cat::Skein::output_block_counter [protected] |
bool cat::Skein::output_prng_mode [protected] |
const u64 cat::Skein::SCHEMA_VER = ((u64)VERSION << 32) | ID_STRING_LE [static, protected] |
u64 cat::Skein::State[MAX_WORDS] [protected] |
const u64 cat::Skein::T1_MASK_BIT_PAD = (u64)1 << T1_POS_BIT_PAD [static, protected] |
const u64 cat::Skein::T1_MASK_BLK_TYPE = (u64)63 << T1_POS_BLK_TYPE [static, protected] |
const u64 cat::Skein::T1_MASK_FINAL = (u64)1 << T1_POS_FINAL [static, protected] |
const u64 cat::Skein::T1_MASK_FIRST = (u64)1 << T1_POS_FIRST [static, protected] |
const u64 cat::Skein::T1_MASK_TREE_LVL = (u64)0x7F << T1_POS_TREE_LVL [static, protected] |
const int cat::Skein::T1_POS_BIT_PAD = 119-64 [static, protected] |
const int cat::Skein::T1_POS_BLK_TYPE = 120-64 [static, protected] |
const int cat::Skein::T1_POS_FINAL = 127-64 [static, protected] |
const int cat::Skein::T1_POS_FIRST = 126-64 [static, protected] |
const int cat::Skein::T1_POS_TREE_LVL = 112-64 [static, protected] |
u64 cat::Skein::Tweak[2] [protected] |
int cat::Skein::used_bytes [protected] |
const u32 cat::Skein::VERSION = 1 [static, protected] |
u8 cat::Skein::Work[MAX_BYTES] [protected] |
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.