firmware-utils: add nec-enc
authorINAGAKI Hiroshi <musashino.open@gmail.com>
Sat, 16 Mar 2019 04:19:24 +0000 (13:19 +0900)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 6 Apr 2019 17:14:06 +0000 (19:14 +0200)
commitfac27643f057d681ec276828dc4d1ba7159b5680
tree209df79361a403d5e7b3e48516d168317cf76680
parentd80a1c6e2cca46d52870bd6674f3a4466bd7013d
firmware-utils: add nec-enc

nec-enc provides firmware encoding/decoding with model specific key
for NEC devices.

known devices:

  - Aterm WF1200CR
  - Aterm WG1200CR
  - Aterm WG2600HS

usage:

  nec-enc -i infile -o outfile -k key

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
[checkpatch fixes, marked usage as noreturn, added static function,
moved buf* from stack to the global data segment]
tools/firmware-utils/Makefile
tools/firmware-utils/src/nec-enc.c [new file with mode: 0644]