Download Crypto Glossary in

Transcript
will be required to detect these generally low-level events, and the quality of the result is often directly related
to the design of the electronic processing. Other sources of randomness might be an accumulated hash of text of
substantial size, and precise keystroke timing.
Unfortunately, although we expect quantum-like effects to be "very random," science is not in the business of
finding or guaranteeing physical "law" upon which we can base provably unpredictable generators. Instead,
science generally develops quantitative models that are either confirmed or contradicted by experiment, but
even repeated confirmation does not indicate a "law." In fact, it is not all that unusual for experiments to
indicate that what previously was accepted as physical law will have to be updated and changed. That means
even atomic physics is not an unarguable basis for unpredictable randomness as is often assumed. That said,
quantum sources can avoid many problems inherent in other randomness techniques.
A prime example of a non-random generator is the ubiquitous digital computer, which unfortunately is also the
main platform for modern cryptography. Technically, a computer is no more than a complex finite state
machine, and is absolutely deterministic in everything it does. All a computer can do is follow a sequence of
operations which, if not cryptographically created and protected, must be assumed to be exposed to the
opponent. The computer, the operating system, disk devices and disk structure are all common production items
which the opponent is expected to have and know much more about than we do. Granted, computer operations
can be very complex. And anyone can claim that "nobody" could unravel the complexity, but proving that to
cryptographic levels of certainty is another story. Mere complexity is not the same as cryptographic
unpredictability or strength.
Really-random generators are the exact opposite of the highly-controlled software and digital hardware that we
know how to design and test. Often, there are unexpected problems. For example:
• Timing keystrokes on an ordinary PC actually measures the result reported by the slow keyboard
processor. Since the keyboard performs a periodic scan of keys, each keypress is quantized probably
thousands of times more coarsely than implied by PC timing.
• Geiger-type radioactivity detectors have a sensitivity which depends upon bias voltage. So if the bias
voltage changes, the probability of finding an event within some given time also changes. Because the
events are random, the difference may not be obvious.
• Thermal noise is extremely small, making detection highly dependent upon particularly clean and
wideband electronic amplification.
• Shot noise will vary with current, and so needs to be developed in some way which keeps current
relatively constant over time.
• Zener diodes, which typically operate by avalanche multiplication, may have a disturbing and generally
unnoticed tendency to oscillate, which would be unexpected predictability.
• Noise-based techniques can have substantial correlation between samples, starting with adjacent
samples and extending on for perhaps tens of samples.
• Crystal oscillator phase noise is unlikely to be accurately measured by repeated software sampling on a
PC platform. Phase noise is a tiny cycle-by-cycle effect which does not accumulate over multiple timing
cycles.
• Crystal oscillators generate ultra-predictable waveforms. When combined or sampled, the result may be
similar to a solvable linear equation.
• Sequences from various computer hardware sources may include a a complex but deterministic
interaction between periodic interrupts and software timing, and so could be somewhat predictable while
appearing random.
• Sampling asynchronous digital signals or analog noise directly using digital devices (including simply
reading an input port) often will fail to meet the setup time and hold time requirements of digital logic.
The result will be to bias the sampled data, possibly cause metastable operation, and operate differently
on different machines.
• Collecting various external network timings is not particularly helpful if the network itself is not secure,
since an opponent could collect the exact same timings.
• Collecting various internal computer timings and values, such as disk access and so on, ignores the fact