mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-11-14 08:35:04 +08:00
update base58
This commit is contained in:
@@ -53,7 +53,31 @@
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
bool base58_decode(const char *b58, size_t b58sz, void *bin, size_t *binszp);
|
||||
bool base58_encode(const void *data, size_t binsz, char *b58, size_t *b58sz);
|
||||
|
||||
/* BEGIN ERROR CODES */
|
||||
/*
|
||||
* The following lines are auto generated by the script mkerr.pl. Any changes
|
||||
* made after this point may be overwritten when the script is next run.
|
||||
*/
|
||||
|
||||
int ERR_load_BASE58_strings(void);
|
||||
|
||||
/* Error codes for the BASE58 functions. */
|
||||
|
||||
/* Function codes. */
|
||||
# define BASE58_F_BASE58_DECODE 100
|
||||
|
||||
/* Reason codes. */
|
||||
# define BASE58_R_HIGHBIT_SET_ON_INVALID_DIGIT 100
|
||||
|
||||
# ifdef __cplusplus
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user