Shadowrun: Awakened 29 September 2011 - Build 871
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes
cat::KeyAgreementCommon Class Reference

#include <KeyAgreement.hpp>

Inheritance diagram for cat::KeyAgreementCommon:

List of all members.

Public Member Functions

void GenerateKey (BigTwistedEdwards *math, IRandom *prng, Leg *key)

Static Public Member Functions

static BigTwistedEdwardsInstantiateMath (int bits)

Static Public Attributes

static const int ECC_REG_OVERHEAD = 21
static const int EDWARD_C_256 = 435
static const int EDWARD_C_384 = 2147
static const int EDWARD_C_512 = 875
static const int EDWARD_D_256 = 31720
static const int EDWARD_D_384 = 13036
static const int EDWARD_D_512 = 32
static const int MAX_BITS = 512
static const int MAX_BYTES = MAX_BITS / 8
static const int MAX_LEGS = MAX_BYTES / sizeof(Leg)

Protected Member Functions

bool Initialize (int bits)

Protected Attributes

int KeyBits
int KeyBytes
int KeyLegs

Detailed Description

Definition at line 175 of file KeyAgreement.hpp.


Member Function Documentation

void cat::KeyAgreementCommon::GenerateKey ( BigTwistedEdwards math,
IRandom prng,
Leg *  key 
)
bool cat::KeyAgreementCommon::Initialize ( int  bits) [protected]
static BigTwistedEdwards* cat::KeyAgreementCommon::InstantiateMath ( int  bits) [static]

Member Data Documentation

Definition at line 181 of file KeyAgreement.hpp.

const int cat::KeyAgreementCommon::EDWARD_C_256 = 435 [static]

Definition at line 185 of file KeyAgreement.hpp.

const int cat::KeyAgreementCommon::EDWARD_C_384 = 2147 [static]

Definition at line 187 of file KeyAgreement.hpp.

const int cat::KeyAgreementCommon::EDWARD_C_512 = 875 [static]

Definition at line 189 of file KeyAgreement.hpp.

const int cat::KeyAgreementCommon::EDWARD_D_256 = 31720 [static]

Definition at line 186 of file KeyAgreement.hpp.

const int cat::KeyAgreementCommon::EDWARD_D_384 = 13036 [static]

Definition at line 188 of file KeyAgreement.hpp.

const int cat::KeyAgreementCommon::EDWARD_D_512 = 32 [static]

Definition at line 190 of file KeyAgreement.hpp.

Definition at line 198 of file KeyAgreement.hpp.

Definition at line 198 of file KeyAgreement.hpp.

const int cat::KeyAgreementCommon::MAX_BITS = 512 [static]

Definition at line 193 of file KeyAgreement.hpp.

const int cat::KeyAgreementCommon::MAX_BYTES = MAX_BITS / 8 [static]

Definition at line 194 of file KeyAgreement.hpp.

const int cat::KeyAgreementCommon::MAX_LEGS = MAX_BYTES / sizeof(Leg) [static]

Definition at line 195 of file KeyAgreement.hpp.


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

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net