diff options
author | lloyd <[email protected]> | 2008-10-13 03:55:47 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-10-13 03:55:47 +0000 |
commit | d32976c65c5cac0dafa83a132322a5a1152f03c5 (patch) | |
tree | 385243b0af3167ba116b989acc716d786b790b10 /src/pubkey | |
parent | 190b5acbd48dd5af4529020010b9efd2a13bc0f5 (diff) |
More Doxygen comments from InSiTo
Diffstat (limited to 'src/pubkey')
-rw-r--r-- | src/pubkey/pk_lookup/look_pk.h | 69 |
1 files changed, 53 insertions, 16 deletions
diff --git a/src/pubkey/pk_lookup/look_pk.h b/src/pubkey/pk_lookup/look_pk.h index 28a56f2b3..926416a41 100644 --- a/src/pubkey/pk_lookup/look_pk.h +++ b/src/pubkey/pk_lookup/look_pk.h @@ -11,28 +11,65 @@ namespace Botan { -/************************************************* -* Get an PK algorithm object * -*************************************************/ -BOTAN_DLL PK_Encryptor* get_pk_encryptor(const PK_Encrypting_Key&, - const std::string&); +/** +* Public key encryptor factory method. +* @param key the key that will work inside the encryptor +* @param pad determines the algorithm and encoding +* @return the public key encryptor object +*/ +BOTAN_DLL PK_Encryptor* get_pk_encryptor(const PK_Encrypting_Key& key, + const std::string& pad); -BOTAN_DLL PK_Decryptor* get_pk_decryptor(const PK_Decrypting_Key&, - const std::string&); +/** +* Public key decryptor factory method. +* @param key the key that will work inside the decryptor +* @param pad determines the algorithm and encoding +* @return the public key decryptor object +*/ +BOTAN_DLL PK_Decryptor* get_pk_decryptor(const PK_Decrypting_Key& key, + const std::string& pad); -BOTAN_DLL PK_Signer* get_pk_signer(const PK_Signing_Key&, - const std::string&, +/** +* Public key signer factory method. +* @param key the key that will work inside the signer +* @param pad determines the algorithm, encoding and hash algorithm +* @param sig_format the signature format to be used +* @return the public key signer object +*/ +BOTAN_DLL PK_Signer* get_pk_signer(const PK_Signing_Key& key, + const std::string& pad, Signature_Format = IEEE_1363); -BOTAN_DLL PK_Verifier* get_pk_verifier(const PK_Verifying_with_MR_Key&, - const std::string&, - Signature_Format = IEEE_1363); -BOTAN_DLL PK_Verifier* get_pk_verifier(const PK_Verifying_wo_MR_Key&, - const std::string&, +/** +* Public key verifier factory method. +* @param key the key that will work inside the verifier +* @param pad determines the algorithm, encoding and hash algorithm +* @param sig_format the signature format to be used +* @return the public key verifier object +*/ +BOTAN_DLL PK_Verifier* get_pk_verifier(const PK_Verifying_with_MR_Key& key, + const std::string& pad, Signature_Format = IEEE_1363); -BOTAN_DLL PK_Key_Agreement* get_pk_kas(const PK_Key_Agreement_Key&, - const std::string&); +/** +* Public key verifier factory method. +* @param key the key that will work inside the verifier +* @param pad determines the algorithm, encoding and hash algorithm +* @param sig_form the signature format to be used +* @return the public key verifier object +*/ +BOTAN_DLL PK_Verifier* get_pk_verifier(const PK_Verifying_wo_MR_Key& key, + const std::string& pad, + Signature_Format sig_form = IEEE_1363); + +/** +* Public key key agreement factory method. +* @param key the key that will work inside the key agreement +* @param pad determines the algorithm, encoding and hash algorithm +* @return the public key verifier object +*/ +BOTAN_DLL PK_Key_Agreement* get_pk_kas(const PK_Key_Agreement_Key& key, + const std::string& pad); } |