diff options
author | Pieter Wuille <pieter@wuille.net> | 2021-12-15 09:19:50 -0500 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2021-12-15 09:19:50 -0500 |
commit | dff0596fa0e289b2dfec3b4adbe05e0c14c11d79 (patch) | |
tree | 1631eccfc7023142f2acbbe1162a17af26c35e7a /src/secp256k1/include/secp256k1_ecdh.h | |
parent | b8cc75435a0bcb6c62083ff134b1ba3d2ace50d1 (diff) | |
parent | 86dbc4d075decb82fbba837aaa283cf0561897ad (diff) | |
download | bitcoin-dff0596fa0e289b2dfec3b4adbe05e0c14c11d79.tar.xz |
Update secp256k1 subtree to latest upstream master
Diffstat (limited to 'src/secp256k1/include/secp256k1_ecdh.h')
-rw-r--r-- | src/secp256k1/include/secp256k1_ecdh.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/secp256k1/include/secp256k1_ecdh.h b/src/secp256k1/include/secp256k1_ecdh.h index 4058e9c043..c8577984b1 100644 --- a/src/secp256k1/include/secp256k1_ecdh.h +++ b/src/secp256k1/include/secp256k1_ecdh.h @@ -37,14 +37,15 @@ SECP256K1_API extern const secp256k1_ecdh_hash_function secp256k1_ecdh_hash_func * * Returns: 1: exponentiation was successful * 0: scalar was invalid (zero or overflow) or hashfp returned 0 - * Args: ctx: pointer to a context object (cannot be NULL) - * Out: output: pointer to an array to be filled by hashfp - * In: pubkey: a pointer to a secp256k1_pubkey containing an - * initialized public key - * seckey: a 32-byte scalar with which to multiply the point - * hashfp: pointer to a hash function. If NULL, secp256k1_ecdh_hash_function_sha256 is used - * (in which case, 32 bytes will be written to output) + * Args: ctx: pointer to a context object. + * Out: output: pointer to an array to be filled by hashfp. + * In: pubkey: a pointer to a secp256k1_pubkey containing an initialized public key. + * seckey: a 32-byte scalar with which to multiply the point. + * hashfp: pointer to a hash function. If NULL, + * secp256k1_ecdh_hash_function_sha256 is used + * (in which case, 32 bytes will be written to output). * data: arbitrary data pointer that is passed through to hashfp + * (can be NULL for secp256k1_ecdh_hash_function_sha256). */ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ecdh( const secp256k1_context* ctx, |