encrypt_delay
int encrypt_delay(void);
if(!startslave_called && (!encrypt_delay() || timeout > time(NULL))){
while (encrypt_delay())