Container for public and private information in Dehornoy's authentification protocol. More...
#include <ShftConjKeyGenerationGarside.h>
Public Member Functions | |
| ShftConjKeyInstanceGarside (int braid_rank, ThRightNormalForm publicKeyA, ThRightNormalForm privateKey) | |
| Create an instance of the protocol. | |
| int | getBraidRank () const |
| (accessor function) get the rank of the braid group | |
| ThRightNormalForm | getPrivateKey () const |
| (accessor function) get the private key | |
| pair< ThRightNormalForm, ThRightNormalForm > | getPublicKey () const |
| (accessor function) get the public key | |
Static Public Member Functions | |
| static ShftConjKeyInstanceGarside | 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 | |
| ThRightNormalForm | thePrivateKey |
the private key of the first party (denoted by ) | |
| pair< ThRightNormalForm, ThRightNormalForm > | thePublicKey |
the public key of the first party | |
Container for public and private information in Dehornoy's authentification protocol.
Use this class to generate and keep an instance of Dehornoy's authentification protocol.
Definition at line 31 of file ShftConjKeyGenerationGarside.h.
| ShftConjKeyInstanceGarside::ShftConjKeyInstanceGarside | ( | int | braid_rank, | |
| ThRightNormalForm | publicKeyA, | |||
| ThRightNormalForm | privateKey | |||
| ) |
Create an instance of the protocol.
| int ShftConjKeyInstanceGarside::getBraidRank | ( | ) | const [inline] |
(accessor function) get the rank of the braid group
Definition at line 66 of file ShftConjKeyGenerationGarside.h.
References theRank.
| ThRightNormalForm ShftConjKeyInstanceGarside::getPrivateKey | ( | ) | const [inline] |
(accessor function) get the private key
Definition at line 68 of file ShftConjKeyGenerationGarside.h.
References thePrivateKey.
| pair< ThRightNormalForm , ThRightNormalForm > ShftConjKeyInstanceGarside::getPublicKey | ( | ) | const [inline] |
(accessor function) get the public key
Definition at line 70 of file ShftConjKeyGenerationGarside.h.
References thePublicKey.
| static ShftConjKeyInstanceGarside ShftConjKeyInstanceGarside::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 |
the private key of the first party (denoted by
)
Definition at line 85 of file ShftConjKeyGenerationGarside.h.
Referenced by getPrivateKey().
pair< ThRightNormalForm , ThRightNormalForm > ShftConjKeyInstanceGarside::thePublicKey [private] |
the public key of the first party
Definition at line 88 of file ShftConjKeyGenerationGarside.h.
Referenced by getPublicKey().
int ShftConjKeyInstanceGarside::theRank [private] |
the rank of the braid group
Definition at line 82 of file ShftConjKeyGenerationGarside.h.
Referenced by getBraidRank().
1.6.1