Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Upcoming SlideShare
PET NARRATOR
Next
Download to read offline and view in fullscreen.

0

Share

Download to read offline

Zcipher Algorithm

Download to read offline

Related Audiobooks

Free with a 30 day trial from Scribd

See all
  • Be the first to like this

Zcipher Algorithm

  1. 1. Zcipher Algorithm Ilya O. Levin rump session @ ASIACRYPT 2007
  2. 2. Zcipher: A History  Designed about 6 years ago as a side joke  Surprisingly was “proprietarized” and covered by NDA (recently lifted)  In Nov 2007 put in public domain as a toy cipher http://www.literatecode.com/zcipher
  3. 3. Zcipher: Profile  Simple 64-bit block cipher with 128-bit key  Easy to understand  Good to tease your students with or to kill another boring lunchtime http://www.literatecode.com/zcipher
  4. 4. Zcipher: Encryption void encr(uint32_t *k) { uint32_t t, i = ROUNDS, x = k[0], y = k[1], v1 = k[2], v2 = k[3], v3 = k[4], v4 = k[5]; while (i-->0) { t = x * 0x48C27395; x = y + C1 + t; y = t; v2 += C0; v4 = R(v4, 4); x = R(x + v1, 23) + v2; y = R(y - v3, 11) + v4; } k[0] = x ^ v3; k[1] = y ^ v1; } /* encr */ http://www.literatecode.com/zcipher
  5. 5. Zcipher: Key Schedule f(a, b, r, C)  ( ((a – b) + C)<<< 19 + b )<<< r C0 = 9E3779B9hex C1 = E2E4C7C5hex C2 = 16C7D03Bhex C3 = 3A11584Fhex repeat 4 times { v1:= f (v2, v1, 11, C0) v2:= f (v3, v2, 9, C1) v3:= f (v4, v3, 7, C2) v4:= f (v1, v4, 10, C3) } http://www.literatecode.com/zcipher
  6. 6. Zcipher: Conclusion More details are available at http://www.literatecode.com/zcipher Thank you

Views

Total views

365

On Slideshare

0

From embeds

0

Number of embeds

2

Actions

Downloads

2

Shares

0

Comments

0

Likes

0

×