commit | eda800f478a914ecf27442da2e8ef764992ef995 | [log] [tgz] |
---|---|---|
author | Azim Khan <Azim.Khan@arm.com> | Wed Feb 21 10:39:44 2018 +0000 |
committer | Azim Khan <Azim.Khan@arm.com> | Thu Feb 22 10:00:45 2018 +0000 |
tree | abc44715fe6d5a6b3f8de94f1514cc03800279c0 | |
parent | 7a3399019e660b54d4fdb70dc2097c95fcd3746e [diff] |
Specify signature buffer length properly
diff --git a/programs/x509/cert_write.c b/programs/x509/cert_write.c index 0266cda..075ceb2 100644 --- a/programs/x509/cert_write.c +++ b/programs/x509/cert_write.c
@@ -554,7 +554,7 @@ offset += hash_len; if( serial_xfer( remote_ctx->serial_port, func_buffer, offset, sig, - 100/* FIXME */, sig_len ) != 0 ) + MBEDTLS_ECDSA_MAX_SIG_LEN(256), sig_len ) != 0 ) { mbedtls_printf( " failed\n ! Serial error in signing\n\n" ); return( -1 );