- Updated examples to use appropriate sizes for larger RSA keys (up to 16k)

This commit is contained in:
Paul Bakker 2012-10-03 20:35:44 +00:00
parent 3ad34d4110
commit 1d56958963
7 changed files with 25 additions and 33 deletions

View file

@ -67,7 +67,7 @@ int main( int argc, char *argv[] )
entropy_context entropy;
ctr_drbg_context ctr_drbg;
unsigned char hash[20];
unsigned char buf[512];
unsigned char buf[POLARSSL_MPI_MAX_SIZE];
char filename[512];
char *pers = "rsa_sign_pss";