1 /* 2 * Copyright 2014-2022 The GmSSL Project. All Rights Reserved. 3 * 4 * Licensed under the Apache License, Version 2.0 (the License); you may 5 * not use this file except in compliance with the License. 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 */ 9 10 11 12 #ifndef GMSSL_HEX_H 13 #define GMSSL_HEX_H 14 15 16 #include <stdio.h> 17 #include <stdlib.h> 18 #include <string.h> 19 #include <stdint.h> 20 21 22 #ifdef __cplusplus 23 extern "C" { 24 #endif 25 26 int hex_to_bytes(const char *in, size_t inlen, uint8_t *out, size_t *outlen); 27 28 29 #ifdef __cplusplus 30 } 31 #endif 32 #endif 33