1
0
Fork 0
forked from len0rd/rockbox

We can tell some mi4 firmwares to use a full filelength plaintext so no need to encrypt them.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10792 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Barry Wardell 2006-08-29 07:58:06 +00:00
parent b4a93b2d50
commit f3d5b51359

View file

@ -59,6 +59,7 @@ fi
case $target in case $target in
e200) e200)
sign="yes" sign="yes"
encrypt="yes"
tea=sansa tea=sansa
;; ;;
h10) h10)
@ -89,15 +90,21 @@ else
tool=$MI4CODE tool=$MI4CODE
fi fi
# Use full file plaintext length if not encrypting
if test -z "$encrypt"; then
buildopt="$buildopt -pall"
fi
# build mi4
# build a 010301 version
#echo "$tool build $input $output.raw" #echo "$tool build $input $output.raw"
$tool build $buildopt $input $output.raw $tool build $buildopt $input $output.raw
# encrypt # encrypt
#echo "$tool encrypt $output.raw $output.encrypt $tea" if test -n "$encrypt"; then
$tool encrypt $output.raw $output.encrypt $tea #echo "$tool encrypt $output.raw $output.encrypt $tea"
$tool encrypt $output.raw $output.encrypt $tea
else
mv $output.raw $output.encrypt
fi
# sign # sign
if test -n "$sign"; then if test -n "$sign"; then
#echo "$tool sign $output.encrypt $output" #echo "$tool sign $output.encrypt $output"