aboutsummaryrefslogtreecommitdiffstats
path: root/checks/pk.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-06-07 16:56:21 +0000
committerlloyd <[email protected]>2008-06-07 16:56:21 +0000
commit0875f4f0d1f16814b784a4ac08f4d631890b3d6e (patch)
tree16d04004d253f4d6408e9221dd4bc39d47841067 /checks/pk.cpp
parentb0c6cb743534d68ec1af45dc5104da4bf152173d (diff)
Add a full set of tests for the ANSI X9.31 PRNG, using data taken
from the NIST CAVS dataset, taken on June 7 2008 from http://csrc.nist.gov/groups/STM/cavp/standards.html AES-128, AES-192, AES-256, and 2 and 3-key TripleDES variants are all tested.
Diffstat (limited to 'checks/pk.cpp')
-rw-r--r--checks/pk.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/checks/pk.cpp b/checks/pk.cpp
index fdb22624d..cc3d82a5c 100644
--- a/checks/pk.cpp
+++ b/checks/pk.cpp
@@ -35,36 +35,6 @@ static BigInt to_bigint(const std::string& h)
#define DEBUG 0
-class Fixed_Output_RNG : public RandomNumberGenerator
- {
- public:
- bool is_seeded() const { return true; }
-
- byte random()
- {
- if(position < output.size())
- return output[position++];
-
- throw Botan::Invalid_State("Fixed_Output_RNG: out of bits");
- }
- void randomize(byte out[], u32bit len) throw()
- {
- for(u32bit j = 0; j != len; j++)
- out[j] = random();
- }
- std::string name() const { return "Fixed_Output_RNG"; }
- void clear() throw() {}
- void add_randomness(const byte[], u32bit) throw() {}
- Fixed_Output_RNG(const SecureVector<byte>& x)
- {
- output = x;
- position = 0;
- }
- private:
- SecureVector<byte> output;
- u32bit position;
- };
-
void do_pk_keygen_tests();
extern void do_x509_tests();