![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
#include <KeyAgreementResponder.hpp>
Inheritance diagram for cat::KeyAgreementResponder: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] |
Definition at line 44 of file KeyAgreementResponder.hpp.
| cat::KeyAgreementResponder::KeyAgreementResponder | ( | ) |
| cat::KeyAgreementResponder::~KeyAgreementResponder | ( | ) |
| 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 | ||
| ) |
volatile u32 cat::KeyAgreementResponder::ActiveY [private] |
Definition at line 58 of file KeyAgreementResponder.hpp.
Leg* cat::KeyAgreementResponder::b [private] |
Definition at line 46 of file KeyAgreementResponder.hpp.
Leg* cat::KeyAgreementResponder::B [private] |
Definition at line 47 of file KeyAgreementResponder.hpp.
Leg* cat::KeyAgreementResponder::B_neutral [private] |
Definition at line 48 of file KeyAgreementResponder.hpp.
volatile u32 cat::KeyAgreementResponder::ChallengeCount [private] |
Definition at line 57 of file KeyAgreementResponder.hpp.
Leg* cat::KeyAgreementResponder::G_MultPrecomp [private] |
Definition at line 49 of file KeyAgreementResponder.hpp.
Leg* cat::KeyAgreementResponder::y[2] [private] |
Definition at line 50 of file KeyAgreementResponder.hpp.
Leg* cat::KeyAgreementResponder::Y_neutral[2] [private] |
Definition at line 51 of file KeyAgreementResponder.hpp.
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.