Patch for AES256 encryption

This commit is contained in:
Tad 2018-01-01 14:49:15 -05:00
parent d6148bb4df
commit a350cd92f1
3 changed files with 67 additions and 12 deletions

View file

@ -65,7 +65,7 @@ enableZram() {
}
export -f enableZram;
enabledForcedEncryption() {
enableForcedEncryption() {
cd $base$1;
if [[ $1 != *"mako"* ]]; then #Forced encryption seems to prevent some devices from booting
sed -i 's|encryptable=/|forceencrypt=/|' fstab.* root/fstab.* rootdir/fstab.* rootdir/etc/fstab.* &>/dev/null || true;
@ -73,7 +73,15 @@ enabledForcedEncryption() {
fi;
cd $base;
}
export -f enabledForcedEncryption;
export -f enableForcedEncryption;
enableStrongEncryption() {
cd $base$1;
echo "CONFIG_STRONG_ENCRYPTION := true" >> BoardConfig.mk;
echo "Enabled AES-256 encryption for $1";
cd $base;
}
export -f enableStrongEncryption;
hardenDefconfig() {
cd $base$1;