Computes a shared field element by using the Diffie-Hellman scheme.
IssStatus ippsDLPSharedSecretDH(const IppsBigNumState* pPrivateA, const IppsBigNumState* pPublicB, IppsBigNumState* pShare, IppsDLPState* pCtx);
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. |
This function is declared in the ippcp.h file. The function computes a shared secret element FG(p) pubKeyBprivateKeyA(mod p).
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. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.