Say i'm given a cipher text to decrypt, however i also have access to a server that performed the encryption; where i could enter any plaintext and observe the result of encryption. would it be classed as a known plain text attack or cipher text? I'm abit confused
Asked
Active
Viewed 84 times
0
-
This might be helpful Easy explanation of “IND-” security notions? – kelalaka May 18 '20 at 21:25
2 Answers
2
Neither, as you've described the prerequisites or - in a theoretical model - the setting for an attack to take place, but not the attack itself.
What you seem to have is a ciphertext oracle which can be used within a Chosen Plaintext Attack (CPA). As you can "enter any plaintext" I presume you can investigate the results and the request encryption of another plaintext from the oracle. If you can use this to attack the cipher then it is known as an Adaptive Plaintext Attack.
If the cipher resists such attacks and the ciphertext doesn't give you any information about the key (or any other unkonwn plaintext) then the cipher is IND-CPA2 secure.

Maarten Bodewes
- 92,551
- 13
- 161
- 313
0
If you can encrypt any text of your choosing, that'd be a chosen plaintext attack.

poncho
- 147,019
- 11
- 229
- 360
-
-
@hithere: but you can 'chose' 'plaintext' to encrypt; this makes it a chosen plaintext attack (even if you cannot immediately access the plaintext to the encrypted message in question) – poncho May 18 '20 at 21:32