Hi Marek, Yep, it worked! Thank you so, so much. You've helped me, well, tremendously -- I've been working on connecting to a .NET web service from PHP and the security exchange requires that algorithm at some point. Not knowing what the algorithm was supposed to return created too much uncertainty in our debugging. Thanks to you, we have one fewer headache.
You don't by chance know of a PHP implementation that can connect to a .Net service protected with WSSecurity? Thanks so much, once again! Sergei On Fri, Apr 12, 2013 at 09:10:45PM +0200, marek.marc...@malkom.pl wrote: > Hello, > > In your code in main() function change line: > sha=EVP_sha(); > to: > sha=EVP_sha1(); > and lines: > char *label = "1234567890"; > int label_len = 10; > to: > char *label = "1234567890xyz"; > int label_len = 13; > > In OpenSSL code "label" is equal "label+seed" in main code. > > Best regards, > -- > Marek Marcola <marek.marc...@malkom.pl> > > > owner-openssl-us...@openssl.org wrote on 04/12/2013 06:36:49 PM: > > > Sergei Gerasenko <ser...@publicschoolworks.com> > > Sent by: owner-openssl-us...@openssl.org > > > > 04/12/2013 08:14 PM > > > > Please respond to > > openssl-users@openssl.org > > > > To > > > > openssl-users@openssl.org, > > > > cc > > > > Subject > > > > Re: RFC 2246 > > > > But... your results are the same as those of tls_prf_sha1_md5 which I > took from the code > > of wpa_supplicant (sha1-tlsprf.c) > > > > So which result is right? :) > > > > On Fri, Apr 12, 2013 at 04:04:20PM +0200, marek.marc...@malkom.pl wrote: > > > Hello, > > > > > > Output from attached code: > > > admin# ./mcl_tls1_PRF > > > 0x8b 0x13 0xc7 0x58 0xc3 0x4f 0x99 0x3a > > > 0x18 0x7d 0x29 0x45 0xed 0x5b 0x69 0x1d > > > > > > Best Regards, > > > -- > > > Marek Marcola <marek.marc...@malkom.pl> > > > > > > > > > > > > owner-openssl-us...@openssl.org wrote on 04/11/2013 09:48:51 PM: > > > > > > > Sergei Gerasenko <ser...@publicschoolworks.com> > > > > Sent by: owner-openssl-us...@openssl.org > > > > > > > > 04/12/2013 11:57 AM > > > > > > > > Please respond to > > > > openssl-users@openssl.org > > > > > > > > To > > > > > > > > openssl-users@openssl.org, > > > > > > > > cc > > > > > > > > Subject > > > > > > > > RFC 2246 > > > > > > > > Hello, > > > > > > > > Does anybody have sample input and output for the tls1_PRF function > > > > which is described in RFC 2246? I've used several implementations of > it > > > > including the one from openSSL and I'm not sure if what I'm getting > is > > > right > > > > -- and all of them return something different. > > > > > > > > Thanks! > > > > > ______________________________________________________________________ > > > > OpenSSL Project > http://www.openssl.org > > > > User Support Mailing List openssl-users@openssl.org > > > > Automated List Manager majord...@openssl.org > > > > ______________________________________________________________________ > > OpenSSL Project http://www.openssl.org > > User Support Mailing List openssl-users@openssl.org > > Automated List Manager majord...@openssl.org > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List openssl-users@openssl.org > Automated List Manager majord...@openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org