diff options
author | lloyd <[email protected]> | 2008-06-10 19:10:34 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-06-10 19:10:34 +0000 |
commit | b36db2d74992f2ea80329378c32a6321d6a60b26 (patch) | |
tree | 426add866dd75f8b3e73e0bde0ae5d936c305662 /include | |
parent | 54fecdc60438d15f970055bb691e18c6469e1785 (diff) |
Change PK_Signer::signature to take a RandomNumberGenerator reference
instead of always using the global PRNG.
Diffstat (limited to 'include')
-rw-r--r-- | include/pubkey.h | 8 | ||||
-rw-r--r-- | include/x509_ca.h | 3 | ||||
-rw-r--r-- | include/x509_obj.h | 1 |
3 files changed, 8 insertions, 4 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); 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<CRL_Entry>&, u32bit = 0) const; - static X509_Certificate make_cert(PK_Signer*, const AlgorithmIdentifier&, + static X509_Certificate make_cert(PK_Signer*, + const AlgorithmIdentifier&, const MemoryRegion<byte>&, 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<byte> make_signed(class PK_Signer*, + RandomNumberGenerator&, const AlgorithmIdentifier&, const MemoryRegion<byte>&); |