Ensure that both the MD and key have been initialised before attempting to