mirror of
https://github.com/block/buzz.git
synced 2026-10-31 06:21:34 +00:00
ecdhSharedSecret used pointycastle's BigInt point multiplication, which is slow (about 5.9 ms on an iPhone SE) and not constant time. It now calls libsecp256k1's secp256k1_ecdh with a raw-x hash callback, wiping the decoded secret key afterwards. Co-authored-by: george <973be878edd6d4f79692a3827f20a6f7fe0ed0362f269ff6b6ba8867033d7d8e@sprout-oss.stage.blox.sqprod.co> Signed-off-by: Tom Brow <tomb@block.xyz>