function question



I have this tested code and I am wondering if it is doing what it is
supposed to be doing. Have I made any errors? errno returns 0 and the
response to the shell is 0. Has the char *data parameter of this function
been crypted?

#include <stdio.h>
#include <rpc/des_crypt.h>
#include <errno.h>

int main()
{
char data[8] = "hello";
char vec[8] = "vector";
char key[8] = "encrypt";
int c;
errno = 0;
des_setparity(key);
c = cbc_crypt(key, data, 8, DES_ENCRYPT | DES_SW, vec);
printf("%d\n%d\n", c, errno);
}


.



Relevant Pages