Merge pull request #8511 from mschulz-at-hilscher/feature/rsa3072-benchmark

Add benchmark for RSA 3072
This commit is contained in:
Dave Rodgman 2024-01-02 16:35:14 +00:00 committed by GitHub
commit 593e9cb600
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1011,7 +1011,7 @@ int main(int argc, char *argv[])
int keysize; int keysize;
mbedtls_rsa_context rsa; mbedtls_rsa_context rsa;
for (keysize = 2048; keysize <= 4096; keysize *= 2) { for (keysize = 2048; keysize <= 4096; keysize += 1024) {
mbedtls_snprintf(title, sizeof(title), "RSA-%d", keysize); mbedtls_snprintf(title, sizeof(title), "RSA-%d", keysize);
mbedtls_rsa_init(&rsa); mbedtls_rsa_init(&rsa);