Shadowrun: Awakened 29 September 2011 - Build 871
Public Member Functions | Private Member Functions | Private Attributes
cat::KeyAgreementResponder Class Reference

#include <KeyAgreementResponder.hpp>

Inheritance diagram for cat::KeyAgreementResponder:

List of all members.

Public Member Functions

bool Initialize (BigTwistedEdwards *math, FortunaOutput *csprng, const u8 *responder_public_key, int public_bytes, const u8 *responder_private_key, int private_bytes)
 KeyAgreementResponder ()
bool KeyEncryption (Skein *key_hash, AuthenticatedEncryption *auth_enc, const char *key_name)
bool ProcessChallenge (BigTwistedEdwards *math, FortunaOutput *csprng, const u8 *initiator_challenge, int challenge_bytes, u8 *responder_answer, int answer_bytes, Skein *key_hash)
bool Sign (BigTwistedEdwards *math, FortunaOutput *csprng, const u8 *message, int message_bytes, u8 *signature, int signature_bytes)
 ~KeyAgreementResponder ()

Private Member Functions

bool AllocateMemory ()
void FreeMemory ()
void Rekey (BigTwistedEdwards *math, FortunaOutput *csprng)

Private Attributes

volatile u32 ActiveY
Leg * b
Leg * B
Leg * B_neutral
volatile u32 ChallengeCount
Leg * G_MultPrecomp
Leg * y [2]
Leg * Y_neutral [2]

Detailed Description

Definition at line 44 of file KeyAgreementResponder.hpp.


Constructor & Destructor Documentation

cat::KeyAgreementResponder::KeyAgreementResponder ( )
cat::KeyAgreementResponder::~KeyAgreementResponder ( )

Member Function Documentation

bool cat::KeyAgreementResponder::AllocateMemory ( ) [private]
void cat::KeyAgreementResponder::FreeMemory ( ) [private]
bool cat::KeyAgreementResponder::Initialize ( BigTwistedEdwards math,
FortunaOutput csprng,
const u8 responder_public_key,
int  public_bytes,
const u8 responder_private_key,
int  private_bytes 
)
bool cat::KeyAgreementResponder::KeyEncryption ( Skein key_hash,
AuthenticatedEncryption auth_enc,
const char *  key_name 
) [inline]

Definition at line 77 of file KeyAgreementResponder.hpp.

References cat::KeyAgreementCommon::KeyBytes, and cat::AuthenticatedEncryption::SetKey().

    {
        return auth_enc->SetKey(KeyBytes, key_hash, false, key_name);
    }
bool cat::KeyAgreementResponder::ProcessChallenge ( BigTwistedEdwards math,
FortunaOutput csprng,
const u8 initiator_challenge,
int  challenge_bytes,
u8 responder_answer,
int  answer_bytes,
Skein key_hash 
)
void cat::KeyAgreementResponder::Rekey ( BigTwistedEdwards math,
FortunaOutput csprng 
) [private]
bool cat::KeyAgreementResponder::Sign ( BigTwistedEdwards math,
FortunaOutput csprng,
const u8 message,
int  message_bytes,
u8 signature,
int  signature_bytes 
)

Member Data Documentation

Definition at line 58 of file KeyAgreementResponder.hpp.

Definition at line 46 of file KeyAgreementResponder.hpp.

Definition at line 47 of file KeyAgreementResponder.hpp.

Definition at line 48 of file KeyAgreementResponder.hpp.

Definition at line 57 of file KeyAgreementResponder.hpp.

Definition at line 49 of file KeyAgreementResponder.hpp.

Leg* cat::KeyAgreementResponder::y[2] [private]

Definition at line 50 of file KeyAgreementResponder.hpp.

Definition at line 51 of file KeyAgreementResponder.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