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)
commit3a721700768d74014d955e727f41ccfabaf757a1
treea4bdcd567af4914cb5b94a5ae695bdb2ca64fd98
parentd3fe6a9df6b599c980a14bc749bd00d303930eeb
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]
Makefile
src/nec-enc.c [new file with mode: 0644]