remove key.c and cryptool

This commit is contained in:
VincentWei
2018-01-16 18:03:07 +08:00
parent db06a81773
commit 62a1473aad
6 changed files with 26 additions and 28 deletions
+12 -12
View File
@@ -276,7 +276,7 @@ enable_video_custom="no"
dnl settings for license management
build_productid="no"
build_splash="yes"
build_screensaver="yes"
build_screensaver="no"
AC_ARG_ENABLE(debug,
[ --enable-debug build with debugging messages <default=no>],
@@ -351,7 +351,7 @@ AC_ARG_ENABLE(splash,
build_splash=$enableval)
AC_ARG_ENABLE(screensaver,
[ --enable-screensaver enable screensaver <default=yes>],
[ --enable-screensaver enable screensaver <default=no>],
build_screensaver=$enableval)
AC_ARG_ENABLE(flatlf,
@@ -1512,16 +1512,16 @@ case "$with_osname" in
;;
esac
AC_ARG_WITH(licensepicture,
[ --with-licensepicture=minigui/mdolphin/hybridos])
case "$with_licensepicture" in
minigui|mdolphin|hybridos)
LICENSE_PICTURE=$with_licensepicture
;;
*)
LICENSE_PICTURE=minigui
;;
esac
dnl AC_ARG_WITH(licensepicture,
dnl [ --with-licensepicture=minigui/mdolphin/hybridos])
dnl case "$with_licensepicture" in
dnl minigui|mdolphin|hybridos)
dnl LICENSE_PICTURE=$with_licensepicture
dnl ;;
dnl *)
dnl LICENSE_PICTURE=minigui
dnl ;;
dnl esac
AC_ARG_WITH(targetname,
[ --with-targetname=unknown/customer/fmsoft/mstudio/stb810/vfanvil/vxi386/qvfb/fbcon/mx21/monaco/c33l05/bfin/vxppc/
+3 -1
View File
@@ -394,7 +394,9 @@ char *LICENSE_ENCRYPTED_CONST_STRING(unsigned char *src, int len){
defined(_MG_ENABLE_SCREENSAVER) || \
defined(_MG_ENABLE_WATERMARK)
#define ENCRYPTED
/* disable cryptool */
#undef ENCRYPTED
#ifdef ENCRYPTED
# include "../sysres/license/c_files/key.c"
#endif
-1
View File
@@ -4,5 +4,4 @@ EXTRA_DIST= \
02_feiman.dat.c \
03_progressbar.dat.c \
04_progressbar-bk.dat.c \
key.c \
_splash_inner_res.c
-4
View File
@@ -1,4 +0,0 @@
MG_LOCAL unsigned char splash_crypto_key[16] = {
0x48,0xc6,0x98,0x82,0x5c,0x77,0x35,0x58,0x6f,0xc7,0x00,0x8d,0x3a,0x5b,0xea,0xc9
};
Binary file not shown.
+11 -10
View File
@@ -17,11 +17,11 @@ fi
#RC4KEY=`echo -n $RANDOM | md5sum | awk '{print $1}'`
#RC4KEY=`awk 'BEGIN {srand();for (i=1;i<=16;i++) printf("%02x",int(256*rand()))}'`
RC4KEY=`./genkey.sh | awk '{print $1}'`
echo "KEY: $RC4KEY"
echo
#RC4KEY=`./genkey.sh | awk '{print $1}'`
#echo "KEY: $RC4KEY"
#echo
TMPRC4KEY=`echo -n $RC4KEY | awk '{for(i=1;i<=32;i+=2) {print "0x"substr($1,i,2)}}'`
#TMPRC4KEY=`echo -n $RC4KEY | awk '{for(i=1;i<=32;i+=2) {print "0x"substr($1,i,2)}}'`
#echo $TMPRC4KEY
#
@@ -37,7 +37,8 @@ for src in $LIST; do
dst=$DAT_DIR/$dst
echo "$src --> $dst"
$CRYPTOOL -e $src $dst $RC4KEY
# $CRYPTOOL -e $src $dst $RC4KEY
cp $src $dst
done
cd $OLDPWD
@@ -49,12 +50,12 @@ cd $OLDPWD
mkdir $C_DIR > /dev/null 2>&1
# key.c
CRC4KEY=`echo -n $TMPRC4KEY | sed "s/ /,/g"`
#CRC4KEY=`echo -n $TMPRC4KEY | sed "s/ /,/g"`
#echo $CRC4KEY
echo "MG_LOCAL unsigned char splash_crypto_key[16] = {" > $C_DIR/key.c
echo " "$CRC4KEY >> $C_DIR/key.c
echo "};" >> $C_DIR/key.c
echo "" >> $C_DIR/key.c
#echo "MG_LOCAL unsigned char splash_crypto_key[16] = {" > $C_DIR/key.c
#echo " "$CRC4KEY >> $C_DIR/key.c
#echo "};" >> $C_DIR/key.c
#echo "" >> $C_DIR/key.c
cd $DAT_DIR; find . -name \*.dat | sed "s/^\.\/*//g" | sort > ../res.lst; cd ..