diff options
author | lloyd <[email protected]> | 2008-04-12 16:14:15 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-04-12 16:14:15 +0000 |
commit | 9cbdc7ee564c802781b82ba907b7dfb187fa52e8 (patch) | |
tree | b2adce87fa7f8ede4017b7f0662057e70040b7e3 | |
parent | cf86b705be37b125701e94cb4041a18f5d5f29fd (diff) |
Use existing reference to p in Elg_Core constructor for small code cleanup
-rw-r--r-- | src/pk_core.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pk_core.cpp b/src/pk_core.cpp index 529dbef8a..42abe7196 100644 --- a/src/pk_core.cpp +++ b/src/pk_core.cpp @@ -178,9 +178,9 @@ ELG_Core::ELG_Core(const DL_Group& group, const BigInt& y, const BigInt& x) if(x != 0) { const BigInt& p = group.get_p(); - p_bytes = group.get_p().bytes(); + p_bytes = p.bytes(); - BigInt k = random_integer(std::min(group.get_p().bits()-1, BLINDING_BITS)); + BigInt k = random_integer(std::min(p.bits()-1, BLINDING_BITS)); if(k != 0) blinder = Blinder(k, power_mod(k, x, p), p); } |