feat: add gmssl headers

This commit is contained in:
2023-10-12 19:49:31 +08:00
parent 5029db5fac
commit 7eea3cc000
72 changed files with 7597 additions and 0 deletions

32
include/gmssl/hex.h Normal file
View File

@@ -0,0 +1,32 @@
/*
* Copyright 2014-2022 The GmSSL Project. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*/
#ifndef GMSSL_HEX_H
#define GMSSL_HEX_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
int hex_to_bytes(const char *in, size_t inlen, uint8_t *out, size_t *outlen);
#ifdef __cplusplus
}
#endif
#endif