summaryrefslogtreecommitdiff
path: root/mpi.h
diff options
context:
space:
mode:
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;