cloudflare / circl

CIRCL: Cloudflare Interoperable Reusable Cryptographic Library
http://blog.cloudflare.com/introducing-circl
Other
1.22k stars 136 forks source link

ecc/bls12381: Ensures pairing operations don't overwrite their input #494

Closed armfazh closed 3 months ago

armfazh commented 3 months ago

Issue: Pairing functions internally convert input points to affine, overwriting the input. This causes troubles in a multiple goroutine scenario.

Fix: Ensures pairing operations don't overwrite the input. Added a test for checking input's integrity.

Fixes #493