sm2 test vector

This commit is contained in:
Zhi Guan
2016-05-02 17:56:14 +02:00
parent d8072491bc
commit addcac4896
34 changed files with 1245 additions and 3023 deletions

View File

@@ -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;
}

View File

@@ -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