Ben Bacarisse wrote:
> cbc_crypt is not standard C, so there is no way I can know what
> function you are talking about.
http://linux.die.net/man/3/cbc_crypt
Questions about how to use it are
> better off in a group where people will all be talking about the same
> function. You probably want comp.unix.programmer.
>> Now this 3rd parameter
>> confuses me. It says multiples of 8 must exist. Parameter 1 and 2
>> should each be 8 bytes. How does one make sure that strlen always
>> reports an unsigned type of a number that is a multiple of 8?
>
> This is, in a way, a C question but strlen does not come into it. If
> a function says that the data length must be a multiple of 8 all it
> means is that it's up to you to ensure that that's true. It just
> means that valid arguments are 0, 8, 16, 24... and so on. Of course,
> you also have to ensure that there actually are that many bytes
> available, so your data array must be at least that many bytes in
> size (it can be larger of course).
>
>> Isn't this what this
>> function is wanting? Is a size_t just and unsigned int?
>
> No, size_t is some unsigned integer type, not necessarily unsigned
> int.
I don't know what you mean by the above types comment.
Bill