diff options
author | lloyd <[email protected]> | 2010-03-21 22:37:04 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-21 22:37:04 +0000 |
commit | f1a2c2636f83892bcb5dbd47618b9ce82a7d5e87 (patch) | |
tree | 374c892ddc031e2e8e1899c1491fc84c686c1ffa /src/pubkey | |
parent | 7aa5107be73de3b214301dbf647b1a0c41ec65eb (diff) |
Move class decls together
Diffstat (limited to 'src/pubkey')
-rw-r--r-- | src/pubkey/if_algo/if_algo.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
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<byte> IF_Scheme_PrivateKey::pkcs8_private_key() const { return DER_Encoder() @@ -106,16 +116,6 @@ IF_Scheme_PrivateKey::IF_Scheme_PrivateKey(RandomNumberGenerator& 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 */ bool IF_Scheme_PrivateKey::check_key(RandomNumberGenerator& rng, |