|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
#include "catch2/catch.hpp"
|
|
|
|
|
#include <crypto/crypto_libsodium.hpp>
|
|
|
|
|
#include <service/name.hpp>
|
|
|
|
|
#include <oxenmq/hex.h>
|
|
|
|
|
#include <oxenc/hex.h>
|
|
|
|
|
|
|
|
|
|
using namespace std::literals;
|
|
|
|
|
|
|
|
|
@ -9,7 +9,7 @@ TEST_CASE("Test LNS name decrypt", "[lns]")
|
|
|
|
|
{
|
|
|
|
|
llarp::sodium::CryptoLibSodium crypto;
|
|
|
|
|
constexpr auto recordhex = "0ba76cbfdb6dc8f950da57ae781912f31c8ad0c55dbf86b88cb0391f563261a9656571a817be4092969f8a78ee0fcee260424acb4a1f4bbdd27348b71de006b6152dd04ed11bf3c4"sv;
|
|
|
|
|
const auto recordbin = oxenmq::from_hex(recordhex);
|
|
|
|
|
const auto recordbin = oxenc::from_hex(recordhex);
|
|
|
|
|
CHECK(not recordbin.empty());
|
|
|
|
|
llarp::SymmNonce n{};
|
|
|
|
|
std::vector<byte_t> ciphertext{};
|
|
|
|
|