Visible to Intel only — GUID: GUID-90A96E72-DC46-427D-810C-B1A00C3E708E
Visible to Intel only — GUID: GUID-90A96E72-DC46-427D-810C-B1A00C3E708E
DLPSharedSecretDH
Computes a shared field element by using the Diffie-Hellman scheme.
Syntax
IppStatus ippsDLPSharedSecretDH(const IppsBigNumState* pPrivateA, const IppsBigNumState* pPublicB, IppsBigNumState* pShare, IppsDLPState* pCtx);
Include Files
ippcp.h
Parameters
pPrivateA |
Pointer to your own private key privateKeyA. |
pPublicB |
Pointer to the public key pubKeyB belonging to the other party. |
pShare |
Pointer to the shared secret element Share. |
pCtx |
Pointer to the cryptosystem context. |
Description
The function computes a shared secret element FG(p) pubKeyBprivateKeyA(modp).
Return Values
ippStsNoErr |
Indicates no error. Any other value indicates an error or warning. |
ippStsNullPtrErr |
Indicates an error condition if any of the specified pointers is NULL. |
ippStsContextMatchErr |
Indicates an error condition if the context parameter does not match the operation. |
ippStsIncompleteContextErr |
Indicates an error condition if the cryptosystem context has not been properly set up. |
ippStsRangeErr |
Indicates an error condition if Share does not have enough space. |