function question
- From: "Bill Cunningham" <nospam@xxxxxxxxxxxxx>
- Date: Thu, 3 May 2012 13:57:41 -0400
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);
}
.
- Follow-Ups:
- Re: function question
- From: Volker Birk
- Re: function question
- From: Paul
- Re: function question
- Prev by Date: Re: Ordering of sem_wait waiters
- Next by Date: Re: function question
- Previous by thread: Re: Ordering of sem_wait waiters
- Next by thread: Re: function question
- Index(es):
Relevant Pages
|