blob: b7f487706ebcfa8b5a5b33d832d104eda4d7608c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/*
* IF Algorithm Core
* (C) 1999-2007 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#ifndef BOTAN_IF_CORE_H__
#define BOTAN_IF_CORE_H__
#include <botan/if_op.h>
#include <botan/blinding.h>
namespace Botan {
/*
* IF Core
*/
class BOTAN_DLL IF_Core
{
public:
BigInt public_op(const BigInt&) const;
BigInt private_op(const BigInt&) const;
IF_Core& operator=(const IF_Core&);
IF_Core() { op = 0; }
IF_Core(const IF_Core&);
IF_Core(const BigInt&, const BigInt&);
IF_Core(RandomNumberGenerator& rng,
const BigInt&, const BigInt&,
const BigInt&, const BigInt&, const BigInt&,
const BigInt&, const BigInt&, const BigInt&);
~IF_Core() { delete op; }
private:
IF_Operation* op;
Blinder blinder;
};
}
#endif
|