From f1a2c2636f83892bcb5dbd47618b9ce82a7d5e87 Mon Sep 17 00:00:00 2001 From: lloyd Date: Sun, 21 Mar 2010 22:37:04 +0000 Subject: Move class decls together --- src/pubkey/if_algo/if_algo.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/pubkey') diff --git a/src/pubkey/if_algo/if_algo.cpp b/src/pubkey/if_algo/if_algo.cpp index 82722d489..eb58874ee 100644 --- a/src/pubkey/if_algo/if_algo.cpp +++ b/src/pubkey/if_algo/if_algo.cpp @@ -39,6 +39,16 @@ IF_Scheme_PublicKey::IF_Scheme_PublicKey(const AlgorithmIdentifier&, .end_cons(); } +/* +* Check IF Scheme Public Parameters +*/ +bool IF_Scheme_PublicKey::check_key(RandomNumberGenerator&, bool) const + { + if(n < 35 || n.is_even() || e < 2) + return false; + return true; + } + MemoryVector IF_Scheme_PrivateKey::pkcs8_private_key() const { return DER_Encoder() @@ -105,16 +115,6 @@ IF_Scheme_PrivateKey::IF_Scheme_PrivateKey(RandomNumberGenerator& rng, load_check(rng); } -/* -* Check IF Scheme Public Parameters -*/ -bool IF_Scheme_PublicKey::check_key(RandomNumberGenerator&, bool) const - { - if(n < 35 || n.is_even() || e < 2) - return false; - return true; - } - /* * Check IF Scheme Private Parameters */ -- cgit v1.2.3