From 7a707064d7d212cd4f2fbb7e90720cb3893686d1 Mon Sep 17 00:00:00 2001 From: Erwin Nindl Date: Tue, 11 Dec 2007 12:24:54 +0000 Subject: fixes in mpi class, keyderivation iv generation --- mpi.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mpi.h') 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; -- cgit v1.2.3