ECDH: output compressed point #446
pull chfast wants to merge 3 commits into bitcoin-core:master from chfast:ecdh-raw changing 3 files +50 −15-
chfast commented at 10:52 pm on March 9, 2017: none
-
ecdh: allocate single buffer for compressed point 9fd8a92bf1
-
ecdh: extract shared secret hashing
This commit separates finding shared secret for ECDH from hashing it.
-
ecdh: export secp256k1_ecdh_raw() function 9859f02f9e
-
chfast commented at 9:11 am on March 10, 2017: noneOh, thank. Good to know it is not only my issue. Any final conclusions how the API should look like?
-
chfast cross-referenced this on Mar 10, 2017 from issue Support custom hash functions in ECDH API by Kagami
-
gmaxwell commented at 3:55 pm on March 11, 2017: contributor
It is generally unsafe to use the raw point for almost any application. Following our design principle of being hard to abuse, we should not provide a function that directly does so.
Instead, I think we can do is take a hasher function point, similar to how the signing takes a nonce function. Callers that need some other scheme for handling the nonce can pass a function pointer that accomplishes whatever they need, without creating an appearance that it’s generally okay to use the raw point for ECDH.
There is a lot of reckless cryptography out there. We’re not going to change that, but we also don’t need to be a part of it.
-
fanatid cross-referenced this on Mar 12, 2017 from issue [ECDH API change] Support custom hash function by fanatid
-
sipa closed this on Mar 22, 2017
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-10-30 07:15 UTC
This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-10-30 07:15 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me