Hello,

Can anybody give me sample input and output for the PRF function from RFC2246? The one defined as:

PRF(secret, label, seed) = P_MD5(S1, label + seed) XOR P_SHA-1(S2, label + seed)

Trying to connect to a .Net web service from PHP and this algorithm is used for a deriving a key based on entropy from both parties.

Does anybody have an implementation of it in PHP?

Thanks!