Next: Other uses of the Up: Subset-Sum (Knapsack) problems and Previous: A proposed public-key system   Contents

## Breaking Knapsack Cryptosystems

We will present some of the basic ideas for attacking the system described in the preceding section, and illustrate them on a small example.4 Our source is the paper by E. Brickell and A. Odlyzko, Cryptanalysis: a survey of recent results,'' in Contemporary cryptology: the science of information integrity.

It is not necessary to provide an efficient algorithm guaranteed to crack all instances of a cryptosystem to call its security into question, and our analysis is only an indication that the simple system of the previous section can often be broken.

Suppose we are given the sequence : generated using an unknown multiplier (correponding to 1000 in the previous example), an unknown modulus , and an unknown super-increasing sequence . Let . Then there are non-negative such that . must be larger than all the , hence it must be significantly larger than the earliest members of the sequence.

The decryption method begins by guessing which of the known correspond to a few of the early members of the sequence. A trial-and-error approach is considered feasible for practical size problems.

Suppose we have guessed that 2464, 611, and 2456 correspond to the first three , and further that 2464 corresponds to . may be eliminated from pairs of equations to obtain: Since is large compared to this implies must be small-- about the size of (positive or negative). In other words, and must both be close to 0 or to 2464 mod 2464.

It is plausible that restrictions of this kind give a lot of information about . As we look at all possible values of , mod 2464 is evenly distributed through the entire range from 0 to 2463. If we require, for example, that the number is either or , we would expect that only about of the values for satisfy this. It seems plausible that the distribution of is independent of the distribution of , so a similar restriction on the second number reduces the possible values of by .

In our example, implies and . We look at the values of for something which makes mod 2464 small. Part of the results: The multiples of are clearly the most likely candidates. We try , which gives .

[The published algorithm recommends guessing more than 3 of the lowest and determining from an integer program: using a special algorithm which is polynomial-time for a fixed number of constraints.]

Since implies is close to , we try using , on the , which gives: This is not a super-increasing sequence, since . However, it is close enough to one that one can use it to solve subset-sum problems with a small amount of work.

The were generated using , , . Comparison of the with the almost'' super-increasing sequence obtained above shows that, except for the first few terms, the ratio of terms from the two sequences is nearly constant. Since a multiple of a super-increasing sequence is super-increasing, this explains why we would expect to obtain a useful sequence. #### Footnotes

...4
Calculations in this section were done using the Calc program based on the emacs editor. Both programs are available free as part of the GNU system. Next: Other uses of the Up: Subset-Sum (Knapsack) problems and Previous: A proposed public-key system   Contents
Translated from LaTeX by Scott Sutherland
2002-12-14
{"ft_lang_label":"__label__en","ft_lang_prob":0.93548995,"math_prob":0.9391644,"size":1836,"snap":"2019-43-2019-47","text_gpt3_token_len":398,"char_repetition_ratio":0.112991266,"word_repetition_ratio":0.0,"special_character_ratio":0.2167756,"punctuation_ratio":0.106017195,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98161894,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null,3,null,6,null,null,null,null,null,3,null,6,null,3,null,null,null,null,null,null,null,null,null,3,null,3,null,3,null,3,null,null,null,6,null,3,null,6,null,9,null,6,null,null,null,null,null,9,null,3,null,3,null,3,null,null,null,6,null,9,null,null,null,3,null,3,null,3,null,3,null,3,null,3,null,3,null,6,null,6,null,3,null,null,null,6,null,3,null,3,null,3,null,3,null,3,null,3,null,null,null,3,null,3,null,null,null,3,null,3,null,3,null,3,null,3,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-11-15T18:29:58Z\",\"WARC-Record-ID\":\"<urn:uuid:74f9d75b-681f-4307-8cca-87dd552e6180>\",\"Content-Length\":\"15438\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:21353361-19a2-4a53-9fd0-cf3e1ba70733>\",\"WARC-Concurrent-To\":\"<urn:uuid:7d4ad2de-21c0-4ae7-854b-8684522b263b>\",\"WARC-IP-Address\":\"129.49.88.13\",\"WARC-Target-URI\":\"http://www.math.stonybrook.edu/~scott/blair/Breaking_Knapsack_Cryptosys.html\",\"WARC-Payload-Digest\":\"sha1:YTJKFRK5CW3GETJAJRK76UDCN65M7S2E\",\"WARC-Block-Digest\":\"sha1:EC4UPS7MP4ZG43ZRQAFJP6HQAPFXXT3Z\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-47/CC-MAIN-2019-47_segments_1573496668699.77_warc_CC-MAIN-20191115171915-20191115195915-00302.warc.gz\"}"}