As we know about Shor's algorithm on quantum computers it is possible to crack RSA / ECC easily if we have enough qubits.
Is it possible to crack RSA / ECC on a quantum computer if we only have ciphertext and don't have the public key used to encrypt itself?
Does it matter if we have many ciphertexts and corresponding plaintext for some of them that are generated using the same public key?