Enable or disable leading-zero padding of the DH shared secret to the prime length.
1 on success, or a negative value for unsupported / failure.
| Name | Description |
|---|---|
| ctx | Key-derivation / derive context for a DH key. |
| pad | Non-zero to pad the secret to BN_num_bytes(p); 0 to return the minimal big-endian form. |