ECDH: Calculate the shared key based on the local key and peer public key.
- 参数
-
| key | [IN] Key handle |
| peerPubkey | [IN] Public key data |
| pubKeyLen | [IN] Public key data length |
| sharedSecret | [OUT] Shared key |
| sharedSecretLen | [IN/OUT] IN: Maximum length of the key padding OUT: Key length |
- 返回值
-
| 0 | indicates success. Other values indicate failure. |