Parse ecdsa and ed25519 key formats