New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apps/speed: various cleanups and improvements #10078
Conversation
Old staging branch on my sandbox. |
abba67b
to
74f5849
Compare
apps/speed.c
Outdated
D_EVP, D_SHA256, D_SHA512, D_WHIRLPOOL, | ||
D_IGE_128_AES, D_IGE_192_AES, D_IGE_256_AES, | ||
D_GHASH, D_RAND, D_EVP_HMAC, D_EVP_CMAC | ||
}; | ||
/* name of algorithms to test */ | ||
static const char *names[] = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the use of enums above, I'm more concerned about the disconnect between then and the string representations of the algs. This one was already there but some of the later ones remove the name, id pairings in favour of just having the name which means both lists need to be manually kept synchronised.
9d0553c
to
25d0665
Compare
Ping @openssl : it is ready for review. 200 lines of code less. |
25d0665
to
f9b1991
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work.
53682cd
to
63d8fb1
Compare
{ test3072, sizeof(test3072), 3072 }, | ||
{ test4096, sizeof(test4096), 4092 }, | ||
{ test7680, sizeof(test7680), 7680 }, | ||
{ test15360, sizeof(test15360), 15360 } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! 😃
Travis failure relevant:
|
Other than that, I like what I see now |
115d90f
to
ef0667a
Compare
…simplifies some pieces of code. Improve internal assertions Tag a few #endif with OPENSSL_NO_EC to mark its ending.
ef0667a
to
5964974
Compare
@t8m, if your approval still holds, will you change the labels? |
previouly the exit(1) call was aborting the whole execution. Improve error message. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from #10078)
…fore being used. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from #10078)
replace |save_count| by the right c[D_EVP(_xxx)] variable. this may shared a value between various algorithm. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from #10078)
Remove some duplicate key data declarations. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from #10078)
Optimize algorithm selection code. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from #10078)
attach the new objects sooner, so error handling is simplified. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from #10078)
remove 'test' prefix from variable names. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from #10078)
it simplifies some pieces of code. Improve internal assertions Tag a few #endif with OPENSSL_NO_EC to mark its ending. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from #10078)
default provider
is missing.Checklist