Adaptive chosen-plaintext attack