PRCYCoin  2.0.0.7rc1
P2P Digital Currency
secp256k1_ecdh.h
Go to the documentation of this file.
1 #ifndef SECP256K1_ECDH_H
2 #define SECP256K1_ECDH_H
3 
4 #include "secp256k1_2.h"
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
21  const secp256k1_context2* ctx,
22  unsigned char *result,
23  const secp256k1_pubkey2 *pubkey,
24  const unsigned char *privkey
26 
27 #ifdef __cplusplus
28 }
29 #endif
30 
31 #endif /* SECP256K1_ECDH_H */
secp256k1_pubkey2
Opaque data structure that holds a parsed and valid public key.
Definition: secp256k1_2.h:66
SECP256K1_API
#define SECP256K1_API
Definition: secp256k1_2.h:139
SECP256K1_WARN_UNUSED_RESULT
#define SECP256K1_WARN_UNUSED_RESULT
Warning attributes NONNULL is not used if SECP256K1_BUILD is set to avoid the compiler optimizing out...
Definition: secp256k1.h:35
secp256k1_context_struct2
Definition: secp256k1_types.h:15
secp256k1_2.h
SECP256K1_ARG_NONNULL
#define SECP256K1_ARG_NONNULL(_x)
Definition: secp256k1.h:40
secp256k1_ecdh
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ecdh(const secp256k1_context2 *ctx, unsigned char *result, const secp256k1_pubkey2 *pubkey, const unsigned char *privkey) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4)
Compute an EC Diffie-Hellman secret in constant time Returns: 1: exponentiation was successful 0: sca...
Definition: main_impl.h:13