#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.
|
|
|
(accessor function) get the rank of the braid group
Definition at line 55 of file KLKeyGeneration.h. References theRank. |
|
|
(accessor function) get the private key of the first party
Definition at line 57 of file KLKeyGeneration.h. References thePrivateKeyA. |
|
|
(accessor function) get the private key of the second party
Definition at line 59 of file KLKeyGeneration.h. References thePrivateKeyB. |
|
|
(accessor function) get the public key of the first party
Definition at line 61 of file KLKeyGeneration.h. References thePublicKeyA. |
|
|
(accessor function) get the public key of the second party
Definition at line 63 of file KLKeyGeneration.h. References thePublicKeyB. |
|
||||||||||||||||
|
Generate a random instance of the protocol.
|
|
|
the base element (denoted by
Definition at line 77 of file KLKeyGeneration.h. |
|
|
the private key of the first party (denoted by
Definition at line 80 of file KLKeyGeneration.h. Referenced by getPrivateKeyA(). |
|
|
the private key of the second party (denoted by
Definition at line 86 of file KLKeyGeneration.h. Referenced by getPrivateKeyB(). |
|
|
the public key of the first party
Definition at line 83 of file KLKeyGeneration.h. Referenced by getPublicKeyA(). |
|
|
the public key of the second party
Definition at line 89 of file KLKeyGeneration.h. Referenced by getPublicKeyB(). |
|
|
the rank of the braid group
Definition at line 74 of file KLKeyGeneration.h. Referenced by getBraidRank(). |
1.4.6