DLPSharedSecretDH

Computes a shared field element by using the Diffie-Hellman scheme.

Syntax

IssStatus ippsDLPSharedSecretDH(const IppsBigNumState* pPrivateA, const IppsBigNumState* pPublicB, IppsBigNumState* pShare, IppsDLPState* pCtx);

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

This function is declared in the ippcp.h file. The function computes a shared secret element FG(p) pubKeyBprivateKeyA(mod p).

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.

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.