Skip to content

A proof-of-concept implementation for ''A New Code-based Cryptosystem (CBCrypto '20)" and ciphertext-only attack on it.

Notifications You must be signed in to change notification settings

Yongwoo-Lee-ccl/crypt_ikkr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Cryptanalysis of ''A New Code-based Cryptosystem (CBCrypto '20)''

A proof-of-concept implementation for ''A New Code-based Cryptosystem (CBCrypto '20)" and ciphertext-only attack on it.

The code is written for SageMath 9.0.

USAGE:


sage: load('ikk_simulation.py')
sage: n = 1024; k = 524; R = GF(2)
sage: pk, sk = key_gen(n, k)
sage: u = random_vector(R, k)
sage: ct = enc(pk, u)
sage: dec(sk, ct) == u
True
sage: sln1, sln2 = attack(pk, ct)
sage: vector(sln1) == u
True

About

A proof-of-concept implementation for ''A New Code-based Cryptosystem (CBCrypto '20)" and ciphertext-only attack on it.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages