aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-06-27 15:37:29 +0000
committerlloyd <[email protected]>2008-06-27 15:37:29 +0000
commit9d77dd59ab4a7d122a20b0d89ae081a177f38287 (patch)
tree9a6c0bbda944a7494932cef883d348d1f16f804e /include
parent59865d69871bdd936cf77a7fde38aa7657d04c40 (diff)
Reorganize the EMSA classes, and remove the last references to prng_reference
in the library ccode.
Diffstat (limited to 'include')
-rw-r--r--include/emsa.h12
-rw-r--r--include/pk_util.h2
2 files changed, 12 insertions, 2 deletions
diff --git a/include/emsa.h b/include/emsa.h
index 21992ed94..44f9210d1 100644
--- a/include/emsa.h
+++ b/include/emsa.h
@@ -46,6 +46,9 @@ class BOTAN_DLL EMSA2 : public EMSA
SecureVector<byte> encoding_of(const MemoryRegion<byte>&, u32bit,
RandomNumberGenerator& rng);
+ bool verify(const MemoryRegion<byte>&, const MemoryRegion<byte>&,
+ u32bit) throw();
+
SecureVector<byte> empty_hash;
HashFunction* hash;
byte hash_id;
@@ -67,6 +70,9 @@ class BOTAN_DLL EMSA3 : public EMSA
SecureVector<byte> encoding_of(const MemoryRegion<byte>&, u32bit,
RandomNumberGenerator& rng);
+ bool verify(const MemoryRegion<byte>&, const MemoryRegion<byte>&,
+ u32bit) throw();
+
HashFunction* hash;
SecureVector<byte> hash_id;
};
@@ -101,9 +107,13 @@ class BOTAN_DLL EMSA_Raw : public EMSA
{
private:
void update(const byte[], u32bit);
+ SecureVector<byte> raw_data();
+
SecureVector<byte> encoding_of(const MemoryRegion<byte>&, u32bit,
RandomNumberGenerator&);
- SecureVector<byte> raw_data();
+ bool verify(const MemoryRegion<byte>&, const MemoryRegion<byte>&,
+ u32bit) throw();
+
SecureVector<byte> message;
};
diff --git a/include/pk_util.h b/include/pk_util.h
index af5a052b1..aa7a71234 100644
--- a/include/pk_util.h
+++ b/include/pk_util.h
@@ -49,7 +49,7 @@ class BOTAN_DLL EMSA
RandomNumberGenerator& rng) = 0;
virtual bool verify(const MemoryRegion<byte>&, const MemoryRegion<byte>&,
- u32bit) throw();
+ u32bit) throw() = 0;
virtual ~EMSA() {}
};