//256
//avant ecb
if(ctr) {
- if(1 != CMAC_Init(ctx, key, 16, EVP_chacha20_poly1305(), NULL))
+ if(1 != CMAC_Init(ctx, key, 32, EVP_chacha20_poly1305(), NULL))
handleErrors();
}
else
- if(1 != CMAC_Init(ctx, key, 16, EVP_chacha20_poly1305(), NULL))
+ if(1 != CMAC_Init(ctx, key, 32, EVP_chacha20_poly1305(), NULL))
handleErrors();
size_t mactlen;
unsigned char mact[16] = {0};