Attacks on public-key cryptosystems