add stdio include

pull/301/head
JacobBarthelmeh 2022-03-02 15:38:16 -08:00
parent 8b8e61d35d
commit da15ec48e4
5 changed files with 12 additions and 1 deletions

View File

@ -24,6 +24,8 @@
#include <wolfssl/wolfcrypt/logging.h>
#include <wolfssl/wolfcrypt/port/caam/wolfcaam.h>
#include <stdio.h>
#define MAX_UPDATES 100
static unsigned int createAesKey()

View File

@ -24,6 +24,8 @@
#include <wolfssl/wolfcrypt/logging.h>
#include <wolfssl/wolfcrypt/port/caam/wolfcaam.h>
#include <stdio.h>
#define MAX_UPDATES 100
static unsigned int createAesKey()

View File

@ -25,6 +25,8 @@
#include <wolfssl/wolfcrypt/port/caam/wolfcaam.h>
#include <wolfssl/wolfcrypt/port/caam/wolfcaam_cmac.h>
#include <stdio.h>
#define MAX_UPDATES 100
static int doCmac(unsigned int keyId, int create, const byte* in, int inSz,
@ -75,7 +77,7 @@ int main(int argc, char** argv)
byte out[AES_BLOCK_SIZE];
word32 outSz = AES_BLOCK_SIZE, i;
inSz = (int)XSTRLEN(in);
inSz = (int)XSTRLEN((char*)in);
outSz = (word32)sizeof(out);
if (argc == 4) {
if (XSTRNCMP(argv[1], "1", 1) == 0) {

View File

@ -24,6 +24,8 @@
#include <wolfssl/wolfcrypt/logging.h>
#include <wolfssl/wolfcrypt/port/caam/wolfcaam.h>
#include <stdio.h>
int main(int argc, char** argv)
{
byte kek[32];
@ -45,3 +47,4 @@ int main(int argc, char** argv)
wolfCrypt_Cleanup();
return 0;
}

View File

@ -24,6 +24,8 @@
#include <wolfssl/wolfcrypt/logging.h>
#include <wolfssl/wolfcrypt/port/caam/wolfcaam.h>
#include <stdio.h>
#define MAX_UPDATES 100
static unsigned int ImportAesKey(const byte* key, int keySz)