update cipher.c