KLProtocolInstance Class Reference

#include <KLKeyGeneration.h>

List of all members.

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 $w$)
Word thePrivateKeyA
 the private key of the first party (denoted by $A$)
Word thePublicKeyA
 the public key of the first party $P_B = D(A^{-1} w A)$
Word thePrivateKeyB
 the private key of the second party (denoted by $B$)
Word thePublicKeyB
 the public key of the second party $P_B = D(B^{-1} w B)$

Detailed Description

Definition at line 23 of file KLKeyGeneration.h.


Constructor & Destructor Documentation

KLProtocolInstance::KLProtocolInstance ( int  braid_rank,
Word  base_word,
Word  keyA,
Word  KeyB 
)

Create an instance of the protocol.


Member Function Documentation

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.

Parameters:
braid_rank - rank of the braid group;
baseLenth - the length of the base word
keyLength - the length of the key

Member Data Documentation

the base element (denoted by $w$)

Definition at line 77 of file KLKeyGeneration.h.

the private key of the first party (denoted by $A$)

Definition at line 80 of file KLKeyGeneration.h.

Referenced by getPrivateKeyA().

the private key of the second party (denoted by $B$)

Definition at line 86 of file KLKeyGeneration.h.

Referenced by getPrivateKeyB().

the public key of the first party $P_B = D(A^{-1} w A)$

Definition at line 83 of file KLKeyGeneration.h.

Referenced by getPublicKeyA().

the public key of the second party $P_B = D(B^{-1} w B)$

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().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Mon Sep 26 18:43:48 2011 for CRyptography And Groups (CRAG) by  doxygen 1.6.1