security: Fix bug in PublicKey::fromDer: Use the given keyType.