BootEncryption.cpp transferred. error handling in new code needs fixing