ShftConjKeyInstance Class Reference

#include <ShftConjKeyGeneration.h>

List of all members.

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, WordgetPublicKey () 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, WordthePublicKey
 the public key of the first party $P_B = D(sh(A)^{-1} \sigma_1 sh(w) A)$
Word thePrivateKey
 the private key of the second party (denoted by $B$)

Detailed Description

Definition at line 23 of file ShftConjKeyGeneration.h.


Constructor & Destructor Documentation

ShftConjKeyInstance::ShftConjKeyInstance ( int  braid_rank,
Word  publicKeyA,
Word  privateKey 
)

Create an instance of the protocol.


Member Function Documentation

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.

pair< Word , Word > ShftConjKeyInstance::getPublicKey (  )  const [inline]

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

Parameters:
braid_rank - rank of the braid group;
baseLenth - the length of thePublicKey.first
keyLength - the length of thePrivateKey

Member Data Documentation

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

Definition at line 77 of file ShftConjKeyGeneration.h.

Referenced by getPrivateKey().

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

Definition at line 74 of file ShftConjKeyGeneration.h.

Referenced by getPublicKey().

the rank of the braid group

Definition at line 71 of file ShftConjKeyGeneration.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:50 2011 for CRyptography And Groups (CRAG) by  doxygen 1.6.1