SlideShare a Scribd company logo
1 of 6
Download to read offline
Zcipher Algorithm
Ilya O. Levin
rump session @ ASIACRYPT 2007
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
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
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
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
Zcipher: Conclusion
More details are available at
http://www.literatecode.com/zcipher
Thank you

More Related Content

Viewers also liked

La responsabilità socio-ambientale lungo la filiera dalla chimica al tessile
La responsabilità socio-ambientale lungo la filiera dalla chimica al tessileLa responsabilità socio-ambientale lungo la filiera dalla chimica al tessile
La responsabilità socio-ambientale lungo la filiera dalla chimica al tessileRadiciGroup
 
To Be Glocal 2014 - RadiciGroup Corporate Brochure - English
To Be Glocal 2014 - RadiciGroup Corporate Brochure - EnglishTo Be Glocal 2014 - RadiciGroup Corporate Brochure - English
To Be Glocal 2014 - RadiciGroup Corporate Brochure - EnglishRadiciGroup
 
Social and environmental responsibility in the chemicals and textiles supply ...
Social and environmental responsibility in the chemicals and textiles supply ...Social and environmental responsibility in the chemicals and textiles supply ...
Social and environmental responsibility in the chemicals and textiles supply ...RadiciGroup
 
Digital portfolio
Digital portfolioDigital portfolio
Digital portfoliolex_nicolee
 
Pc agrar-a-prega-az-irodaban-kezdodik3
Pc agrar-a-prega-az-irodaban-kezdodik3Pc agrar-a-prega-az-irodaban-kezdodik3
Pc agrar-a-prega-az-irodaban-kezdodik3Agroinform.com
 
RadiciGroup as a model of Sustainable Chemistry
RadiciGroup as a model of Sustainable ChemistryRadiciGroup as a model of Sustainable Chemistry
RadiciGroup as a model of Sustainable ChemistryRadiciGroup
 
Materiali speciali e approccio progettuale per un design innovativo: un binom...
Materiali speciali e approccio progettuale per un design innovativo: un binom...Materiali speciali e approccio progettuale per un design innovativo: un binom...
Materiali speciali e approccio progettuale per un design innovativo: un binom...RadiciGroup
 
Nieuwe media Hendrik Vanlessen
Nieuwe media Hendrik VanlessenNieuwe media Hendrik Vanlessen
Nieuwe media Hendrik VanlessenHendrikVanlessen
 
La Sperimentazione della Metodologia Product Environmental Footprint per Valo...
La Sperimentazione della Metodologia Product Environmental Footprint per Valo...La Sperimentazione della Metodologia Product Environmental Footprint per Valo...
La Sperimentazione della Metodologia Product Environmental Footprint per Valo...RadiciGroup
 
RadiciGroup Sustainability Report in pills...
RadiciGroup Sustainability Report in pills...RadiciGroup Sustainability Report in pills...
RadiciGroup Sustainability Report in pills...RadiciGroup
 
Vakantie planning voor meester jeroen
Vakantie planning voor meester jeroenVakantie planning voor meester jeroen
Vakantie planning voor meester jeroenjeroengennep
 
White Paper | The Interoperability Executive Customer Council: A Collaboratio...
White Paper | The Interoperability Executive Customer Council: A Collaboratio...White Paper | The Interoperability Executive Customer Council: A Collaboratio...
White Paper | The Interoperability Executive Customer Council: A Collaboratio...The Microsoft Openness Network
 
International Business Management - Lecture No 04
International Business Management - Lecture No 04International Business Management - Lecture No 04
International Business Management - Lecture No 04Khurshid Swati
 
Acp uk research (cred)
Acp uk research (cred)Acp uk research (cred)
Acp uk research (cred)cambridgeharry
 
RadiciGroup for Sustainability Report - Key Elements 06 - Trvale Udržitelný P...
RadiciGroup for Sustainability Report - Key Elements 06 - Trvale Udržitelný P...RadiciGroup for Sustainability Report - Key Elements 06 - Trvale Udržitelný P...
RadiciGroup for Sustainability Report - Key Elements 06 - Trvale Udržitelný P...RadiciGroup
 

Viewers also liked (20)

Valkon eloadas
Valkon eloadasValkon eloadas
Valkon eloadas
 
drwing
drwingdrwing
drwing
 
La responsabilità socio-ambientale lungo la filiera dalla chimica al tessile
La responsabilità socio-ambientale lungo la filiera dalla chimica al tessileLa responsabilità socio-ambientale lungo la filiera dalla chimica al tessile
La responsabilità socio-ambientale lungo la filiera dalla chimica al tessile
 
To Be Glocal 2014 - RadiciGroup Corporate Brochure - English
To Be Glocal 2014 - RadiciGroup Corporate Brochure - EnglishTo Be Glocal 2014 - RadiciGroup Corporate Brochure - English
To Be Glocal 2014 - RadiciGroup Corporate Brochure - English
 
Social and environmental responsibility in the chemicals and textiles supply ...
Social and environmental responsibility in the chemicals and textiles supply ...Social and environmental responsibility in the chemicals and textiles supply ...
Social and environmental responsibility in the chemicals and textiles supply ...
 
5 winahyu
5 winahyu5 winahyu
5 winahyu
 
Digital portfolio
Digital portfolioDigital portfolio
Digital portfolio
 
Pc agrar-a-prega-az-irodaban-kezdodik3
Pc agrar-a-prega-az-irodaban-kezdodik3Pc agrar-a-prega-az-irodaban-kezdodik3
Pc agrar-a-prega-az-irodaban-kezdodik3
 
RadiciGroup as a model of Sustainable Chemistry
RadiciGroup as a model of Sustainable ChemistryRadiciGroup as a model of Sustainable Chemistry
RadiciGroup as a model of Sustainable Chemistry
 
Kecskemét basf 2015
Kecskemét basf 2015Kecskemét basf 2015
Kecskemét basf 2015
 
Materiali speciali e approccio progettuale per un design innovativo: un binom...
Materiali speciali e approccio progettuale per un design innovativo: un binom...Materiali speciali e approccio progettuale per un design innovativo: un binom...
Materiali speciali e approccio progettuale per un design innovativo: un binom...
 
Nieuwe media Hendrik Vanlessen
Nieuwe media Hendrik VanlessenNieuwe media Hendrik Vanlessen
Nieuwe media Hendrik Vanlessen
 
La Sperimentazione della Metodologia Product Environmental Footprint per Valo...
La Sperimentazione della Metodologia Product Environmental Footprint per Valo...La Sperimentazione della Metodologia Product Environmental Footprint per Valo...
La Sperimentazione della Metodologia Product Environmental Footprint per Valo...
 
RadiciGroup Sustainability Report in pills...
RadiciGroup Sustainability Report in pills...RadiciGroup Sustainability Report in pills...
RadiciGroup Sustainability Report in pills...
 
Vakantie planning voor meester jeroen
Vakantie planning voor meester jeroenVakantie planning voor meester jeroen
Vakantie planning voor meester jeroen
 
White Paper | The Interoperability Executive Customer Council: A Collaboratio...
White Paper | The Interoperability Executive Customer Council: A Collaboratio...White Paper | The Interoperability Executive Customer Council: A Collaboratio...
White Paper | The Interoperability Executive Customer Council: A Collaboratio...
 
International Business Management - Lecture No 04
International Business Management - Lecture No 04International Business Management - Lecture No 04
International Business Management - Lecture No 04
 
Acp uk research (cred)
Acp uk research (cred)Acp uk research (cred)
Acp uk research (cred)
 
De challenge
De challengeDe challenge
De challenge
 
RadiciGroup for Sustainability Report - Key Elements 06 - Trvale Udržitelný P...
RadiciGroup for Sustainability Report - Key Elements 06 - Trvale Udržitelný P...RadiciGroup for Sustainability Report - Key Elements 06 - Trvale Udržitelný P...
RadiciGroup for Sustainability Report - Key Elements 06 - Trvale Udržitelný P...
 

Similar to Zcipher Algorithm

what engineers don't know (but probably mathematicians do)
what engineers don't know (but probably mathematicians do)what engineers don't know (but probably mathematicians do)
what engineers don't know (but probably mathematicians do)budi rahardjo
 
Vectorization with LMS: SIMD Intrinsics
Vectorization with LMS: SIMD IntrinsicsVectorization with LMS: SIMD Intrinsics
Vectorization with LMS: SIMD IntrinsicsETH Zurich
 
Introductory Lecture on Cryptography and Information Security
Introductory Lecture on Cryptography and Information SecurityIntroductory Lecture on Cryptography and Information Security
Introductory Lecture on Cryptography and Information SecurityBikramjit Sarkar, Ph.D.
 
12 symmetric key cryptography
12   symmetric key cryptography12   symmetric key cryptography
12 symmetric key cryptographydrewz lin
 
Ch08-CryptoConcepts.ppt
Ch08-CryptoConcepts.pptCh08-CryptoConcepts.ppt
Ch08-CryptoConcepts.pptShounakDas16
 
The Ultimate IDS Smackdown
The Ultimate IDS SmackdownThe Ultimate IDS Smackdown
The Ultimate IDS SmackdownMario Heiderich
 
Overview on Cryptography and Network Security
Overview on Cryptography and Network SecurityOverview on Cryptography and Network Security
Overview on Cryptography and Network SecurityDr. Rupa Ch
 

Similar to Zcipher Algorithm (9)

what engineers don't know (but probably mathematicians do)
what engineers don't know (but probably mathematicians do)what engineers don't know (but probably mathematicians do)
what engineers don't know (but probably mathematicians do)
 
Vectorization with LMS: SIMD Intrinsics
Vectorization with LMS: SIMD IntrinsicsVectorization with LMS: SIMD Intrinsics
Vectorization with LMS: SIMD Intrinsics
 
Introductory Lecture on Cryptography and Information Security
Introductory Lecture on Cryptography and Information SecurityIntroductory Lecture on Cryptography and Information Security
Introductory Lecture on Cryptography and Information Security
 
12 symmetric key cryptography
12   symmetric key cryptography12   symmetric key cryptography
12 symmetric key cryptography
 
Ch08-CryptoConcepts.ppt
Ch08-CryptoConcepts.pptCh08-CryptoConcepts.ppt
Ch08-CryptoConcepts.ppt
 
Intro to Python
Intro to PythonIntro to Python
Intro to Python
 
The Ultimate IDS Smackdown
The Ultimate IDS SmackdownThe Ultimate IDS Smackdown
The Ultimate IDS Smackdown
 
Cryptography Attacks and Applications
Cryptography Attacks and ApplicationsCryptography Attacks and Applications
Cryptography Attacks and Applications
 
Overview on Cryptography and Network Security
Overview on Cryptography and Network SecurityOverview on Cryptography and Network Security
Overview on Cryptography and Network Security
 

Recently uploaded

User Guide: Capricorn FLX™ Weather Station
User Guide: Capricorn FLX™ Weather StationUser Guide: Capricorn FLX™ Weather Station
User Guide: Capricorn FLX™ Weather StationColumbia Weather Systems
 
ECG Graph Monitoring with AD8232 ECG Sensor & Arduino.pptx
ECG Graph Monitoring with AD8232 ECG Sensor & Arduino.pptxECG Graph Monitoring with AD8232 ECG Sensor & Arduino.pptx
ECG Graph Monitoring with AD8232 ECG Sensor & Arduino.pptxmaryFF1
 
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxSTOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxMurugaveni B
 
Pests of Bengal gram_Identification_Dr.UPR.pdf
Pests of Bengal gram_Identification_Dr.UPR.pdfPests of Bengal gram_Identification_Dr.UPR.pdf
Pests of Bengal gram_Identification_Dr.UPR.pdfPirithiRaju
 
Microteaching on terms used in filtration .Pharmaceutical Engineering
Microteaching on terms used in filtration .Pharmaceutical EngineeringMicroteaching on terms used in filtration .Pharmaceutical Engineering
Microteaching on terms used in filtration .Pharmaceutical EngineeringPrajakta Shinde
 
Observational constraints on mergers creating magnetism in massive stars
Observational constraints on mergers creating magnetism in massive starsObservational constraints on mergers creating magnetism in massive stars
Observational constraints on mergers creating magnetism in massive starsSérgio Sacani
 
User Guide: Orion™ Weather Station (Columbia Weather Systems)
User Guide: Orion™ Weather Station (Columbia Weather Systems)User Guide: Orion™ Weather Station (Columbia Weather Systems)
User Guide: Orion™ Weather Station (Columbia Weather Systems)Columbia Weather Systems
 
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdf
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdfPests of Blackgram, greengram, cowpea_Dr.UPR.pdf
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdfPirithiRaju
 
Thermodynamics ,types of system,formulae ,gibbs free energy .pptx
Thermodynamics ,types of system,formulae ,gibbs free energy .pptxThermodynamics ,types of system,formulae ,gibbs free energy .pptx
Thermodynamics ,types of system,formulae ,gibbs free energy .pptxuniversity
 
Pests of soyabean_Binomics_IdentificationDr.UPR.pdf
Pests of soyabean_Binomics_IdentificationDr.UPR.pdfPests of soyabean_Binomics_IdentificationDr.UPR.pdf
Pests of soyabean_Binomics_IdentificationDr.UPR.pdfPirithiRaju
 
Servosystem Theory / Cybernetic Theory by Petrovic
Servosystem Theory / Cybernetic Theory by PetrovicServosystem Theory / Cybernetic Theory by Petrovic
Servosystem Theory / Cybernetic Theory by PetrovicAditi Jain
 
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.PraveenaKalaiselvan1
 
Citronella presentation SlideShare mani upadhyay
Citronella presentation SlideShare mani upadhyayCitronella presentation SlideShare mani upadhyay
Citronella presentation SlideShare mani upadhyayupadhyaymani499
 
FREE NURSING BUNDLE FOR NURSES.PDF by na
FREE NURSING BUNDLE FOR NURSES.PDF by naFREE NURSING BUNDLE FOR NURSES.PDF by na
FREE NURSING BUNDLE FOR NURSES.PDF by naJASISJULIANOELYNV
 
Base editing, prime editing, Cas13 & RNA editing and organelle base editing
Base editing, prime editing, Cas13 & RNA editing and organelle base editingBase editing, prime editing, Cas13 & RNA editing and organelle base editing
Base editing, prime editing, Cas13 & RNA editing and organelle base editingNetHelix
 
OECD bibliometric indicators: Selected highlights, April 2024
OECD bibliometric indicators: Selected highlights, April 2024OECD bibliometric indicators: Selected highlights, April 2024
OECD bibliometric indicators: Selected highlights, April 2024innovationoecd
 
Harmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms PresentationHarmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms Presentationtahreemzahra82
 
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...D. B. S. College Kanpur
 

Recently uploaded (20)

User Guide: Capricorn FLX™ Weather Station
User Guide: Capricorn FLX™ Weather StationUser Guide: Capricorn FLX™ Weather Station
User Guide: Capricorn FLX™ Weather Station
 
Let’s Say Someone Did Drop the Bomb. Then What?
Let’s Say Someone Did Drop the Bomb. Then What?Let’s Say Someone Did Drop the Bomb. Then What?
Let’s Say Someone Did Drop the Bomb. Then What?
 
ECG Graph Monitoring with AD8232 ECG Sensor & Arduino.pptx
ECG Graph Monitoring with AD8232 ECG Sensor & Arduino.pptxECG Graph Monitoring with AD8232 ECG Sensor & Arduino.pptx
ECG Graph Monitoring with AD8232 ECG Sensor & Arduino.pptx
 
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxSTOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
 
Pests of Bengal gram_Identification_Dr.UPR.pdf
Pests of Bengal gram_Identification_Dr.UPR.pdfPests of Bengal gram_Identification_Dr.UPR.pdf
Pests of Bengal gram_Identification_Dr.UPR.pdf
 
Microteaching on terms used in filtration .Pharmaceutical Engineering
Microteaching on terms used in filtration .Pharmaceutical EngineeringMicroteaching on terms used in filtration .Pharmaceutical Engineering
Microteaching on terms used in filtration .Pharmaceutical Engineering
 
Volatile Oils Pharmacognosy And Phytochemistry -I
Volatile Oils Pharmacognosy And Phytochemistry -IVolatile Oils Pharmacognosy And Phytochemistry -I
Volatile Oils Pharmacognosy And Phytochemistry -I
 
Observational constraints on mergers creating magnetism in massive stars
Observational constraints on mergers creating magnetism in massive starsObservational constraints on mergers creating magnetism in massive stars
Observational constraints on mergers creating magnetism in massive stars
 
User Guide: Orion™ Weather Station (Columbia Weather Systems)
User Guide: Orion™ Weather Station (Columbia Weather Systems)User Guide: Orion™ Weather Station (Columbia Weather Systems)
User Guide: Orion™ Weather Station (Columbia Weather Systems)
 
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdf
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdfPests of Blackgram, greengram, cowpea_Dr.UPR.pdf
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdf
 
Thermodynamics ,types of system,formulae ,gibbs free energy .pptx
Thermodynamics ,types of system,formulae ,gibbs free energy .pptxThermodynamics ,types of system,formulae ,gibbs free energy .pptx
Thermodynamics ,types of system,formulae ,gibbs free energy .pptx
 
Pests of soyabean_Binomics_IdentificationDr.UPR.pdf
Pests of soyabean_Binomics_IdentificationDr.UPR.pdfPests of soyabean_Binomics_IdentificationDr.UPR.pdf
Pests of soyabean_Binomics_IdentificationDr.UPR.pdf
 
Servosystem Theory / Cybernetic Theory by Petrovic
Servosystem Theory / Cybernetic Theory by PetrovicServosystem Theory / Cybernetic Theory by Petrovic
Servosystem Theory / Cybernetic Theory by Petrovic
 
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
 
Citronella presentation SlideShare mani upadhyay
Citronella presentation SlideShare mani upadhyayCitronella presentation SlideShare mani upadhyay
Citronella presentation SlideShare mani upadhyay
 
FREE NURSING BUNDLE FOR NURSES.PDF by na
FREE NURSING BUNDLE FOR NURSES.PDF by naFREE NURSING BUNDLE FOR NURSES.PDF by na
FREE NURSING BUNDLE FOR NURSES.PDF by na
 
Base editing, prime editing, Cas13 & RNA editing and organelle base editing
Base editing, prime editing, Cas13 & RNA editing and organelle base editingBase editing, prime editing, Cas13 & RNA editing and organelle base editing
Base editing, prime editing, Cas13 & RNA editing and organelle base editing
 
OECD bibliometric indicators: Selected highlights, April 2024
OECD bibliometric indicators: Selected highlights, April 2024OECD bibliometric indicators: Selected highlights, April 2024
OECD bibliometric indicators: Selected highlights, April 2024
 
Harmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms PresentationHarmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms Presentation
 
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
 

Zcipher Algorithm

  • 1. Zcipher Algorithm Ilya O. Levin rump session @ ASIACRYPT 2007
  • 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. 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. 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. 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. Zcipher: Conclusion More details are available at http://www.literatecode.com/zcipher Thank you