LengthAttackBase Class Reference

Basis interface for classes implementing the Length-Based attack. More...

#include <LengthAttack.h>

Inheritance diagram for LengthAttackBase:
LengthAttack_A1 LengthAttack_A2 LengthAttack_A3

List of all members.

Public Member Functions

virtual int type ()=0
 Returns the algorithm type.
virtual findKey_LengthBasedResult findKey_LengthBased (int N, const vector< Word > &A1, const vector< Word > &A2, const vector< Word > &B, int sec=9999999, ostream &out=cout)=0
 Attack on an instances of the AAG protocol.

Detailed Description

Basis interface for classes implementing the Length-Based attack.

Definition at line 32 of file LengthAttack.h.


Member Function Documentation

virtual findKey_LengthBasedResult LengthAttackBase::findKey_LengthBased ( int  N,
const vector< Word > &  A1,
const vector< Word > &  A2,
const vector< Word > &  B,
int  sec = 9999999,
ostream &  out = cout 
) [pure virtual]

Attack on an instances of the AAG protocol.

Executes a length-based attack on an instance of the AAG protocol

Parameters:
N - rank of the braid group (number of strands)
A1 - Alices subgroup generators
A2 - Alices subgroup generators conjugated by Bob's private key
B - Bob's subgroup (Bob's private key belongs to it)
sec - amount of time (in seconds) given to procedure to finish
Returns:
- Returns findKey_LengthBasedResult::SUCCESSFULL if the attack succeeds, findKey_LengthBasedResult::FAILED if the attack fails and findKey_LengthBasedResult::TIME_EXPIRED if the time limit is exceeded

Implemented in LengthAttack_A1, LengthAttack_A2, and LengthAttack_A3.

virtual int LengthAttackBase::type (  )  [pure virtual]

Returns the algorithm type.

Implemented in LengthAttack_A1, LengthAttack_A2, and LengthAttack_A3.


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