00-crypt.sh: fix undefined function, s/err_msg/bad_msg/

Thanks to Thomas Bettler for reporting