mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-13 03:46:26 +08:00
Bug fix
Thanks to github.com/Jkinglyf
This commit is contained in:
@@ -72,8 +72,30 @@ int FFX_decrypt(FFX_CTX *ctx, const char *in, size_t inlen,
|
||||
const unsigned char *tweak, size_t tweaklen, char *out);
|
||||
int FFX_compute_luhn(const char *in, size_t inlen);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
/* 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.
|
||||
*/
|
||||
void ERR_load_FFX_strings(void);
|
||||
|
||||
/* Error codes for the FFX functions. */
|
||||
|
||||
/* Function codes. */
|
||||
# define FFX_F_FFX_COMPUTE_LUHN 100
|
||||
# define FFX_F_FFX_DECRYPT 101
|
||||
# define FFX_F_FFX_ENCRYPT 102
|
||||
# define FFX_F_FFX_INIT 103
|
||||
|
||||
/* Reason codes. */
|
||||
# define FFX_R_INIT_KEY_FAILED 100
|
||||
# define FFX_R_INVALID_DIGITS_FORMAT 101
|
||||
# define FFX_R_INVALID_DIGITS_LENGTH 102
|
||||
# define FFX_R_INVALID_DIGIT_STRING 103
|
||||
# define FFX_R_INVALID_TWEAK_LENGTH 104
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user