ArticleslgStudy

mathematics

Nothing-up-my-sleeve number

Nothing-up-my-sleeve number 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 Nothing-up-my-sleeve number rather than just read about it. In short: In cryptography, nothing-up-my-sleeve numbers are any numbers which, by their construction, are above suspicion of hidden properties. They are used in creating cryptographic functions such as hashes and ciphers.

Nothing-up-my-sleeve number — main illustration
Nothing-up-my-sleeve number — illustration

Key takeaways

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

Reference excerpt

In cryptography, nothing-up-my-sleeve numbers are any numbers which, by their construction, are above suspicion of hidden properties. They are used in creating cryptographic functions such as hashes and ciphers. These algorithms often need randomized constants for mixing or initialization purposes. The cryptographer may wish to pick these values in a way that demonstrates the constants were not selected for a nefarious purpose, for example, to create a backdoor to the algorithm. These fears can be allayed by using numbers created in a way that leaves little room for adjustment. An example would be the use of initial digits from the number π as the constants. Using digits of π millions of places after the decimal point would not be considered trustworthy because the algorithm designer might have selected that starting point because it created a secret weakness the designer could later exploit—though even with natural-seeming selections, enough entropy exists in the possible choices that the utility of these numbers has been questioned. Digits in the positional representations of real numbers such as π, e, and irrational roots are believed to appear with equal frequency (see normal number). Such numbers can be viewed as the opposite extreme of Chaitin–Kolmogorov random numbers in that they appear random but have very low information entropy. Their use is motivated by early controversy over the U.S. Government's 1975 Data Encryption Standard, which came under criticism because no explanation was supplied for the constants used in its S-box (though they were later found to have been carefully selected to protect against the then-classified technique of differential cryptanalysis). Thus a need was felt for a more transparent way to generate constants used in cryptography.

"Nothing up my sleeve" is a phrase associated with magicians, who sometimes preface a magic trick by holding open their sleeves to show they have no objects hidden inside.

Examples Ron Rivest used pi to generate the S-box of the MD2 hash. Ron Rivest used the trigonometric sine function to generate constants for the widely used MD5 hash. The U.S. National Security Agency used the square roots of the first eight prime integers to produce the hash constants in their "Secure Hash Algorithm" functions, SHA-1 and SHA-2. SHA-1 also uses 0123456789ABCDEFFEDCBA9876543210F0E1D2C3 as its initial hash value. The Blowfish encryption algorithm uses the binary representation of π − 3 to initialize its key schedule. RFC 3526 describes prime numbers for internet key exchange that are also generated from π. The S-box of the NewDES cipher is derived from the United States Declaration of Independence. The AES candidate DFC derives all of its arbitrary constants, including all entries of the S-box, from the binary expansion of e. The ARIA key schedule uses the binary expansion of 1/π. The key schedule of the RC5 cipher uses binary digits from both e and the golden ratio. Multiple ciphers including TEA and Red Pike use 2654435769 or 0x9e3779b9 which is floor(232/φ), where φ is the golden ratio. The BLAKE hash function, a finalist in the SHA-3 competition, uses a table of 16 constant words which are the leading 512 or 1024 bits of the fractional part of π. The key schedule of the KASUMI cipher uses 0x123456789ABCDEFFEDCBA9876543210 to derive the modified key. The Salsa20 family of ciphers use the ASCII string "expand 32-byte k" or "expand 16-byte k" as constants in its block initialization process. OpenBSD Bcrypt uses the string "OrpheanBeholderScryDoubt" as an initialization string

Counterexamples The Streebog hash function S-box was claimed to be generated randomly, but was reverse-engineered and proven to be generated algorithmically with some "puzzling" weaknesses. The Data Encryption Standard (DES) has constants that were given out by NSA. They turned out to be far from random, but instead made the algorithm resilient against differential cryptanalysis, a method not publicly known at the time. Dual_EC_DRBG, a NIST-recommended cryptographic pseudo-random bit generator, came under criticism in 2007 because constants recommended for use in the algorithm could have been selected in a way that would permit their author to predict future outputs given a sample of past generated values. In September 2013 The New York Times wrote that "internal memos leaked by a former NSA contractor, Edward Snowden, suggest that the NSA generated one of the random number generators used in a 2006 NIST standard—called the Dual EC DRBG standard—which contains a back door for the NSA." ANSSI FRP256v1 uses totally unexplained parameters.

Manipulatable, but not trivially ANSI X9.62 claims to use a so-called "verifiably at random" selection of elliptic curves. This is in fact just the result of applying a cryptographic hash function to any piece of data, and is pseudo-random at best. Its claimed resistance to manipulation lies solely in the resistance of the chosen hash function to a preimage attack, i.e. the relative difficulty in producing a piece of data that hashes to a given value. Still, the set of possible choices space remains unrestricted; it is conceivable that an adversary could try many randomly-generated values until they find one with an exploitable property. Indeed, although the IEEE P1363 and NIST 186 standards had inherited these curves, they tone down the claims associated with the generation procedure. The most commonly used parameters of this class are the NIST P-curves for elliptic curve cryptography. The coefficients in these curves are generated by applying SHA-1 to unexplained random seeds, such as:

… excerpt ends here. Continue reading the full article.

Illustrations

Nothing-up-my-sleeve number: Card that was hidden in a sleeve
Card that was hidden in a sleeve

Worked examples

Example 1 — a first encounter with Nothing-up-my-sleeve number

Start with the simplest possible case. Write down what Nothing-up-my-sleeve number 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 Nothing-up-my-sleeve number 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 Nothing-up-my-sleeve number 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 Nothing-up-my-sleeve number

In research
Nothing-up-my-sleeve number 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 Nothing-up-my-sleeve number 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
Nothing-up-my-sleeve number is common in secondary-school and first-year university syllabi. It links to neighbouring topics Cryptography, Random number generation, Transparency (behavior), so understanding it makes those chapters shorter.
In everyday life
Look for Nothing-up-my-sleeve number 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 “Nothing-up-my-sleeve number” →

Affiliate

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

How to study Nothing-up-my-sleeve number in 20 minutes

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

Frequently asked questions

What is Nothing-up-my-sleeve number in simple terms?

In cryptography, nothing-up-my-sleeve numbers are any numbers which, by their construction, are above suspicion of hidden properties. They are used in creating cryptographic functions such as hashes and ciphers.

Why does Nothing-up-my-sleeve number 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 Nothing-up-my-sleeve number?

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 Nothing-up-my-sleeve number.

Tags

  • Cryptography
  • Random number generation
  • Transparency (behavior)

Keep exploring