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

Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsSérgio Sacani
 
THE ROLE OF BIOTECHNOLOGY IN THE ECONOMIC UPLIFT.pptx
THE ROLE OF BIOTECHNOLOGY IN THE ECONOMIC UPLIFT.pptxTHE ROLE OF BIOTECHNOLOGY IN THE ECONOMIC UPLIFT.pptx
THE ROLE OF BIOTECHNOLOGY IN THE ECONOMIC UPLIFT.pptxANSARKHAN96
 
POGONATUM : morphology, anatomy, reproduction etc.
POGONATUM : morphology, anatomy, reproduction etc.POGONATUM : morphology, anatomy, reproduction etc.
POGONATUM : morphology, anatomy, reproduction etc.Cherry
 
GBSN - Microbiology (Unit 3)Defense Mechanism of the body
GBSN - Microbiology (Unit 3)Defense Mechanism of the body GBSN - Microbiology (Unit 3)Defense Mechanism of the body
GBSN - Microbiology (Unit 3)Defense Mechanism of the body Areesha Ahmad
 
The Mariana Trench remarkable geological features on Earth.pptx
The Mariana Trench remarkable geological features on Earth.pptxThe Mariana Trench remarkable geological features on Earth.pptx
The Mariana Trench remarkable geological features on Earth.pptxseri bangash
 
Genetics and epigenetics of ADHD and comorbid conditions
Genetics and epigenetics of ADHD and comorbid conditionsGenetics and epigenetics of ADHD and comorbid conditions
Genetics and epigenetics of ADHD and comorbid conditionsbassianu17
 
Phenolics: types, biosynthesis and functions.
Phenolics: types, biosynthesis and functions.Phenolics: types, biosynthesis and functions.
Phenolics: types, biosynthesis and functions.Cherry
 
FAIRSpectra - Enabling the FAIRification of Analytical Science
FAIRSpectra - Enabling the FAIRification of Analytical ScienceFAIRSpectra - Enabling the FAIRification of Analytical Science
FAIRSpectra - Enabling the FAIRification of Analytical ScienceAlex Henderson
 
Genome sequencing,shotgun sequencing.pptx
Genome sequencing,shotgun sequencing.pptxGenome sequencing,shotgun sequencing.pptx
Genome sequencing,shotgun sequencing.pptxCherry
 
Kanchipuram Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Kanchipuram Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsKanchipuram Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Kanchipuram Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsDeepika Singh
 
Use of mutants in understanding seedling development.pptx
Use of mutants in understanding seedling development.pptxUse of mutants in understanding seedling development.pptx
Use of mutants in understanding seedling development.pptxRenuJangid3
 
Cot curve, melting temperature, unique and repetitive DNA
Cot curve, melting temperature, unique and repetitive DNACot curve, melting temperature, unique and repetitive DNA
Cot curve, melting temperature, unique and repetitive DNACherry
 
Factory Acceptance Test( FAT).pptx .
Factory Acceptance Test( FAT).pptx       .Factory Acceptance Test( FAT).pptx       .
Factory Acceptance Test( FAT).pptx .Poonam Aher Patil
 
FS P2 COMBO MSTA LAST PUSH past exam papers.
FS P2 COMBO MSTA LAST PUSH past exam papers.FS P2 COMBO MSTA LAST PUSH past exam papers.
FS P2 COMBO MSTA LAST PUSH past exam papers.takadzanijustinmaime
 
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...Monika Rani
 
Dr. E. Muralinath_ Blood indices_clinical aspects
Dr. E. Muralinath_ Blood indices_clinical  aspectsDr. E. Muralinath_ Blood indices_clinical  aspects
Dr. E. Muralinath_ Blood indices_clinical aspectsmuralinath2
 
LUNULARIA -features, morphology, anatomy ,reproduction etc.
LUNULARIA -features, morphology, anatomy ,reproduction etc.LUNULARIA -features, morphology, anatomy ,reproduction etc.
LUNULARIA -features, morphology, anatomy ,reproduction etc.Cherry
 
(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...
(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...
(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...Scintica Instrumentation
 
Climate Change Impacts on Terrestrial and Aquatic Ecosystems.pptx
Climate Change Impacts on Terrestrial and Aquatic Ecosystems.pptxClimate Change Impacts on Terrestrial and Aquatic Ecosystems.pptx
Climate Change Impacts on Terrestrial and Aquatic Ecosystems.pptxDiariAli
 
Gwalior ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Gwalior ESCORT SERVICE❤CALL GIRL
Gwalior ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Gwalior ESCORT SERVICE❤CALL GIRLGwalior ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Gwalior ESCORT SERVICE❤CALL GIRL
Gwalior ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Gwalior ESCORT SERVICE❤CALL GIRLkantirani197
 

Recently uploaded (20)

Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
 
THE ROLE OF BIOTECHNOLOGY IN THE ECONOMIC UPLIFT.pptx
THE ROLE OF BIOTECHNOLOGY IN THE ECONOMIC UPLIFT.pptxTHE ROLE OF BIOTECHNOLOGY IN THE ECONOMIC UPLIFT.pptx
THE ROLE OF BIOTECHNOLOGY IN THE ECONOMIC UPLIFT.pptx
 
POGONATUM : morphology, anatomy, reproduction etc.
POGONATUM : morphology, anatomy, reproduction etc.POGONATUM : morphology, anatomy, reproduction etc.
POGONATUM : morphology, anatomy, reproduction etc.
 
GBSN - Microbiology (Unit 3)Defense Mechanism of the body
GBSN - Microbiology (Unit 3)Defense Mechanism of the body GBSN - Microbiology (Unit 3)Defense Mechanism of the body
GBSN - Microbiology (Unit 3)Defense Mechanism of the body
 
The Mariana Trench remarkable geological features on Earth.pptx
The Mariana Trench remarkable geological features on Earth.pptxThe Mariana Trench remarkable geological features on Earth.pptx
The Mariana Trench remarkable geological features on Earth.pptx
 
Genetics and epigenetics of ADHD and comorbid conditions
Genetics and epigenetics of ADHD and comorbid conditionsGenetics and epigenetics of ADHD and comorbid conditions
Genetics and epigenetics of ADHD and comorbid conditions
 
Phenolics: types, biosynthesis and functions.
Phenolics: types, biosynthesis and functions.Phenolics: types, biosynthesis and functions.
Phenolics: types, biosynthesis and functions.
 
FAIRSpectra - Enabling the FAIRification of Analytical Science
FAIRSpectra - Enabling the FAIRification of Analytical ScienceFAIRSpectra - Enabling the FAIRification of Analytical Science
FAIRSpectra - Enabling the FAIRification of Analytical Science
 
Genome sequencing,shotgun sequencing.pptx
Genome sequencing,shotgun sequencing.pptxGenome sequencing,shotgun sequencing.pptx
Genome sequencing,shotgun sequencing.pptx
 
Kanchipuram Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Kanchipuram Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsKanchipuram Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Kanchipuram Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
 
Use of mutants in understanding seedling development.pptx
Use of mutants in understanding seedling development.pptxUse of mutants in understanding seedling development.pptx
Use of mutants in understanding seedling development.pptx
 
Cot curve, melting temperature, unique and repetitive DNA
Cot curve, melting temperature, unique and repetitive DNACot curve, melting temperature, unique and repetitive DNA
Cot curve, melting temperature, unique and repetitive DNA
 
Factory Acceptance Test( FAT).pptx .
Factory Acceptance Test( FAT).pptx       .Factory Acceptance Test( FAT).pptx       .
Factory Acceptance Test( FAT).pptx .
 
FS P2 COMBO MSTA LAST PUSH past exam papers.
FS P2 COMBO MSTA LAST PUSH past exam papers.FS P2 COMBO MSTA LAST PUSH past exam papers.
FS P2 COMBO MSTA LAST PUSH past exam papers.
 
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...
 
Dr. E. Muralinath_ Blood indices_clinical aspects
Dr. E. Muralinath_ Blood indices_clinical  aspectsDr. E. Muralinath_ Blood indices_clinical  aspects
Dr. E. Muralinath_ Blood indices_clinical aspects
 
LUNULARIA -features, morphology, anatomy ,reproduction etc.
LUNULARIA -features, morphology, anatomy ,reproduction etc.LUNULARIA -features, morphology, anatomy ,reproduction etc.
LUNULARIA -features, morphology, anatomy ,reproduction etc.
 
(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...
(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...
(May 9, 2024) Enhanced Ultrafast Vector Flow Imaging (VFI) Using Multi-Angle ...
 
Climate Change Impacts on Terrestrial and Aquatic Ecosystems.pptx
Climate Change Impacts on Terrestrial and Aquatic Ecosystems.pptxClimate Change Impacts on Terrestrial and Aquatic Ecosystems.pptx
Climate Change Impacts on Terrestrial and Aquatic Ecosystems.pptx
 
Gwalior ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Gwalior ESCORT SERVICE❤CALL GIRL
Gwalior ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Gwalior ESCORT SERVICE❤CALL GIRLGwalior ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Gwalior ESCORT SERVICE❤CALL GIRL
Gwalior ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Gwalior ESCORT SERVICE❤CALL GIRL
 

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