security: In PublicKey, added decodeKeyType.
security: In FilePrivateKeyStorage::getPublicKey, handle decoding EC keys.