kdf1.cpp

来自「含有多种公开密钥算法、多种块加密、多种数据流加密、多种HASH函数、多种Chec」· C++ 代码 · 共 30 行

CPP
30
字号
/************************************************** KDF1 Source File                               ** (C) 1999-2002 The Botan Project                **************************************************/#include <botan/kdf1.h>#include <botan/lookup.h>namespace Botan {/************************************************** KDF1 Key Derivation Mechanism                  **************************************************/SymmetricKey KDF1::derive(const byte in[], u32bit length, u32bit) const   {   hash->update(in, length);   hash->update(P);   return SymmetricKey(hash->final());   }/************************************************** KDF1 Constructor                               **************************************************/KDF1::KDF1(const std::string& hash_name, const std::string& Pstr) : P(Pstr)   {   hash = get_hash(hash_name);   }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?