Method SSL.Cipher.compute_key_share_secret()
- Method
compute_key_share_secret
string(8bit)|zerocompute_key_share_secret(intgroup,Gmp.mpz|string(8bit)secret,string(8bit)peer_key)- Description
RFC 8446 4.2.8: Compute the ECDHE shared secret from our ephemeral
secret(as returned by generate_key_share()) and the peer's encoded key share.- Returns
The raw shared secret (the X-coordinate of the shared point), or
0(zero) ifpeer_keydoesn't decode to a valid point ongroup's curve.