Browse Source

crypto: draft header for symmetric encryption

master
mogria 1 month ago
parent
commit
8f4115c950
1 changed files with 35 additions and 0 deletions
  1. +35
    -0
      src/crypto.hh

+ 35
- 0
src/crypto.hh View File

@ -0,0 +1,35 @@
// Copyright 2022, Moritz Küttel
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef LIBPOX_CRYPTO_HH
#define LIBPOX_CRYPTO_HH
#include "crypto_dep.hh"
#include <boost/asio/buffer.hpp>
#include <string>
namespace libpox {
namespace Crypto {
using CombinedKey = ::libpox::CryptoDep::CombinedKey;
using Nonce = ::libpox::CryptoDep::Nonce;
using buffer = ::boost::asio::const_buffer;
buffer symmetric_encrypt(
const buffer &buffer_to_encrypt,
const CombinedKey &key,
const Nonce &nonce);
buffer symmetric_decrypt(
const buffer &buffer_to_decrypt,
const CombinedKey &key,
const Nonce &nonce);
} // namespace Crypto
} // namespace libpox
#endif // LIBPOX_CRYPTO_HH

Loading…
Cancel
Save