monotone

monotone Mtn Source Tree

Root/botan/barrett.h

1/*************************************************
2* Barrett Reducer Header File *
3* (C) 1999-2005 The Botan Project *
4*************************************************/
5
6#ifndef BOTAN_BARRETT_H__
7#define BOTAN_BARRETT_H__
8
9#include <botan/reducer.h>
10
11namespace Botan {
12
13/*************************************************
14* Barrett Reducer *
15*************************************************/
16class BarrettReducer : public ModularReducer
17 {
18 public:
19 BigInt reduce(const BigInt&) const;
20
21 BarrettReducer(const BigInt&);
22 private:
23 u32bit max_bits, k;
24 BigInt mu;
25 mutable BigInt t1, t2;
26 };
27
28}
29
30#endif

Archive Download this file

Branches

Tags

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