The -hex option description was ambiguous about its exact behavior.
Clarify that:
- With -generate: outputs the prime in hex instead of decimal
- When checking: interprets input as hex instead of decimal
- Output when checking is always hex regardless of this option
Fixes #19208
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
MergeDate: Wed Apr 15 12:33:18 2026
(Merged from https://github.com/openssl/openssl/pull/29913)
=item B<-hex>
-Enable hex format for output from prime generation or input to primality checking.
+When used with B<-generate>, output the generated prime in hexadecimal
+format instead of decimal. When checking primality, interpret the input
+numbers as hexadecimal instead of decimal. Note that the output in
+hexadecimal is always present when checking primality, regardless of
+this option.
=item B<-in>