look_pk.cpp
来自「含有多种公开密钥算法、多种块加密、多种数据流加密、多种HASH函数、多种Chec」· C++ 代码 · 共 66 行
CPP
66 行
/************************************************** 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 + =
减小字号Ctrl + -
显示快捷键?