ArticleslgStudy

science

MMH-Badger MAC

MMH-Badger MAC is a 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 MMH-Badger MAC rather than just read about it. In short: Badger is a message authentication code (MAC) based on the idea of universal hashing and was developed by Boesgaard, Scavenius, Pedersen, Christensen, and Zenner. It is constructed by strengthening the ∆-universal hash family MMH using an ϵ-almost strongly universal (ASU) hash function family after the application of ENH (see below), where the value of ϵ is 1 / ( 2 32 − 5 ) {\displaystyle 1/(2^{32}-5)} .

Key takeaways

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

Reference excerpt

Badger is a message authentication code (MAC) based on the idea of universal hashing and was developed by Boesgaard, Scavenius, Pedersen, Christensen, and Zenner. It is constructed by strengthening the ∆-universal hash family MMH using an ϵ-almost strongly universal (ASU) hash function family after the application of ENH (see below), where the value of ϵ is 1 / ( 2 32 − 5 ) {\displaystyle 1/(2^{32}-5)} . Since Badger is a MAC function based on the universal hash function approach, the conditions needed for the security of Badger are the same as those for other universal hash functions such as UMAC.

Introduction The Badger MAC processes a message of length up to 2 64 − 1 {\displaystyle 2^{64}-1} bits and returns an authentication tag of length u ⋅ 32 {\displaystyle u\cdot 32} bits, where 1 ≤ u ≤ 5 {\displaystyle 1\leq u\leq 5} . According to the security needs, user can choose the value of u {\displaystyle u} , that is the number of parallel hash trees in Badger. One can choose larger values of u, but those values do not influence further the security of MAC. The algorithm uses a 128-bit key and the limited message length to be processed under this key is 2 64 {\displaystyle 2^{64}} . The key setup has to be run only once per key in order to run the Badger algorithm under a given key, since the resulting internal state of the MAC can be saved to be used with any other message that will be processed later.

ENH Hash families can be combined in order to obtain new hash families. For the ϵ-AU, ϵ-A∆U, and ϵ-ASU families, the latter are contained in the former. For instance, an A∆U family is also an AU family, an ASU is also an A∆U family, and so forth. On the other hand, a stronger family can be reduced to a weaker one, as long as a performance gain can be reached. A method to reduce ∆-universal hash function to universal hash functions will be described in the following. Theorem 2 Let H △ {\displaystyle H^{\triangle }} be an ϵ-AΔU hash family from a set A to a set B. Consider a message ( m , m b ) ∈ A × B {\displaystyle (m,m_{b})\in A\times B} . Then the family H consisting of the functions h ( m , m b ) = H △ ( m ) + m b {\displaystyle h(m,m_{b})=H^{\triangle }(m)+m_{b}} is ϵ-AU. If m ≠ m ′ {\displaystyle m\neq m'} , then the probability that

h ( m , m b ) = h ( m ′ , m b ′ ) {\displaystyle h(m,m_{b})=h(m',m'_{b})} is at most ϵ, since H △ {\displaystyle H^{\triangle }} is an ϵ-A∆U family. If m = m ′ {\displaystyle m=m'} but m b ≠ m b ′ {\displaystyle m_{b}\neq m_{b}'} , then the probability is trivially 0. The proof for Theorem 2 was described in The ENH-family is constructed based on the universal hash family NH (which is also used in UMAC):

N H K ( M ) = ∑ i = 1 ℓ 2 ( k ( 2 i − 1 ) + w m ( 2 i − 1 ) ) × ( k 2 i + w m 2 i ) mod 2 2 w {\displaystyle NH_{K}(M)=\sum _{i=1}^{\frac {\ell }{2}}(k_{(2i-1)}+_{w}m_{(2i-1)})\times (k_{2i}+_{w}m_{2i})\mod 2^{2w}}

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with MMH-Badger MAC

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

In research
MMH-Badger MAC appears in 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 MMH-Badger MAC 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
MMH-Badger MAC is common in secondary-school and first-year university syllabi. It links to neighbouring topics Message authentication codes, so understanding it makes those chapters shorter.
In everyday life
Look for MMH-Badger MAC 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 “MMH-Badger MAC” →

Affiliate

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

How to study MMH-Badger MAC in 20 minutes

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

Frequently asked questions

What is MMH-Badger MAC in simple terms?

Badger is a message authentication code (MAC) based on the idea of universal hashing and was developed by Boesgaard, Scavenius, Pedersen, Christensen, and Zenner. It is constructed by strengthening the ∆-universal hash family MMH using an ϵ-almost strongly universal (ASU) hash function family after…

Why does MMH-Badger MAC matter?

Because it connects several 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 MMH-Badger MAC?

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 MMH-Badger MAC.

Tags

  • Message authentication codes

Keep exploring