mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2024-12-27 12:16:07 +00:00
programs_rsa_rsa_sign: Updated program to use mbedtls_rsa_get_len()
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
This commit is contained in:
parent
ee757d35df
commit
992f0b8427
@ -131,7 +131,7 @@ int main(int argc, char *argv[])
|
||||
goto exit;
|
||||
}
|
||||
|
||||
for (i = 0; i < rsa.MBEDTLS_PRIVATE(len); i++) {
|
||||
for (i = 0; i < mbedtls_rsa_get_len(&rsa); i++) {
|
||||
mbedtls_fprintf(f, "%02X%s", buf[i],
|
||||
(i + 1) % 16 == 0 ? "\r\n" : " ");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user