Visible to Intel only — GUID: GUID-7CF04991-731C-4AC0-942D-3DB1776BADEC
Visible to Intel only — GUID: GUID-7CF04991-731C-4AC0-942D-3DB1776BADEC
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. |