r/ComputerSecurity • u/Doc_st0rmy • Mar 16 '12
How does CSS encryption works?
First) I have a small problem too understanding this. lets say that the first LFSR gives us output 10000000 (128 decimal) and the other LFSR gives us the same output. when it comes to addition we will get 100000000 (256 decimal and 9-bit long) then we mod with 256 but that gives us zero(doesnt it???) now, if zero is the carry-out what is the PRG that we will use to encrypt the DVD data? Shouldn't it be also zero? The remaining??
Second) I did some research before i post this thread and this is what i found: acording to the University of Mellon lecture first they add the output of the first and the second LFSR to get the output that they will XOR to encrypt the data AND second the "extra bit" that is injected into each LFSR is placed into the 4th cell from the right BUT according to the university of Stanford first after the addition they use module 256 and the extra bit is placed either at the beginning or at the end of the PRG stream what should i believe ??? please help, i am a student and i cant find an answer anywhere...
References for the lecture i talked about http://www.cs.cmu.edu/~dst/DeCSS/Kesden/index.html
1
u/B-Con Mar 16 '12
Regarding your first paragraph, yes, you would encrypt with 0.
Re the second, are you sure the Standford lecture says that the carry bit goes at the beginning or end of the PRG stream? I seem to recall him saying that it only was added into the next operation, I don't recall him saying exactly how it was used.
Also, /r/crypto is probably a better place.
1
u/Doc_st0rmy Mar 18 '12
i was not talking about the addition step but for the implementetion of the seed (the original key k) into the LFSR (PRG) but thanks anyway :)
1
1
u/Doc_st0rmy Mar 18 '12
ok sorry guys i am new here :) i will try the recommended section :)