libflint/include/lfcrypto.h

14 lines
414 B
C
Raw Normal View History

2024-03-28 22:19:05 +00:00
#ifndef LIBFLINT_CRYPTO_H
#define LIBFLINT_CRYPTO_H
#include <stddef.h>
2024-03-29 02:09:39 +00:00
const char *b64_encode(const unsigned char *s, size_t sz);
2024-03-28 22:19:05 +00:00
unsigned char *b64_decode(const char *s, size_t sz, size_t *decode_sz);
2024-03-29 14:18:01 +00:00
2024-03-29 02:09:39 +00:00
const char *hex_encode(const unsigned char *hex, size_t sz);
2024-03-29 01:30:27 +00:00
unsigned char *hex_decode(const char *orig, size_t *sz);
2024-03-29 14:18:01 +00:00
const char *hex_to_str(const unsigned char *hex, size_t sz);
2024-03-28 22:19:05 +00:00
#endif // LIBFLINT_CRYPTO_H