Encrypts the association MAC key. The encryption takes palce on the server side (aka OP). This is the value passed in the openid.enc_mac_key association response parameter.
@param macKey The MAC key in binary format.
@param consumerPublicKeyBase64 The base 64 encoding of the consumerDiffie-Hellman public key. This is the value passed in the openid.dh_consumer_public association request parameter.
@return The base 64 encoded two's-complementrepresentation of the encrypted mac key: base64(H(btwoc(g ^ (xa * xb) mod p)) XOR MAC)
@throws AssociationException if the lengths of the mac key and digestof Diffie-Hellman shared secred do not match.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.