It uses it as a PRF, but that's not my problem. I have a problem with RSA signing on DH key exchange. It says to make a 36-byte long MD5+SHA1 byte string, encrypt that with the private key, and send it as a 'PKCS#1 block type 1'.
With TLS 1.2 I just used the RSASS::Signer class template<http://www.cryptopp.com/docs/ref/struct_r_s_a_s_s.html>with the corresponding hash class, but I can't pass a MD5+SHA1 to it, since such a class doesn't exist so I thought of writing a wrapper class for it, and pass that. The routine uses PKCS_DigestDecoration<http://www.cryptopp.com/docs/ref/class_p_k_c_s___digest_decoration.html>template on the way, so I need a specialized variant of it. Looking at pkcspad.cpp <http://www.cryptopp.com/docs/ref/pkcspad_8cpp_source.html> it looks like a BER-encoded ASN.1, but I don't know what it's supposed to contain there. -- -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. More information about Crypto++ and this group is available at http://www.cryptopp.com. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
