tlsnotary / tlsn

Rust implementation of the TLSNotary protocol
https://tlsnotary.org
219 stars 55 forks source link

Fix GHASH preprocessing #503

Closed sinui0 closed 5 days ago

sinui0 commented 2 weeks ago

https://github.com/tlsnotary/tlsn/blob/a1deba101b466b0f656ad301da569f0e5c61dd3c/components/universal-hash/src/ghash/ghash_inner/mod.rs#L131

It went unnoticed that we're preprocessing twice as many blocks as necessary, update this to account for the free-squaring trick.