Alternating step generator

Alternating step generator

In cryptography, an alternating step generator (ASG) is a cryptographic pseudorandom number generator intended to be used in a stream cipher. The design was published in 1987 by C. G. Günther. It is also known as the alternating stop-and-go generator.

Overview

An ASG comprise three linear feedback shift registers. For each bit produced, LFSR2 is clocked, and either LFSR0 or LFSR1 is clocked, depending on the output of LFSR2. The output is the Exclusive-OR of the last bit produced by LFSR0 and LFSR1. The initial state of the LFSRs is the key.

Customarily, the LFSRs use primitive polynomials of distinct but close degree, preset to non-stationary state, so that each LFSR generates a maximum-length sequence. With such hypothesis, the ASG's output demonstrably has long period, high linear complexity, and even distribution of short subsequences.

Illustration, in C: // 16-bit toy ASG (much too small for practical usage); return 0 or 1. unsigned ASG16toy(void) { static unsigned // unsigned type with at least 16 bits lfsr2 = 0x8102, // initial state, 16 bits, must not be 0 lfsr1 = 0x4210, // initial state, 15 bits, must not be 0 lfsr0 = 0x2492; // initial state, 14 bits, must not be 0 // LFSR2 use x^^16 + x^^14 + x^^13 + x^^11 + 1 lfsr2 = (-(lfsr2&1))&0x8016 ^ lfsr2>>1; if (lfsr2&1) // LFSR1 use x^^15 + x^^14 + 1 lfsr1 = (-(lfsr1&1))&0x4001 ^ lfsr1>>1; else // LFSR0 use x^^14 + x^^13 + x^^3 + x^^2 + 1 lfsr0 = (-(lfsr0&1))&0x2C01 ^ lfsr0>>1; return (lfsr0 ^ lfsr1)&1; }

An ASG is very simple and efficient to implement in hardware. In particular, contrary to the shrinking generator and self-shrinking generator, an output bit is produced at each clock.

Security

There is no public cryptanalysis of complexity less than O(2^n) where n is the size of the shortest of the three LFSRs, under the assumption that the initial states of the LFSRs are independently chosen at random.

References

* C. G. Günther. "Alternating step generators controlled by de Bruijn sequences", Advances in Cryptology - EuroCrypt '87 (p5-14), LNCS 304, Springer Verlag, ISBN 3-540-19102-X. See [http://www.springerlink.com/content/m10tfutx887qkpf8] . May be freely available as [http://google.us/search?q=%22alternating+step+generators%22+E87&btnI] .
* Schneier, Bruce. "Applied Cryptography" (p383-384), Second Edition, John Wiley & Sons, 1996. ISBN 0-471-11709-9


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • Central pattern generator — Central pattern generators (CPGs) are neural networks that produce rhythmic patterned outputs without sensory feedback.[1][2] CPGs have been shown to produce rhythmic outputs resembling normal rhythmic motor pattern production even in isolation… …   Wikipedia

  • Stream cipher — The operation of the keystream generator in A5/1, a LFSR based stream cipher used to encrypt mobile phone conversations. In cryptography, a stream cipher is a symmetric key cipher where plaintext digits are combined with a pseudorandom cipher… …   Wikipedia

  • Linear feedback shift register — [ xor gate provides feedback to the register that shifts bits from left to right. The maximal sequence consists of every possible state except the 0000 state.] A linear feedback shift register (LFSR) is a shift register whose input bit is a… …   Wikipedia

  • ASG — may refer to: *ASG (band) *Abstract semantic graph *Abu Sayyaf Group *Adaptive Services Grid *Airsoft gun *All Saints Greek Orthodox Grammar School, or All Saints Grammar *All star game *Alsager railway station s national rail code *Alternating… …   Wikipedia

  • Power engineering — Power engineering, also called power systems engineering, is a subfield of electrical engineering that deals with the generation, transmission and distribution of electric power as well as the electrical devices connected to such systems… …   Wikipedia

  • History of electromagnetism — The history of electromagnetism, that is the human understanding and recorded use of electromagnetic forces, dates back over two thousand years ago, see Timeline of electromagnetism. The ancients must have been acquainted with the effects of… …   Wikipedia

  • Inverter (electrical) — An inverter is an electrical device that converts direct current (DC) to alternating current (AC)[1]; the converted AC can be at any required voltage and frequency with the use of appropriate transformers, switching, and control circuits. Solid… …   Wikipedia

  • Electric power transmission — Electric transmission redirects here. For vehicle transmissions, see diesel electric transmission. 400 kV high tension transmission lines near Madrid Electric power transmission or high voltage electric transmission is the bulk transfer of… …   Wikipedia

  • Transformer — This article is about the electrical device. For the toy line franchise, see Transformers. For other uses, see Transformer (disambiguation). Pole mounted distribution transformer with center tapped secondary winding. This type of transformer is… …   Wikipedia

  • Wardenclyffe Tower — (1901 ndash; 1917) also known as the Tesla Tower, was an early wireless telecommunications aerial tower designed by Nikola Tesla and intended for commercial trans Atlantic wireless telephony, broadcasting, and to demonstrate the transmission of… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”