#include <ShftConjKeyGeneration.h>
Public Member Functions | |
| ShftConjKeyInstance (int braid_rank, Word publicKeyA, Word privateKey) | |
| Create an instance of the protocol. | |
| int | getBraidRank () const |
| (accessor function) get the rank of the braid group | |
| Word | getPrivateKey () const |
| (accessor function) get the private key | |
| pair< Word, Word > | getPublicKey () const |
| (accessor function) get the public key | |
Static Public Member Functions | |
| static ShftConjKeyInstance | 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 | |
| pair< Word, Word > | thePublicKey |
the public key of the first party | |
| Word | thePrivateKey |
the private key of the second party (denoted by ) | |
Definition at line 23 of file ShftConjKeyGeneration.h.
Create an instance of the protocol.
| int ShftConjKeyInstance::getBraidRank | ( | ) | const [inline] |
(accessor function) get the rank of the braid group
Definition at line 55 of file ShftConjKeyGeneration.h.
References theRank.
| Word ShftConjKeyInstance::getPrivateKey | ( | ) | const [inline] |
(accessor function) get the private key
Definition at line 57 of file ShftConjKeyGeneration.h.
References thePrivateKey.
(accessor function) get the public key
Definition at line 59 of file ShftConjKeyGeneration.h.
References thePublicKey.
| static ShftConjKeyInstance ShftConjKeyInstance::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 thePublicKey.first | |
| keyLength | - the length of thePrivateKey |
Word ShftConjKeyInstance::thePrivateKey [private] |
the private key of the second party (denoted by
)
Definition at line 77 of file ShftConjKeyGeneration.h.
Referenced by getPrivateKey().
pair< Word , Word > ShftConjKeyInstance::thePublicKey [private] |
the public key of the first party
Definition at line 74 of file ShftConjKeyGeneration.h.
Referenced by getPublicKey().
int ShftConjKeyInstance::theRank [private] |
the rank of the braid group
Definition at line 71 of file ShftConjKeyGeneration.h.
Referenced by getBraidRank().
1.6.1