diff options
author | lloyd <[email protected]> | 2006-09-06 19:48:09 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-09-06 19:48:09 +0000 |
commit | e00227828d80f9c9a17ef236586211faa01e4193 (patch) | |
tree | 2573533839150184038b18d7789eaef1ee5dd904 /src/pk_keys.cpp | |
parent | 7f176fd2259fcb395ca03751f19790eac15bd9ce (diff) |
Split PK_Key into Public_Key and Private_Key; these new classes merge in
the interfaces previously included in X509_PublicKey and PKCS8_PrivateKey.
Diffstat (limited to 'src/pk_keys.cpp')
-rw-r--r-- | src/pk_keys.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pk_keys.cpp b/src/pk_keys.cpp index 4a175e17c..478ee5d37 100644 --- a/src/pk_keys.cpp +++ b/src/pk_keys.cpp @@ -27,7 +27,7 @@ bool key_check_level(const std::string& type) /************************************************* * Default OID access * *************************************************/ -OID PK_Key::get_oid() const +OID Public_Key::get_oid() const { try { return OIDS::lookup(algo_name()); @@ -41,7 +41,7 @@ OID PK_Key::get_oid() const /************************************************* * Run checks on a loaded public key * *************************************************/ -void PK_Key::check_loaded_public() const +void Public_Key::load_check() const { if(!check_key(key_check_level("public"))) throw Invalid_Argument(algo_name() + ": Invalid public key"); @@ -50,7 +50,7 @@ void PK_Key::check_loaded_public() const /************************************************* * Run checks on a loaded private key * *************************************************/ -void PK_Key::check_loaded_private() const +void Private_Key::load_check() const { if(!check_key(key_check_level("private"))) throw Invalid_Argument(algo_name() + ": Invalid private key"); @@ -59,7 +59,7 @@ void PK_Key::check_loaded_private() const /************************************************* * Run checks on a generated private key * *************************************************/ -void PK_Key::check_generated_private() const +void Private_Key::gen_check() const { if(!check_key(key_check_level("private_gen"))) throw Self_Test_Failure(algo_name() + " private key generation failed"); |