mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-06-01 15:34:17 +08:00
SKF Wrapper
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
* 2. the message length should be multiple of block size
|
||||
* 3. the implementation do not add padding
|
||||
*/
|
||||
|
||||
#ifndef HEADER_CBCMAC_H
|
||||
#define HEADER_CBCMAC_H
|
||||
|
||||
@@ -77,8 +78,25 @@ int CBCMAC_Update(CBCMAC_CTX *ctx, const void *data, size_t datalen);
|
||||
int CBCMAC_Final(CBCMAC_CTX *ctx, unsigned char *out, size_t *outlen);
|
||||
int CBCMAC_resume(CBCMAC_CTX *ctx);
|
||||
|
||||
/* 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_CBCMAC_strings(void);
|
||||
|
||||
/* Error codes for the CBCMAC functions. */
|
||||
|
||||
/* Function codes. */
|
||||
# define CBCMAC_F_CBCMAC_FINAL 100
|
||||
# define CBCMAC_F_CBCMAC_INIT 101
|
||||
# define CBCMAC_F_CBCMAC_UPDATE 102
|
||||
|
||||
/* Reason codes. */
|
||||
# define CBCMAC_R_CIPHER_CTX_INIT_FAILED 100
|
||||
# define CBCMAC_R_CIPHER_NOT_ECB_MODE 101
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user