#include <KLKeyGeneration.h>
Public Member Functions | |
KLProtocolInstance (int braid_rank, Word base_word, Word keyA, Word KeyB) | |
Create an instance of the protocol. | |
int | getBraidRank () const |
(accessor function) get the rank of the braid group | |
Word | getPrivateKeyA () const |
(accessor function) get the private key of the first party | |
Word | getPrivateKeyB () const |
(accessor function) get the private key of the second party | |
Word | getPublicKeyA () const |
(accessor function) get the public key of the first party | |
Word | getPublicKeyB () const |
(accessor function) get the public key of the second party | |
Static Public Member Functions | |
static KLProtocolInstance | random (int braid_rank, int baseLenth, int keyLength) |
Generate a random instance of the protocol. | |
Private Attributes | |
int | theRank |
the rank of the braid group | |
Word | theBase |
the base element (denoted by ) | |
Word | thePrivateKeyA |
the private key of the first party (denoted by ) | |
Word | thePublicKeyA |
the public key of the first party | |
Word | thePrivateKeyB |
the private key of the second party (denoted by ) | |
Word | thePublicKeyB |
the public key of the second party |
Definition at line 23 of file KLKeyGeneration.h.
Create an instance of the protocol.
int KLProtocolInstance::getBraidRank | ( | ) | const [inline] |
(accessor function) get the rank of the braid group
Definition at line 55 of file KLKeyGeneration.h.
References theRank.
Word KLProtocolInstance::getPrivateKeyA | ( | ) | const [inline] |
(accessor function) get the private key of the first party
Definition at line 57 of file KLKeyGeneration.h.
References thePrivateKeyA.
Word KLProtocolInstance::getPrivateKeyB | ( | ) | const [inline] |
(accessor function) get the private key of the second party
Definition at line 59 of file KLKeyGeneration.h.
References thePrivateKeyB.
Word KLProtocolInstance::getPublicKeyA | ( | ) | const [inline] |
(accessor function) get the public key of the first party
Definition at line 61 of file KLKeyGeneration.h.
References thePublicKeyA.
Word KLProtocolInstance::getPublicKeyB | ( | ) | const [inline] |
(accessor function) get the public key of the second party
Definition at line 63 of file KLKeyGeneration.h.
References thePublicKeyB.
static KLProtocolInstance KLProtocolInstance::random | ( | int | braid_rank, | |
int | baseLenth, | |||
int | keyLength | |||
) | [static] |
Generate a random instance of the protocol.
braid_rank | - rank of the braid group; | |
baseLenth | - the length of the base word | |
keyLength | - the length of the key |
Word KLProtocolInstance::theBase [private] |
the base element (denoted by )
Definition at line 77 of file KLKeyGeneration.h.
Word KLProtocolInstance::thePrivateKeyA [private] |
the private key of the first party (denoted by )
Definition at line 80 of file KLKeyGeneration.h.
Referenced by getPrivateKeyA().
Word KLProtocolInstance::thePrivateKeyB [private] |
the private key of the second party (denoted by )
Definition at line 86 of file KLKeyGeneration.h.
Referenced by getPrivateKeyB().
Word KLProtocolInstance::thePublicKeyA [private] |
the public key of the first party
Definition at line 83 of file KLKeyGeneration.h.
Referenced by getPublicKeyA().
Word KLProtocolInstance::thePublicKeyB [private] |
the public key of the second party
Definition at line 89 of file KLKeyGeneration.h.
Referenced by getPublicKeyB().
int KLProtocolInstance::theRank [private] |
the rank of the braid group
Definition at line 74 of file KLKeyGeneration.h.
Referenced by getBraidRank().