mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-08 06:03:47 +08:00
sm2 test vector
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
|
||||
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
@@ -54,17 +50,21 @@ int CBCMAC_CTX_copy(CBCMAC_CTX *to, const CBCMAC_CTX *from)
|
||||
int CBCMAC_Init(CBCMAC_CTX *ctx, const void *key, size_t keylen,
|
||||
const EVP_CIPHER *cipher, ENGINE *impl)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int CBCMAC_Update(CBCMAC_CTX *ctx, const void *data, size_t datalen)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int CBCMAC_Final(CBCMAC_CTX *ctx, unsigned char *out, size_t *outlen)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int CBCMAC_resume(CBCMAC_CTX *ctx)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,11 @@
|
||||
* ====================================================================
|
||||
*
|
||||
*/
|
||||
|
||||
/* Note:
|
||||
* 1. CBC-MAC should be only used for fixed-length message
|
||||
* 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user