monotone

monotone Mtn Source Tree

Root/botan/blinding.h

1/*************************************************
2* Blinder Header File *
3* (C) 1999-2006 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 Blinder() {}
24 Blinder(const BigInt&, const BigInt&, const BigInt&);
25 private:
26 Modular_Reducer reducer;
27 mutable BigInt e, d;
28 };
29
30}
31
32#endif

Archive Download this file

Branches

Tags

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