11.4 TRAP-DOOR KNAPSACKS
In their important paper. Merkle and Hellman [1978] published the first example of a trap-door public-key cryptosystem. They define a transformation relating
- A knapsack problem K{s, t} with a knapsack vector s that is super-increasing and
- A knapsack problem K{a, b, m} modulo m with a seemingly general knapsack vector a.
It was intended that the transformation K{s, t} → K{a, b, m} satisfy three properties:
- K{a, b, m} and K{s, t} are equivalent, meaning they have a common solution;
- It is computationally infeasible to find a solution to K{a, b, m};
- It is easy to find a solution to K{s, t}.
We develop their ideas in this section.
Let SUPn[m] be the subset of SUPn that satisfies the size condition
![]()
TABLE 11.3 The Knapsack Multipliers for m = 14

Let
denote the set of integers, referred to as knapsack multipliers, which are relatively prime to the modulus m. Each ω ∈ Ωm has a multiplicative inverse ω−1 ∈ Ωm; that is, 1 = ωω−1 (modulo m).
Note that the modulus m is not required to be a prime number.
Example 11.8
Table 11.3 lists the knapsack multipliers from m = 14.
Example 11.9
Table 11.4 lists the knapsack multipliers for m = 13. When ω is relatively prime to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access