ArticleslgStudy

computer science

Security parameter

Security parameter is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Security parameter rather than just read about it. In short: In cryptography, a security parameter is a way of measuring of how "hard" it is for an adversary to break a cryptographic scheme. There are two main types of security parameter: computational and statistical, often denoted by κ {\displaystyle \kappa } and λ {\displaystyle \lambda } , respectively.

Key takeaways

  • Security parameter belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Security parameter to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Security parameter from memory before moving on to harder problems.

Reference excerpt

In cryptography, a security parameter is a way of measuring of how "hard" it is for an adversary to break a cryptographic scheme. There are two main types of security parameter: computational and statistical, often denoted by κ {\displaystyle \kappa } and λ {\displaystyle \lambda } , respectively. Roughly speaking, the computational security parameter is a measure for the input size of the computational problem on which the cryptographic scheme is based, which determines its computational complexity, whereas the statistical security parameter is a measure of the probability with which an adversary can break the scheme (whatever that means for the protocol). Security parameters are usually expressed in unary representation - i.e. κ {\displaystyle \kappa } is expressed as a string of κ {\displaystyle \kappa } 1 {\displaystyle 1} s, κ = 1 ⋯ 1 {\displaystyle \kappa =1\cdots 1} , conventionally written as 1 κ {\displaystyle 1^{\kappa }} - so that the time complexity of the cryptographic algorithm is polynomial in the size of the input.

Computational security The security of cryptographic primitives relies on the hardness of some hard problems. One sets the computational security parameter κ {\displaystyle \kappa } such that O ( 2 κ ) {\displaystyle O(2^{\kappa })} computation is considered intractable.

Examples If the security of a scheme depends on the secrecy of a key for a pseudorandom function (PRF), then we may specify that the PRF key should be sampled from the space { 0 , 1 } κ {\displaystyle \{0,1\}^{\kappa }} so that a brute-force search requires O ( 2 κ ) {\displaystyle O(2^{\kappa })} computational power. In the RSA cryptosystem, the security parameter κ {\displaystyle \kappa } denotes the length in bits of the modulus n; the positive integer n must therefore be a number in the set {0, ..., 2 κ {\displaystyle \kappa } - 1}.

Statistical security Security in cryptography often relies on the fact that statistical distance between

a distribution predicated on a secret, and a simulated distribution produced by an entity that does not know the secret is small. We formalise this using the statistical security parameter by saying that the distributions are statistically close if the statistical distance between distributions can be expressed as a negligible function in the security parameter. One sets the statistical security parameter σ {\displaystyle \sigma } such that O ( 2 − σ ) {\displaystyle O(2^{-\sigma })} is considered a "small enough" chance of the adversary winning. Consider the following two broad categories of attack of adversaries on a given cryptographic scheme: attacks in which the adversary tries to learn secret information, and attacks in which the adversary tries to convince an honest party to accept a false statement as true (or vice versa). In the first case, for example a public-key encryption scheme, an adversary may be able to obtain a large amount of information from which he can attempt to learn secret information, e.g. by examining the distribution of ciphertexts for a fixed plaintext encrypted under different randomness. In the second case, it may be that the adversary must guess a challenge or a secret and can do so with some fixed probability; in this we can talk about distributions by considering the algorithm for sampling the challenge in the protocol. In both cases, we can talk about the chance of the adversary "winning" in a loose sense, and can parameterise the statistical security by requiring the distributions to be statistically close in the first case or defining a challenge space dependent on the statistical security parameter in the second case.

Examples In encryption schemes, one aspect of security is (at a high level) that anything that can be learnt about a plaintext given a ciphertext can also be learnt from a randomly-sampled string (of the same length as ciphertexts) that is independent of the plaintext. Formally, one would need to show that a uniform distribution over a set of strings of fixed length is statistically close to a uniform distribution over the space of all possible ciphertexts. In zero knowledge protocols, we can further subdivide the statistical security parameters into zero knowledge and soundness statistical security parameters. The former parameterises what the transcript leaks about the secret knowledge, and the latter parameterises the chance with which a dishonest prover can convince an honest verifier that he knows a secret even if he doesn't. In universal composability, the security of a protocol relies on the statistical indistinguishability of distributions of a real-world and an ideal-world execution. Interestingly, for a computationally unbounded environment it is not sufficient for distributions to be statistically indistinguishable since the environment can run the experiment enough times to observe which distribution is being produced (real or ideal); however, any standalone adversary against the protocol will only win with negligible probability in the statistical security parameter since it only engages in the protocol once.

See also Security level Key size Negligible function

References

Worked examples

Example 1 — a first encounter with Security parameter

Start with the simplest possible case. Write down what Security parameter claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Security parameter before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Security parameter ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Security parameter

In research
Security parameter appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Security parameter in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Security parameter is common in secondary-school and first-year university syllabi. It links to neighbouring topics Cryptography, so understanding it makes those chapters shorter.
In everyday life
Look for Security parameter outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Security parameter in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Security parameter means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Security parameter out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Security parameter in simple terms?

In cryptography, a security parameter is a way of measuring of how "hard" it is for an adversary to break a cryptographic scheme. There are two main types of security parameter: computational and statistical, often denoted by κ {\displaystyle \kappa } and λ {\displaystyle \lambda } , respectively.

Why does Security parameter matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Security parameter?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Security parameter.

Tags

  • Cryptography

Keep exploring