xref: /dragonfly/lib/libcrypt/crypt-xsi.c (revision 63e03116)
1 
2 #include <sys/types.h>
3 #include <sys/param.h>
4 #include <stdlib.h>
5 #include <unistd.h>
6 
7 #include "local_xsi.h"
8 
9 /*
10  * "setkey" routine (for backwards compatibility)
11  */
12 int
13 setkey(const char *key)
14 {
15 	return __crypt_setkey(key);
16 }
17 
18 /*
19  * "encrypt" routine (for backwards compatibility)
20  */
21 int
22 encrypt(char *block, int flag)
23 {
24 	return __crypt_encrypt(block, flag);
25 }
26