•1 min read•from InfoQ
Ink & Switch Introduces Bijou64: Canonical Variable-Length Integer Encoding for Safe Parsing


Ink & Switch published bijou64, a variable-length integer encoding where every number has exactly one byte representation, closing the canonicality bug class behind attacks on PKCS#1, JWT libraries, and Bitcoin. The design also decodes two to ten times faster than LEB128. Community ports to Elixir, Go, Perl, and Java followed, while HN commenters debated SIMD performance and residual range checks.
By Steef-Jan WiggersWant to read more?
Check out the full article on the original site
Tagged with
#Bijou64
#Variable-Length Integer Encoding
#Integer Encoding
#Canonicality
#PKCS#1
#JWT
#Bitcoin
#LEB128
#Decoding Speed
#SIMD
#Range Checks
#Elixir
#Go
#Perl
#Java
#Byte Representation
#Security
#Parsing
#Canonical Bug Class
#Data Encoding