Files
MicrOBU/obu-firmware/external/vanetza-idf/vanetza/security/tests/serialization.cpp
T

18 lines
328 B
C++
Raw Normal View History

#include <vanetza/security/tests/serialization.hpp>
#include <boost/algorithm/hex.hpp>
namespace vanetza
{
namespace security
{
ByteBuffer buffer_from_hexstring(const char* string)
{
ByteBuffer buf;
boost::algorithm::unhex(string, back_inserter(buf));
return buf;
}
} // namespace security
} // namespace vanetza