encyclopegia.org

Advantage (cryptography)

In cryptography, an adversary's advantage is a measure of how successfully it can attack a cryptographic algorithm, by distinguishing it from an idealized version of that type of algorithm.[src] Note that in this context, the "adversary" is itself an algorithm and not a person.[src] A cryptographic algorithm is considered secure if no adversary has a non-negligible advantage, subject to specified bounds on the adversary's computational resources (see concrete security).[src] "Negligible" usually means "within O(2 −p )" where p is a security parameter associated with the algorithm.[src] For example, p might be the number of bits in a block cipher's key.[src]

In cryptography, an adversary's advantage is a measure of how successfully it can attack a cryptographic algorithm, by distinguishing it from an idealized version of that type of algorithm.[src] Note that in this context, the "adversary" is itself an algorithm and not a person.[src] A cryptographic algorithm is considered secure if no adversary has a non-negligible advantage, subject to specified bounds on the adversary's computational resources (see concrete security).[src] "Negligible" usually means "within O(2 −p )" where p is a security parameter associated with the algorithm.[src] For example, p might be the number of bits in a block cipher's key.[src] Adv(A) = |\Pr[A(F)=1] - \Pr[A(G)=1]| ===Example 1: Guess at random=== Call this adversary A 0 .[src] It simply flips a coin and returns 1 or 0 with equal probability and without making any oracle calls.[src] Thus, Pr[A 0 (F)=1] and Pr[A 0 (G)=1] are both 0.5.[src] The difference between these probabilities is zero, so Adv(A 0 ) is zero.[src] The same thing applies if we always return 0, or always return 1: the probability is the same for both F and G, so the advantage is zero.[src] This adversary can't tell F and G apart.[src] If we're cipher designers, our desire (maybe not achievable) is to make it so that it's computationally infeasible for any adversary to do significantly better than this.[src] We will have succeeded if we can make a cipher for which there's no distinguisher faster than brute force search.[src] ===Example 2: Brute force search=== This adversary (call it A 1 ) will attempt to cryptanalyze its input by brute force.[src] It has its own DES implementation.[src] It gives a single query to its oracle, asking for the 64-bit string of all zeroes to be encrypted.[src] Call the resulting ciphertext E 0 .[src] It then runs an exhaustive key search.[src] The algorithm looks like this: E 0 = oracle_query(0) for k in 0,1,...,2 56 -1: if DES k (0) == E 0 : return 1 return 0 This searches the entire 56-bit DES keyspace and returns "1" if it probably finds a matching key.[src] In practice, several plaintexts are required to confirm the key, as two different keys can result in one or more matching plaintext-ciphertext pairs.[src] If no key is found, it returns 0.[src] If the input oracle is DES, this exhaustive search is certain to find the key, so Pr[A 1 (F)=1] = 1.[src] If the input oracle is a random permutation, there are 2 64 possible values of E 0 , and at most 2 56 of them will get examined in the DES keysearch.[src] So the probability of A 1 returning 1 is at most 2 −8 .[src] That is: Pr[A_1(G)=1] \leq 2^{-8} , so Adv(A_1) = |Pr[A_1(F)=1] - Pr[A_1(G)=1]| \geq 1 - 2^{-8} so the advantage is at least about 0.996.[src] This is a near-certain distinguisher, but it's not a security failure because it's no faster than brute force search, after all, it is the brute force search.[src] ==See also== Pseudorandom-function advantage Key-recovery advantage PR-CPA advantage[src]

32 sentences · 32 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Advantage (cryptography)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/advantage-cryptography. Accessed 01 December 2026.

Chicago

"Advantage (cryptography)." encyclopegia.org. Accessed December 1, 2026. https://encyclopegia.org/wiki/advantage-cryptography.

APA

encyclopegia.org. (2026). Advantage (cryptography). Retrieved December 1, 2026, from https://encyclopegia.org/wiki/advantage-cryptography

Accessed December 1, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1371117505 · 0.5 · snapshot enwiki-001371117505

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.