From b36db2d74992f2ea80329378c32a6321d6a60b26 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 10 Jun 2008 19:10:34 +0000 Subject: Change PK_Signer::signature to take a RandomNumberGenerator reference instead of always using the global PRNG. --- include/pubkey.h | 8 +++++--- include/x509_ca.h | 3 ++- include/x509_obj.h | 1 + 3 files changed, 8 insertions(+), 4 deletions(-) (limited to 'include') 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 sign_message(const byte[], u32bit); - SecureVector sign_message(const MemoryRegion&); + SecureVector sign_message(const byte[], u32bit, + RandomNumberGenerator&); + SecureVector sign_message(const MemoryRegion&, + RandomNumberGenerator&); void update(byte); void update(const byte[], u32bit); void update(const MemoryRegion&); - SecureVector signature(); + SecureVector signature(RandomNumberGenerator&); void set_output_format(Signature_Format); diff --git a/include/x509_ca.h b/include/x509_ca.h index f6564d045..1f0e35261 100644 --- a/include/x509_ca.h +++ b/include/x509_ca.h @@ -31,7 +31,8 @@ class BOTAN_DLL X509_CA X509_CRL update_crl(const X509_CRL&, const std::vector&, u32bit = 0) const; - static X509_Certificate make_cert(PK_Signer*, const AlgorithmIdentifier&, + static X509_Certificate make_cert(PK_Signer*, + const AlgorithmIdentifier&, const MemoryRegion&, const X509_Time&, const X509_Time&, const X509_DN&, const X509_DN&, diff --git a/include/x509_obj.h b/include/x509_obj.h index 55065f6f5..2ec3740cf 100644 --- a/include/x509_obj.h +++ b/include/x509_obj.h @@ -24,6 +24,7 @@ class BOTAN_DLL X509_Object AlgorithmIdentifier signature_algorithm() const; static MemoryVector make_signed(class PK_Signer*, + RandomNumberGenerator&, const AlgorithmIdentifier&, const MemoryRegion&); -- cgit v1.2.3