sbtools: add brute force option for sb1 in sbtoelf
commitb05b762ed45c6c8967fce098c598ec1a6ed7a533
authorAmaury Pouly <amaury.pouly@gmail.com>
Sat, 16 Feb 2013 19:47:07 +0000 (16 20:47 +0100)
committerAmaury Pouly <amaury.pouly@gmail.com>
Sat, 16 Feb 2013 19:49:07 +0000 (16 20:49 +0100)
treeca704d48a3ac5acd8097d8485208f2f328766650
parent4db4985f21bd8f36533f8e71db916e6d3d5d2249
sbtools: add brute force option for sb1 in sbtoelf

After some reverse engineering, it appears that the keys of the
sb1 format are very weak: the 128 bytes are generated from the
laserfuse words 4,5 and 6 but in a weird manner: 4 and 5 are
simply ORed and 6 is only half used (somehow), making it "only" a
48 bit word to find.

Change-Id: I40702e19d0924ef51c01894efce3cb65bd664456
utils/imxtools/sbtools/crypto.h
utils/imxtools/sbtools/misc.c
utils/imxtools/sbtools/sb1.c
utils/imxtools/sbtools/sb1.h
utils/imxtools/sbtools/sbtoelf.c
utils/imxtools/sbtools/xorcrypt.c