Switch to cmake + vcpkg, builds on linux, windows needs verification.
Code has been modified to be portable.
This commit is contained in:
parent
c1a5ac1aad
commit
49f6619a4e
34 changed files with 678 additions and 327 deletions
|
|
@ -9,7 +9,7 @@
|
|||
#include <botan/base64.h>
|
||||
#include <botan/mac.h>
|
||||
#include <botan/block_cipher.h>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <botan/exceptn.h>
|
||||
|
||||
using namespace Botan;
|
||||
|
||||
|
|
@ -33,7 +33,7 @@ public:
|
|||
* distinct key which is derived by hashing the wrapped key name with HMAC.
|
||||
*/
|
||||
const std::vector<uint8_t> wrapped_name =
|
||||
nist_key_wrap_padded(cast_char_ptr_to_uint8(name.data()),
|
||||
nist_key_wrap_padded(reinterpret_cast<const uint8_t*>(name.data()),
|
||||
name.size(),
|
||||
*m_cipher);
|
||||
|
||||
|
|
@ -47,7 +47,7 @@ public:
|
|||
secure_vector<uint8_t> get(const std::string& name, const std::string_view &wrapped_key) const
|
||||
{
|
||||
const std::vector<uint8_t> wrapped_name =
|
||||
nist_key_wrap_padded(cast_char_ptr_to_uint8(name.data()),
|
||||
nist_key_wrap_padded(reinterpret_cast<const uint8_t*>(name.data()),
|
||||
name.size(),
|
||||
*m_cipher);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue