Latest update.
This commit is contained in:
@@ -3,4 +3,4 @@ LIBS=../../libcrypto
|
||||
$COMMON=cmac.c
|
||||
|
||||
SOURCE[../../libcrypto]=$COMMON cm_ameth.c
|
||||
SOURCE[../../providers/fips]=$COMMON
|
||||
SOURCE[../../providers/libfips.a]=$COMMON
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <stdio.h>
|
||||
#include "internal/cryptlib.h"
|
||||
#include <openssl/evp.h>
|
||||
#include "internal/asn1_int.h"
|
||||
#include "crypto/asn1.h"
|
||||
|
||||
/*
|
||||
* CMAC "ASN1" method. This is just here to indicate the maximum CMAC output
|
||||
|
||||
+2
-1
@@ -199,7 +199,8 @@ int CMAC_Final(CMAC_CTX *ctx, unsigned char *out, size_t *poutlen)
|
||||
return 0;
|
||||
if ((bl = EVP_CIPHER_CTX_block_size(ctx->cctx)) < 0)
|
||||
return 0;
|
||||
*poutlen = (size_t)bl;
|
||||
if (poutlen != NULL)
|
||||
*poutlen = (size_t)bl;
|
||||
if (!out)
|
||||
return 1;
|
||||
lb = ctx->nlast_block;
|
||||
|
||||
Reference in New Issue
Block a user