Mistake on this page?
Report an issue in GitHub or email us
Functions
CryptoCell ECC Diffie-Hellman APIs

Functions

CRYSError_t CRYS_ECDH_SVDP_DH (CRYS_ECPKI_UserPublKey_t *PartnerPublKey_ptr, CRYS_ECPKI_UserPrivKey_t *UserPrivKey_ptr, uint8_t *SharedSecretValue_ptr, uint32_t *SharedSecrValSize_ptr, CRYS_ECDH_TempData_t *TempBuff_ptr)
 Creates the shared secret value according to [IEEE1363, ANS X9.63]: More...
 

Detailed Description

Function Documentation

CRYSError_t CRYS_ECDH_SVDP_DH ( CRYS_ECPKI_UserPublKey_t PartnerPublKey_ptr,
CRYS_ECPKI_UserPrivKey_t UserPrivKey_ptr,
uint8_t *  SharedSecretValue_ptr,
uint32_t *  SharedSecrValSize_ptr,
CRYS_ECDH_TempData_t TempBuff_ptr 
)

Creates the shared secret value according to [IEEE1363, ANS X9.63]:

  1. Checks input-parameter pointers and EC Domain in public and private keys.
  2. Derives the partner public key and calls the EcWrstDhDeriveSharedSecret function, which performs EC SVDP operations.
Note
The term "User" refers to any party that calculates a shared secret value using this primitive. The term "Partner" refers to any other party of shared secret value calculation. Partner's public key shall be validated before using in this primitive.
Returns
CRYS_OK on success.
A non-zero value on failure as defined crys_ecpki_error.h.
Parameters
[in]PartnerPublKey_ptrPointer to a partner public key.
[in]UserPrivKey_ptrPointer to a user private key.
[out]SharedSecretValue_ptrPointer to an output buffer that will contain the shared secret value.
[in,out]SharedSecrValSize_ptrPointer to the size of user-passed buffer (in) and actual size of output of calculated shared secret value (out).
[in]TempBuff_ptrPointer to a temporary buffer.
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.