From 0bb18cea72190c0f381291500db35733abfe16f6 Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Sat, 6 Aug 2011 01:20:36 +0200 Subject: [PATCH] Support unencrypted c0d --- firmware/release-all | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/firmware/release-all b/firmware/release-all index ce26204..4c5a6df 100755 --- a/firmware/release-all +++ b/firmware/release-all @@ -61,7 +61,7 @@ cp ../tools/image/lcd/*.lcd $TARG/files/ cp ../tools/image/lcd/i42.lcd $TARG/files/nick.lcd echo "###" -echo "### Gathering/crypting loadables" +echo "### Gathering loadables" echo "###" # XXX: add crypto stuff (cd l0dable && make) @@ -69,6 +69,12 @@ mv l0dable/*.c0d $TARG/files/ mv l0dable/*.int $TARG/files/ mv l0dable/*.nik $TARG/files/ +if grep -q 'define ENCRYPT_L0DABLE' SECRETS ; then + +echo "###" +echo "### Crypting loadables" +echo "###" + skey=`./getkey.pl l0dable_sign` ekey=`./getkey.pl l0dable_crypt` @@ -88,6 +94,7 @@ for a in $TARG/files/*.c0d $TARG/files/*.int $TARG/files/*.nik ; do ../tools/crypto/xxtea -s -k $skey $a done +fi echo "###" echo "### Done. Yay!"