|
RMW desert 5.0.0
|
Utilities for the security layer. More...
Go to the source code of this file.
Macros | |
| #define | MIN(a, b) |
Functions | |
| bool | decode_hex (const std::string &hex, std::vector< uint8_t > &out) |
| Decodes a hexadecimal string into a byte vector. | |
Utilities for the security layer.
This header declares utility functions shared by the security layer. It includes helpers for converting hexadecimal strings into byte vectors and small generic macros used while processing cryptographic input data. These utilities support configuration parsing and internal data handling.
| #define MIN | ( | a, | |
| b ) |
| bool decode_hex | ( | const std::string & | hex, |
| std::vector< uint8_t > & | out ) |
Decodes a hexadecimal string into a byte vector.
The input can optionally begin with the prefixes 0x or 0X. After an optional prefix, the string must contain an even number of valid hexadecimal characters.
| hex | String containing hexadecimal byte values. |
| out | Output vector receiving the decoded bytes. |
out is cleared.