随机算法
Randomized Algorithm.
A randomized algorithm uses a source of (pseudo) randomness as part of its logic.
Randomized algorithm, as opposed to deterministic algorithm, mapping the same input to several random outputs. The randomness is guaranteed by some random tapes implemented by TRNGs, PRGs, PRFs or PRPs.
Randomized algorithms are essential to build secure cryptographic primitives: in particular, Any CPA-secure encryption scheme must be randomized.
Chosen-plaintext attack (CPA): Adversary holds the encryption oracle
For a deterministic encryption scheme, there is a trivial CPA adversary
Also we could see that, for public encryption scheme, EAV-security is equivalent to CPA-security since adversary knows public key