TrustCore SDK NanoCrypto API reference  version 7.0
ecc_edwards_dh.h
Go to the documentation of this file.
1 /*
2  * ecc_edwards_dh.h
3  *
4  * Header for Edward's Curve Diffie-Hellman operations.
5  *
6  * Copyright 2019-2024 DigiCert, Inc. All Rights Reserved.
7  * Proprietary and Confidential Material.
8  *
9  */
10 
27 /*------------------------------------------------------------------*/
28 
29 #ifndef __ECC_EDWARDS_DH_HEADER__
30 #define __ECC_EDWARDS_DH_HEADER__
31 
32 #include "../crypto/ecc_edwards_keys.h"
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
57 MOC_EXTERN MSTATUS edDH_GenerateSharedSecret(MOC_ECC(hwAccelDescr hwAccelCtx) edECCKey *pPrivateKey, ubyte *pOtherPartysPublicKey, ubyte4 publicKeyLen,
58  ubyte **ppSharedSecret, ubyte4 *pSharedSecretLen, void *pExtCtx);
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
64 #endif /* __ECC_EDWARDS_DH_HEADER__ */
MOC_EXTERN MSTATUS edDH_GenerateSharedSecret(MOC_ECC(hwAccelDescr hwAccelCtx) edECCKey *pPrivateKey, ubyte *pOtherPartysPublicKey, ubyte4 publicKeyLen, ubyte **ppSharedSecret, ubyte4 *pSharedSecretLen, void *pExtCtx)
Generates a Edward's form Diffie-Hellman shared secret.