Skip to content

Refactor public key related performance test code#4367

Merged
randombit merged 7 commits intomasterfrom
jack/refactor-speed-pk
Oct 11, 2024
Merged

Refactor public key related performance test code#4367
randombit merged 7 commits intomasterfrom
jack/refactor-speed-pk

Conversation

@randombit
Copy link
Copy Markdown
Owner

No description provided.

@randombit randombit added this to the Botan 3.6.0 milestone Oct 10, 2024
@randombit randombit force-pushed the jack/refactor-speed-pk branch from 8b6f333 to fc2d731 Compare October 10, 2024 20:26
Also remove the pcurves ECDH/ECDSA benchmarks which are not relevant
anymore, now that EC_Group/EC_Scalar/EC_AffinePoint use pcurves internally.
This is apparently necessary for MSVC to export it
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 91.129% (+0.1%) from 90.994%
when pulling fc2d731 on jack/refactor-speed-pk
into c2a759b on master.

@randombit randombit merged commit 2cc573c into master Oct 11, 2024
@randombit randombit deleted the jack/refactor-speed-pk branch October 11, 2024 23:12
Comment on lines +94 to +99
"Kyber-512-r3",
"Kyber-512-90s-r3",
"Kyber-768-r3",
"Kyber-768-90s-r3",
"Kyber-1024-r3",
"Kyber-1024-90s-r3",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Admittedly, a bit late to the party. Nevertheless: When building with --disable-modules=kyber_90s, this will error with:

Kyber-Kyber-512-r3 65559 KEM encrypt/sec; 0.02 ms/op 38070 cycles/op (26176 ops in 399 ms)
Kyber-Kyber-512-r3 52351 KEM decrypt/sec; 0.02 ms/op 47679 cycles/op (26176 ops in 500 ms)
Error: Not implemented requested Kyber mode is not enabled in this build

... instead of skipping the Kyber 90s modes. Similarly for other algorithms where specific groups of modes may be disabled at build time.

Could be fixed by (for instance):

#if defined(BOTAN_HAS_KYBER)
   "Kyber-512-r3",
   "Kyber-768-r3",
   "Kyber-1024-r3",
#endif
#if defined(BOTAN_AS_KYBER_90S)
   "Kyber-512-90s-r3",
   "Kyber-768-90s-r3",
   "Kyber-1024-90s-r3",
#endif

This was referenced Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants