evp_pkey_derive()

 
Given structure references to a EVP PKEY structure with a secret key and a peer public key, derive a shared secret key and return the text in "key".
Syntax
evp_pkey_derive( privkey var, peer var, key var )
Returns 1 on success, 0 on failure
  • privkey = EVP PKEY structure reference
  • peer = EVP PKEY structure reference
  • key = Returned text of shared secret key
User Annotations: evp_pkey_derive