diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-07-25 00:15:52 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-07-25 00:15:52 +0000 |
commit | 58d9f812c149943cc18bd5b926b22fcc7b9b8b27 (patch) | |
tree | 9227398b87250aa1eca81b0853a967fe9d003103 /blumshub.cpp | |
parent | 60ae2279fbb3b8082a7963ce73dcd2b6b2d4a50e (diff) | |
download | cryptopp-58d9f812c149943cc18bd5b926b22fcc7b9b8b27.tar.gz |
fix bugs in 64-bit CPU support
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@112 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'blumshub.cpp')
-rw-r--r-- | blumshub.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/blumshub.cpp b/blumshub.cpp index 40c654a..6e1854d 100644 --- a/blumshub.cpp +++ b/blumshub.cpp @@ -39,9 +39,9 @@ BlumBlumShub::BlumBlumShub(const Integer &p, const Integer &q, const Integer &se { } -void BlumBlumShub::Seek(dword index) +void BlumBlumShub::Seek(lword index) { - Integer i(Integer::POSITIVE, HIGH_WORD(index), word(index)); + Integer i(Integer::POSITIVE, index); i *= 8; Integer e = a_exp_b_mod_c (2, i / maxBits + 1, (p-1)*(q-1)); current = modn.Exponentiate(x0, e); |