Skip to main content

recipient_agree

Function recipient_agree 

Source
pub fn recipient_agree(
    suite: SecuritySuite,
    recipient_static_private: &[u8],
    ephemeral_public: &[u8],
    algorithm_id: &[u8],
    party_u_info: &[u8],
    party_v_info: &[u8],
) -> Result<Vec<u8>, AgreementError>
Expand description

The recipient side of a One-Pass Diffie-Hellman agreed-key exchange.

The recipient holds a static private key and receives the originator’s ephemeral public key (the key-ciphered-data). It derives the same session key. party_u_info / party_v_info must be identical to the originator’s.