fix NIST P-256 / secp256k1 key generation.