Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Encryption: TCB (Tweaked CodeBook) algorithm - what is it?

Can someone please provide a description of TCB algorithm?

like image 488
Vladislav Rastrusny Avatar asked Feb 15 '26 07:02

Vladislav Rastrusny


1 Answers

My cryptographic skills are a little bit rusty - but IMHO, Tweaked Codebook = Tweakable Block Cipher.

It's basically ECB with a Tweak, that "patches" ECB's biggests flaws: identical plaintext blocks result in identical ciphertext (exposing your ciphertext to malicious substitution and showing data patterns).

With a plaintext message P, cut in n-bits blocks X1, X2, X3... Xi... Xn

  1. Xi (XOR) Tweak(i) -> CC
  2. Encrypt_function(CC) -> Ci

Depending on your implementation, your Tweak is generated using a function of your choice (taking your block number as a parameter). A very simple (unsecure?) one could be:

  • Tweak(i) = i

I'm not 100% OK with my answer; at least that's what I remember and that's what I get when looking at an extract of IEEE 1619-2007. I'd really like to read more on this!

like image 126
Brian Clozel Avatar answered Feb 19 '26 12:02

Brian Clozel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!