Wire Sysio
Wire Sysion 1.0.0
Loading...
Searching...
No Matches
test_utils.hpp
Go to the documentation of this file.
1
uint32_t
to_uint32
(
const
std::string&
s
) {
2
size_t
l
=
s
.size();
3
return
(
uint32_t
)std::stoul(
s
.c_str(), &
l
, 16);
4
}
5
6
bytes
to_bytes
(
const
std::string&
source
) {
7
BOOST_REQUIRE(!(
source
.length() % 2));
8
bytes output(
source
.length()/2);
9
fc::from_hex
(
source
, output.data(), output.size());
10
return
output;
11
}
fc::from_hex
uint8_t from_hex(char c)
Definition
hex.cpp:6
source
const CharType(& source)[N]
Definition
pointer.h:1204
uint32_t
unsigned int uint32_t
Definition
stdint.h:126
to_uint32
uint32_t to_uint32(const std::string &s)
Definition
test_utils.hpp:1
to_bytes
bytes to_bytes(const std::string &source)
Definition
test_utils.hpp:6
s
char * s
Definition
yubihsm_pkcs11.c:524
l
int l
Definition
yubihsm_pkcs11.c:525
libraries
fc
test
crypto
test_utils.hpp
Generated by
1.12.0