NativeCrypto: fix some DSA/ECDSA key generation

We were trying to generate a public key from a private key spec which
obviously doesn't work.

Also fix the error messages that indicated public key when it meant
private key.

Change-Id: Ifae417bc3e4c56aced5b7583a34965c7f31c9c66
2 files changed