??? 05/28/09 05:17 Read: times |
#165646 - Describe your problem - not how you think of solving it Responding to: ???'s previous message |
Why would you want to encrypt the CRC byte?
Start to describe - with long flowing text - what problem you want to solve, instead of starting to talk about random details here and there. A checksum gives a confidence (of varying quality) that a packet isn't damaged. A signed message gives a confidence (of varying quality) that a packet hasn't been intentionally tampered with. Computing the CRC of the combination of a secret and your packet data and store in the packet would work as a form of signing. But it would be very weak, since the CRC function is not a one-way trap function, so if I may modify any two consecutive bytes inside your packet data, I can change anything in the packet and still produce the same CRC-16. If I get access to four consecutive data bytes, I can use them to fake any CRC-32 result. And the important thing: I can do it in constant time. No need to test 4 billion combinations. Now back to you: Do tell what problem you have - not how you think you should solve it. |
Topic | Author | Date |
UART encryption algorithm | 01/01/70 00:00 | |
Do you really mean "encryption"? | 01/01/70 00:00 | |
Adler-32 alwas an alternative | 01/01/70 00:00 | |
xmodem? | 01/01/70 00:00 | |
Nothing magic | 01/01/70 00:00 | |
Series of mathematical routine. | 01/01/70 00:00 | |
PSX Memory card in example... | 01/01/70 00:00 | |
Just CRC | 01/01/70 00:00 | |
CRC encrypt? | 01/01/70 00:00 | |
Describe your problem - not how you think of solving it | 01/01/70 00:00 | |
why weak? --my problem | 01/01/70 00:00 | |
More on CRC | 01/01/70 00:00 | |
Yes thats it(i missed YOUR POST) | 01/01/70 00:00 | |
Few 16-bit CRC combinations | 01/01/70 00:00 | |
16 combination? | 01/01/70 00:00 | |
Everything on Google | 01/01/70 00:00 | |
You forgot some | 01/01/70 00:00 | |
Most, not all![]() | 01/01/70 00:00 | |
Are you trying to copy an existing protocol? | 01/01/70 00:00 | |
yes Black box | 01/01/70 00:00 | |
You really should have said that in the first place! | 01/01/70 00:00 | |
CRC with in different colors? | 01/01/70 00:00 | |
pls explain | 01/01/70 00:00 |