aboutsummaryrefslogtreecommitdiffstats
path: root/include/pk_core.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-06-20 10:38:08 +0000
committerlloyd <[email protected]>2008-06-20 10:38:08 +0000
commit4331395edf8e68b46e61fc00ddb5518fef8b36b5 (patch)
tree9307d278abe6065720359df390faef327a9a3d4f /include/pk_core.h
parent3b28d92a8a90f27f3da55db7afb47ea23e02cfc4 (diff)
Pass a RandomNumberGenerator& to the PK_Core constructors and the various
public key object loading hooks.
Diffstat (limited to 'include/pk_core.h')
-rw-r--r--include/pk_core.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/pk_core.h b/include/pk_core.h
index e4d50a685..78fc49314 100644
--- a/include/pk_core.h
+++ b/include/pk_core.h
@@ -88,7 +88,9 @@ class BOTAN_DLL ELG_Core
ELG_Core() { op = 0; }
ELG_Core(const ELG_Core&);
- ELG_Core(const DL_Group&, const BigInt&, const BigInt& = 0);
+ ELG_Core(RandomNumberGenerator&, const DL_Group&,
+ const BigInt&, const BigInt& = 0);
+
~ELG_Core() { delete op; }
private:
ELG_Operation* op;
@@ -108,7 +110,8 @@ class BOTAN_DLL DH_Core
DH_Core() { op = 0; }
DH_Core(const DH_Core&);
- DH_Core(const DL_Group&, const BigInt&);
+ DH_Core(RandomNumberGenerator& rng,
+ const DL_Group&, const BigInt&);
~DH_Core() { delete op; }
private:
DH_Operation* op;