typo [ci skip]
Distinguish key type error from key format error
Add public key
Documented error codes