RMW desert
5.0.0
Loading...
Searching...
No Matches
src
desert_classes
security
sec_utils.h
Go to the documentation of this file.
1
/****************************************************************************
2
* Copyright (C) 2026 Davide Costa *
3
* *
4
* This file is part of RMW desert. *
5
* *
6
* RMW desert is free software: you can redistribute it and/or modify it *
7
* under the terms of the GNU General Public License as published by the *
8
* Free Software Foundation, either version 3 of the License, or any *
9
* later version. *
10
* *
11
* RMW desert is distributed in the hope that it will be useful, *
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14
* GNU General Public License for more details. *
15
* *
16
* You should have received a copy of the GNU General Public License *
17
* along with RMW desert. If not, see <http://www.gnu.org/licenses/>. *
18
****************************************************************************/
19
32
33
#ifndef SEC_UTILS_H
34
#define SEC_UTILS_H
35
37
38
#include <string>
39
#include <vector>
40
#include <cstdint>
41
43
44
#define MIN(a, b) ((a) > (b) ? (b) : (a))
45
61
bool
decode_hex
(
const
std::string& hex, std::vector<uint8_t>& out);
62
63
#endif
decode_hex
bool decode_hex(const std::string &hex, std::vector< uint8_t > &out)
Decodes a hexadecimal string into a byte vector.
Definition
sec_utils.cpp:11
Generated by
1.15.0