ComputeSecret Method
Computes a shared secret.
Object Oriented Interface
public function doComputeSecret();
Procedural Interface
ipworksencrypt_ecc_do_computesecret($res);
Remarks
This method computes a shared secret.
When this method is called the class will use the public key specified by RecipientKeyPublicKey to compute a shared secret, or secret agreement. The KeyDerivationFunction specifies the Hash or HMAC algorithm that is applied to the raw secret. The resulting value is held by SharedSecret. The following properties are applicable when calling this method:
- RecipientKeyPublicKey (required)
- KeyDerivationFunction (optional)
- PrependSecret (optional)
- AppendSecret (optional)
- HMACKey (optional)