25 #include <libc/string.h>
28 #ifdef POK_NEEDS_PROTOCOLS_CEASAR
40 uncrypted = (uint8_t*) uncrypted_data;
41 crypted = (uint8_t*) crypted_data;
43 for (tmp = 0 ; tmp < uncrypted_size ; tmp++)
45 crypted[tmp] = (uncrypted[tmp] + 4) % 255;
48 *crypted_size = uncrypted_size;
62 uncrypted = (uint8_t*) uncrypted_data;
63 crypted = (uint8_t*) crypted_data;
65 for (tmp = 0 ; tmp < crypted_size ; tmp++)
67 uncrypted[tmp] = (crypted[tmp] - 4) % 255;
70 *uncrypted_size = crypted_size;