add new header ident.h
[freeradius.git] / src / modules / rlm_eap / types / rlm_eap_psk / SOBMMO.h
1 /**\r
2  *@memo         Implementation of the modified counter mode\r
3  *@doc           \r
4  *@author       A. MAGNIEZ (FT R&D - DTL/SSR) \r
5  */\r
6 \r
7 #ifndef _SOBMMO_H_\r
8 #define _SOBMMO_H_\r
9 \r
10 #include "BlockCipher.h"\r
11 \r
12 \r
13 class SOBMMO {\r
14  public:\r
15   \r
16   SOBMMO();\r
17   \r
18   int initialize(const byte* K, BlockCipher* E,const byte* inputBlock,int nb,const byte* counterValues);\r
19   \r
20   byte* getOutputBlock(int id);\r
21   \r
22   virtual ~SOBMMO();\r
23   \r
24 private:\r
25   int sizeBlock; //the size of a block cipher (input and output) in bytes\r
26   int nbOutputBlocks; //number of required output blocks\r
27   byte* outputBlocks; //pointer to output blocks\r
28 };\r
29 \r
30 #endif\r