ArticleslgStudy

mathematics

Very smooth hash

Very smooth hash is a mathematics 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 Very smooth hash rather than just read about it. In short: In cryptography, Very Smooth Hash (VSH) is a provably secure cryptographic hash function invented in 2005 by Scott Contini, Arjen Lenstra, and Ron Steinfeld. Provably secure means that finding collisions is as difficult as some mathematical problem that is known to be hard.

Key takeaways

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

Reference excerpt

In cryptography, Very Smooth Hash (VSH) is a provably secure cryptographic hash function invented in 2005 by Scott Contini, Arjen Lenstra, and Ron Steinfeld. Provably secure means that finding collisions is as difficult as some mathematical problem that is known to be hard. Unlike other provably secure collision-resistant hashes, VSH is efficient and usable in practice. Asymptotically, it only requires a single multiplication per log(n) message-bits and uses RSA-type arithmetic. Therefore, VSH can be useful in embedded environments where code space is limited. Two major variants of VSH were proposed. For one, finding a collision is provably as difficult as finding a nontrivial modular square root of a very smooth number modulo n. The other one uses a prime modulus p (with no trapdoor), and its security proof relies on the hardness of finding discrete logarithms of very smooth numbers modulo p. Both versions have similar efficiency. VSH is not suitable as a substitute for a random oracle, but can be used to build a provably secure randomized trapdoor hash function. This function can replace the trapdoor function used in the Cramer–Shoup signature scheme, maintaining its provable security while speeding up verification time by about 50%.

VSN and VSSR Not all cryptographic hash functions that are now widely used are based on hard mathematical problems. Those few functions that are constructed on hard mathematical problems are called provably secure. Finding collisions is then known to be as hard as solving the hard mathematical problem. For the basic version of Very Smooth Hash, this hard problem is to find modular square roots (VSSR) of certain special numbers (VSN). This is assumed to be as hard as factoring integers. For fixed constants c and n, an integer m is a Very Smooth Number (VSN) if the largest prime factor of m is at most log(n)c. An integer b is a Very Smooth Quadratic Residue modulo n if the largest prime in b's factorization is at most log(n)c and there exists an integer x such that b ≡ x2 (mod n). The integer x is then said to be a modular square root of b. We are interested only in non-trivial square roots, those where x2 ≥ n. If x2 < n, then the root can be easily computed using algorithms from fields of characteristic 0, such as the real field. Therefore, they are not suitable in cryptographic primitives. Very Smooth Number Nontrivial Modular Square Root (VSSR) is the following problem: Let n be the product of two unknown primes of approximately the same size, let k ≤ (log(n))c, and let (p1,p2,p3,…) = (2,3,5,…) be the sequence of primes. Given n, find an integer x coprime to n such that x2≡∏i=0kpiei(modn) and at least one of e0,…,ek is odd. The VSSR assumption is that there is no probabilistic polynomial (in log(n)) time algorithm which solves VSSR with non-negligible probability. This is considered a useless assumption in practice because it does not tell for what size of moduli VSSR is computationally hard. Instead the computational VSSR assumption is used. It says that solving VSSR is assumed to be as hard as factoring a hard-to-factor s-bit modulus, where s is somewhat smaller than the size of n.

Examples of VSN and VSSR Let the parameters be fixed as c = 5 and n = 31. Then m1 = 35 = 5·7 is a Very Smooth Number with respect to these parameters because log(31)5 ≈ 7.37 is greater than all of m1's prime factors. On the other hand, m2 = 55 = 5·11 is not a VSN under these parameters. The integer 9 is a Very Smooth Quadratic Residue modulo n because it is a Very Smooth Number (under c,n), and 32 ≡ 9 (mod n). This is a trivial modular square root, because 9 < n and so the modulus is not involved when squaring. The integer b2 = 15 is also a Very Smooth Quadratic Residue modulo n. All prime factors are smaller than 7.37 and the Modular Square Root is x2 = 20 since 202 = 400 ≡ 15 (mod n). This is thus a non-trivial root. The VSSR problem is to find x2 given b2 and n. This is believed to be computationally as hard as factoring n.

VSH algorithm, basic versions Let n be a large RSA composite and let (p1,p2,p3,…) = (2,3,5,…) be the sequence of primes. Let k, the block length, be the largest integer such that ∏i=1kpi<n. Let m be an ℓ-bit message to be hashed consisting of bits (m1,…,mℓ) and assume that ℓ < 2k. To compute the hash of m:

Set x0 = 1. Let L, the smallest integer greater than or equal to ℓ/k, be the number of blocks. Let mi = 0 for ℓ < i < Lk (padding). Let ℓ=∑i=1kli2i−1 with ℓi ∈ {0,1} be the binary representation of the message length ℓ and define mLk+i = ℓi for 1 ≤ i ≤ k. For j = 0, 1, …, L in succession, compute xj+1=xj2∏i=1kpimjk+i(modn) Return xL+1. The function in step 5 is called the compression function.

Properties of VSH The message length does not need to be known in advance. Finding a collision in VSH is as hard as solving VSSR. Thus VSH is (strongly) collision-resistant, which also implies second preimage resistance. VSH has not been proven to be preimage-resistant. The compression function is not collision-resistant. Nonetheless, the hash function VSH is collision-resistant based on the VSSR assumption. An altered version of VSH, called VSH*, uses a collision-resistant compression function and is about 5 times quicker when hashing short messages. Since the output length of VSH is the length of a secure RSA modulus, VSH seems quite suitable in practice for constructing "hash-then-sign" RSA signatures for arbitrarily long messages. However, such a signature must be designed carefully to ensure its security. The naïve approach could be easily broken under a chosen-plaintext attack. The cost of each iteration is less than the cost of 3 modular multiplications. The basic version of VSH altogether requires one multiplication per Ω(log(n) / log(log(n))) message bits.

Variants of VSH Several improvements, speedups, and more efficient variants of VSH have been proposed. None of them changes the underlying concept of the function. These improvements are called:

Cubing VSH (instead of squaring) VSH with increased number of small primes VSH with precomputed products of primes Fast VSH Fast VSH with increased block length

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Very smooth hash

Start with the simplest possible case. Write down what Very smooth hash claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, 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 Very smooth hash 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 Very smooth hash 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 Very smooth hash

In research
Very smooth hash appears in mathematics 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 Very smooth hash 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
Very smooth hash is common in secondary-school and first-year university syllabi. It links to neighbouring topics Cryptographic hash functions, so understanding it makes those chapters shorter.
In everyday life
Look for Very smooth hash 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.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Very smooth hash” →

How to study Very smooth hash in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Very smooth hash 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 Very smooth hash out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Very smooth hash in simple terms?

In cryptography, Very Smooth Hash (VSH) is a provably secure cryptographic hash function invented in 2005 by Scott Contini, Arjen Lenstra, and Ron Steinfeld. Provably secure means that finding collisions is as difficult as some mathematical problem that is known to be hard.

Why does Very smooth hash matter?

Because it connects several mathematics 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 Very smooth hash?

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 Very smooth hash.

Tags

  • Cryptographic hash functions

Keep exploring