Re: EVP_KDF-SSHKDF man page error?

2022-03-25 Thread Dr Paul Dale
The UTF8 type is a string and if its length is known, it doesn't need to be '\0' terminated.  So passing the address of a char works (it's a char * after all). Thanks for the other fix. Pauli On 26/3/22 10:43 am, Kory Hamzeh wrote: Thanks, Paul. I noticed the type values matched the RFC, but

Re: EVP_KDF-SSHKDF man page error?

2022-03-25 Thread Kory Hamzeh
Thanks, Paul. I noticed the type values matched the RFC, but thought maybe it should be a string if that was the case. I did find another issue: if (EVP_KDF_derive(kctx, out, , params) <= 0) The actual value of ‘outlen’ should be passed, not the address. Kory > On Mar 25, 2022, at 4:01 PM,

Re: EVP_KDF-SSHKDF man page error?

2022-03-25 Thread pauli
It is correct, the KDF is expecting the characters 'A' through 'F' here.  This is what is specified in the RFC: https://datatracker.ietf.org/doc/html/rfc4253#section-7.2 That line of code ought to have cast to (char *) or type defined simply as char, but it is essentially correct. Pauli