Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Macros
Pages
cryptotools
ro
ro.hpp
Go to the documentation of this file.
1
11
#ifndef _RO_H_
12
#define _RO_H_
13
14
#include <cstdint>
15
#include <vector>
16
17
#include "../sha/shax.hpp"
18
#include "../prg/prg.hpp"
19
20
namespace
cryptoTools {
21
22
31
class
RO
32
{
33
private
:
38
SHAx
*
hashfunction
;
39
43
PRG
*
prg
;
44
45
50
uint32_t
nout
;
51
60
std::vector<uint8_t>
vectNout
;
61
62
public
:
70
RO
(
SHAx
* hash, uint32_t outlen);
71
80
std::vector<uint8_t>
query
(std::vector<uint8_t> d);
81
82
};
83
84
85
}
// closing namespace
86
87
#endif
88
89