Fix obsolete oxenmq/hex.h usage

pull/1996/head
Jason Rhinelander 2 years ago
parent 6ee7306217
commit 9a2cd19eb8
No known key found for this signature in database
GPG Key ID: C4992CE7A88D4262

@ -2,7 +2,7 @@
#include <net/ip.hpp>
#include <net/ip_range.hpp>
#include <net/net.hpp>
#include <oxenmq/hex.h>
#include <oxenc/hex.h>
#include <catch2/catch.hpp>
@ -125,7 +125,7 @@ TEST_CASE("uint128_t")
SECTION("layout")
{
llarp::uint128_t i{0x0011223f44556677ULL, 0x8899aabbc3ddeeffULL};
REQUIRE(oxenmq::to_hex(std::string_view{reinterpret_cast<const char*>(&i), sizeof(i)}) ==
REQUIRE(oxenc::to_hex(std::string_view{reinterpret_cast<const char*>(&i), sizeof(i)}) ==
#ifdef __BIG_ENDIAN__
"0011223f445566778899aabbc3ddeeff"
#else

@ -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{};

Loading…
Cancel
Save