mkfwimage: Add image type definition for WA images
authorTobias Schramm <tobleminer@gmail.com>
Wed, 24 Jan 2018 00:38:14 +0000 (01:38 +0100)
committerMathias Kresin <dev@kresin.me>
Sun, 7 Oct 2018 08:46:20 +0000 (10:46 +0200)
commitc21de3340fa53c44f361583fdeae8706423e8501
treef1788046dae362702257330b524f8e6f51a5ed1b
parentd069ec2de572c761113093bfa7398b43a10b1c6c
mkfwimage: Add image type definition for WA images

This patch adds a new type of ubiquiti image, the WA image. First seen
on the NanoStation AC loco the generic name implies that we will see
this type of image on more ubiquiti devices thus it makes sense to
implement it in mkfwimage.

The main difference is that WA images are signed. The "END" header has
been replaced by a "ENDS" header followed by a 2048 bit RSA signature.
This signature is not being generated by mkfwimage and filled with 0x00.

Signed-off-by: Tobias Schramm <tobleminer@gmail.com>
src/fw.h
src/mkfwimage.c