openssl: Report correct key length for EC keys when not using NIST curves

Fixes #688.