summaryrefslogtreecommitdiff
path: root/mpi.h
diff options
context:
space:
mode:
authorErwin Nindl <nine@wirdorange.org>2007-12-11 12:24:54 +0000
committerErwin Nindl <nine@wirdorange.org>2007-12-11 12:24:54 +0000
commit7a707064d7d212cd4f2fbb7e90720cb3893686d1 (patch)
tree0210b6a13d458d6adcf38e093198aa3376ad7763 /mpi.h
parentfixed Makefile, ip detection (diff)
fixes in mpi class, keyderivation iv generation
Diffstat (limited to 'mpi.h')
-rw-r--r--mpi.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/mpi.h b/mpi.h
index c8a9907..1be758e 100644
--- a/mpi.h
+++ b/mpi.h
@@ -49,8 +49,10 @@ public:
void operator=(long unsigned int);
Mpi operator+(const Mpi &b) const;
Mpi operator^(const Mpi &b) const;
+ Mpi operator*(const unsigned long int n) const;
- void rShift(u_int8_t n);
+ void rShift(u_int8_t n); // LSB on the right side!
+ Mpi mul2exp(u_int32_t e) const; // value * 2^e
Buffer getBuf() const;
u_int32_t getLen() const;