crypt3.c added some functions