Topic: Maximum file size that can be signed PKCS7 using wolfTPM
Hi,
what is the maximum file size that can be signed using wolfssl, wolfTPM and key in TPM2.0 device (SLB96670)?
From what I found the example in "wolfTPM/examples/pkcs/pkcs.c" is using "WOLFTPM2_BUFFER" for output https://github.com/wolfSSL/wolfTPM/blob … kcs7.c#L57 which is maximum 2048 as per https://github.com/wolfSSL/wolfTPM/blob … wrap.h#L52
#ifndef WOLFTPM2_MAX_BUFFER
#define WOLFTPM2_MAX_BUFFER 2048
#endif
typedef struct WOLFTPM2_BUFFER {
int size;
byte buffer[WOLFTPM2_MAX_BUFFER];
} WOLFTPM2_BUFFER;
Thanks a lot,
Paul