On Wed, 2 May 2012 21:41:24 -0400, "Bill Cunningham"

<(E-Mail Removed)> wrote:

>Bill Cunningham wrote:

>> the function ?_bcrypt from the posix library has a parameter that

>> accepts in values of eights these variables are know as key and data

>> and they are both char *. I can think of course of a big iterating

>> function that can use for and use it to iterate values of eight but I

>> would like to have a simpler way. I know that this doesn't work

>>

>> char key[2*8]="The is key to crypt by\n";

>>

>> The function only accepts bytes in multiples of 8. This function

>> can be found at man cbc_crypt. For the length parameter I use sizeof

>> data. What about-

>>

>> int i=8;

>> for (;i<sizeof data;i(i*2)++)

>>

>> Of course I could always type my data and key and manually

>> iterate. Can something like this be done?

>>

>> cbc_encrypt(work with multiples of 8's,...) ?

>>

>>

>> B

>

> I got it I'll work on something.
I don't know what you think you have but

Your first paragraph doesn't make any sense. You talk of a

single parameter and then multiple variables. I also don't know what

a "value of eight" means when referring to char*. What do you mean by

iterating function. Just for the record, key must be a string of

exactly eight bytes and data must be a string that is a multiple of 8

bytes.

Your array definition contains a constraint violation.

Your for loop contains at least one syntax error. You would be

better to use strlen(data) instead of sizeof(data) since data is

actually a pointer and sizeof will usually be 4 (or

.

Since you have not yet said what you want to do, and I'm sure it

will change in the next message as you hop around from one random

subject to the another, we have no idea if it can be done or how to do

it.

--

Remove del for email