opencryptoki / openssl-ibmca

OpenSSL engine and provider for libica.
Apache License 2.0
6 stars 15 forks source link

provider: Support EC parameter generation with named curve #88

Closed ifranzki closed 1 year ago

ifranzki commented 1 year ago

In general the IBMCA provider does not support EC parameter generation, because libica only supports certain named curves. However, one can also use EC parameter generation with a named curve, and then use such parameter key object as template for generating other keys. One example for this is the openssl speed utility.

Like for EC key generation, EC parameter generation only supports parameters 'group', 'point-format', 'encoding', and 'use-cofactor-flag', where the only accepted value for parameter 'encoding' is 'named_curve', and the only accepted value for parameter 'use-cofactor-flag' is '0'.

With this change the openssl speed utility works fine with ECDSA.