📄 look_pk.cpp
字号:
/************************************************** PK Algorithm Lookup Source File ** (C) 1999-2002 The Botan Project **************************************************/#include <botan/look_pk.h>#include <botan/lookup.h>namespace Botan {/************************************************** Get a PK_Encryptor object **************************************************/PK_Encryptor* get_pk_encryptor(const PK_Encrypting_Key& key, const std::string& eme) { return new PK_Encryptor(key, eme); }/************************************************** Get a PK_Decryptor object **************************************************/PK_Decryptor* get_pk_decryptor(const PK_Decrypting_Key& key, const std::string& eme) { return new PK_Decryptor(key, eme); }/************************************************** Get a PK_Signer object **************************************************/PK_Signer* get_pk_signer(const PK_Signing_Key& key, const std::string& encoding) { return new PK_Signer(key, encoding); }/************************************************** Get a PK_Verifier object **************************************************/PK_Verifier* get_pk_verifier(const PK_Verifying_with_MR_Key& key, const std::string& encoding) { return new PK_Verifier_with_MR(key, encoding); }/************************************************** Get a PK_Verifier object **************************************************/PK_Verifier* get_pk_verifier(const PK_Verifying_wo_MR_Key& key, const std::string& encoding) { return new PK_Verifier_wo_MR(key, encoding); }/************************************************** Get a PK_Key_Agreement_Scheme object **************************************************/PK_Key_Agreement_Scheme* get_pk_kas(const PK_Key_Agreement_Key& key, const std::string& kdf) { return new PK_Key_Agreement_Scheme(key, kdf); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -