boss protocol from a gem. better decryption error handling