aboutsummaryrefslogtreecommitdiffstats
path: root/include/pubkey.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-06-10 19:10:34 +0000
committerlloyd <[email protected]>2008-06-10 19:10:34 +0000
commitb36db2d74992f2ea80329378c32a6321d6a60b26 (patch)
tree426add866dd75f8b3e73e0bde0ae5d936c305662 /include/pubkey.h
parent54fecdc60438d15f970055bb691e18c6469e1785 (diff)
Change PK_Signer::signature to take a RandomNumberGenerator reference
instead of always using the global PRNG.
Diffstat (limited to 'include/pubkey.h')
-rw-r--r--include/pubkey.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/pubkey.h b/include/pubkey.h
index a5d332241..4890fe38d 100644
--- a/include/pubkey.h
+++ b/include/pubkey.h
@@ -51,14 +51,16 @@ class BOTAN_DLL PK_Decryptor
class BOTAN_DLL PK_Signer
{
public:
- SecureVector<byte> sign_message(const byte[], u32bit);
- SecureVector<byte> sign_message(const MemoryRegion<byte>&);
+ SecureVector<byte> sign_message(const byte[], u32bit,
+ RandomNumberGenerator&);
+ SecureVector<byte> sign_message(const MemoryRegion<byte>&,
+ RandomNumberGenerator&);
void update(byte);
void update(const byte[], u32bit);
void update(const MemoryRegion<byte>&);
- SecureVector<byte> signature();
+ SecureVector<byte> signature(RandomNumberGenerator&);
void set_output_format(Signature_Format);