20#include <openssl/bn.h>
21#include <openssl/evp.h>
34#define YH_INTERNAL __attribute__((visibility("hidden")))
42 uint8_t *bytes,
size_t *bytes_len,
48 const EVP_MD **md_type,
int *digestinfo_len);
bool YH_INTERNAL write_ed25519_key(uint8_t *buf, size_t buf_len, FILE *fp, bool b64_encode)
bool YH_INTERNAL hex_decode(const char *in, uint8_t *out, size_t *len)
bool YH_INTERNAL write_file(const uint8_t *buf, size_t buf_len, FILE *fp, format_t format)
bool YH_INTERNAL algo2type(yh_algorithm algorithm, yh_object_type *type)
void YH_INTERNAL format_digest(uint8_t *digest, char *str, uint16_t len)
bool YH_INTERNAL base64_decode(const char *in, uint8_t *out, size_t *len)
void YH_INTERNAL parse_NID(uint8_t *data, uint16_t data_len, const EVP_MD **md_type, int *digestinfo_len)
bool YH_INTERNAL read_ed25519_key(uint8_t *in, size_t in_len, uint8_t *out, size_t *out_len)
bool YH_INTERNAL set_component(uint8_t *in_ptr, const BIGNUM *bn, int32_t element_len)
int YH_INTERNAL algo2nid(yh_algorithm algo)
bool YH_INTERNAL read_file(FILE *fp, uint8_t *buf, size_t *buf_len)
bool YH_INTERNAL split_hmac_key(yh_algorithm algorithm, uint8_t *in, size_t in_len, uint8_t *out, size_t *out_len)
bool YH_INTERNAL read_private_key(uint8_t *buf, size_t len, yh_algorithm *algo, uint8_t *bytes, size_t *bytes_len, bool internal_repr)