monotone

monotone Mtn Source Tree

Root/botan/blinding.h

1/*************************************************
2* Blinder Header File *
3* (C) 1999-2005 The Botan Project *
4*************************************************/
5
6#ifndef BOTAN_BLINDER_H__
7#define BOTAN_BLINDER_H__
8
9#include <botan/bigint.h>
10#include <botan/reducer.h>
11
12namespace Botan {
13
14/*************************************************
15* Blinding Function Object *
16*************************************************/
17class Blinder
18 {
19 public:
20 BigInt blind(const BigInt&) const;
21 BigInt unblind(const BigInt&) const;
22
23 void initialize(const BigInt&, const BigInt&, const BigInt&);
24 Blinder& operator=(const Blinder&);
25
26 Blinder();
27 Blinder(const Blinder&);
28 ~Blinder();
29 private:
30 mutable BigInt e, d;
31 BigInt n;
32 ModularReducer* reducer;
33 };
34
35}
36
37#endif

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status