hex.h 540 B

1234567891011121314151617181920212223242526272829303132
  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. #ifndef GMSSL_HEX_H
  10. #define GMSSL_HEX_H
  11. #include <stdio.h>
  12. #include <stdlib.h>
  13. #include <string.h>
  14. #include <stdint.h>
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. int hex_to_bytes(const char *in, size_t inlen, uint8_t *out, size_t *outlen);
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #endif