remove unnecessary tests, simplify read_ciphertext() return value