Everything2
Near Matches
Ignore Exact
Full Text
Everything2

Avalanche Effect

created by ink-

(idea) by ink- (4.6 y) (print)   ?   I like it! Fri Dec 14 2001 at 19:36:25

Briefly, this is when changing one input bit on your data that you're encrypting results in a change of roughly half the bits of the ciphertext. One bit causes a few other bits to change, which causes further bits to change, and soon 50% of your bits are different. It is named such due to the similiarity that one piece of snow can start an entire avalanche. This effect happens often in such ciphers as DES, and makes it harder to analyze the ciphertext.

Alternately, if you like formal logic:
-for each bit i, 0 <= i < m
-if the 2m plaintext vectors are divided into 2m-1 pairs x and xi with each pair differing only in bit i
-then when the 2m-1 exclusive-or sums, termed avalanche vectors, Vi = f(x) XOR f(xi) are compared, about half of these sums should be found to be 1.

Here is a demonstration. (thanks to http://www-theory.dcs.st-and.ac.uk/~sal/school/CS3010/Lectures/forhtml/node4.html)
It shows the differences which arise from an input and a permutation, and the resulting differences in the output.

Input:    ...............................................................*
Permuted: .......................................*........................
Round 1: .......*........................................................
Round 2: .*..*...*.....*........................*........................
Round 3: .*..*.*.**..*.*.*.*....**.....**.*..*...*.....*.................
Round 4: ..*.*****.*.*****.*.*......*.....*..*.*.**..*.*.*.*....**.....**
Round 5: *...**..*.*...*.*.*.*...*.***..*..*.*****.*.*****.*.*......*....
Round 6: ...*..**.....*.*..**.*.**...*..**...**..*.*...*.*.*.*...*.***..*
Round 7: *****...***....**...*..*.*..*......*..**.....*.*..**.*.**...*..*
Round 8: *.*.*.*.**.....*.*.*...**.*...*******...***....**...*..*.*..*...
Round 9: ***.*.***...**.*.****.....**.*..*.*.*.*.**.....*.*.*...**.*...**
Round 10: *.*..*.*.**.*..*.**.***.**.*...****.*.***...**.*.****.....**.*..
Round 11: ..******......*..******....*....*.*..*.*.**.*..*.**.***.**.*...*
Round 12: *..***....*...*.*.*.***...****....******......*..******....*....
Round 13: **..*....*..******...*........*.*..***....*...*.*.*.***...****..
Round 14: *.**.*....*.*....**.*...*..**.****..*....*..******...*........*.
Round 15: **.*....*.*.*...*.**.*..*.*.**.**.**.*....*.*....**.*...*..**.**
Round 16: .*..*.*..*..*.**....**..*..*..****.*....*.*.*...*.**.*..*.*.**.*
Output: ..*..**.*.*...*....***..***.**.*...*..*..*.*.*.**.*....*.*.*.**.


printable version
chaos

Weak keys Completeness Effect Man In The Middle Introspection is probably not as valuable as you think
DES How to encode a message in a deck of cards Informational Constraints Impact ionization
Low-temperature plasma ciphertext avalanche plaintext
permutation formal logic avalanche transceiver Cryptology
XOR snow output input
RC5
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Nodes your cousin would have liked:
Nutmeg
Revelation of the Lamb in Four Parts
The ossuary of James
butchering an animal
Thickening Agents For Sauces
Don't tell her she's beautiful
Rhapsody on a Windy Night
I was a father for a few days
Just friends syndrome
How to break a coconut
Patrick Stewart
True love
Rite of Betrothal
New Writeups
jjen
Sorrier than I ever thought I would be(personal)
locke baron
Moskva class antisubmarine cruiser(thing)
Wuukiee
May 15, 2008(idea)
locke baron
Kuznetsov class aircraft carrier(thing)
_lesra
for abby(thing)
Adaptive Child
Annie's garden salsa(recipe)
Simulacron3
Zig-Zag(thing)
Ouzo
Special Grilled Cheese(fiction)
Noung
Tiananmen Square Massacre(idea)
aneurin
Lord St Clair(person)
artman2003
Assholes and Douchebags: A Comparison(person)
locke baron
Tyan Thunder K8WE(thing)
locke baron
Udaloy class destroyer(thing)
Scaevola
Same-sex marriage(idea)
SteveMurrayFromNZ
British Standard Handful(idea)
Everything 2 is brought to you by the letter C and The Everything Development Company