ecc icon indicating copy to clipboard operation
ecc copied to clipboard

ecc_frost_ristretto255_sha512_trusted_dealer_keygen memory access out of bounds

Open kaxxa123 opened this issue 2 years ago • 1 comments

Tried to get your Frost implementation to work, but failed with "memory access out of bounds"

I observed that under: https://github.com/aldenml/ecc/blob/master/bindings/js/libecc-post.js

Module.ecc_frost_ristretto255_sha512_secret_share_shard_with_coefficients = ( const ptr_points = mput(points, n*ecc_frost_ristretto255_sha512_SCALARSIZE);

Shouldn't this be? const ptr_points = mput(points, n*ecc_frost_ristretto255_sha512_POINTSIZE);

kaxxa123 avatar May 25 '22 09:05 kaxxa123

Hi @kaxxa123, thank you very much for reporting this bug. This code libecc-post.js is auto-generated, let me know if you need some help before I'm able to release a new version.

aldenml avatar May 25 '22 12:05 aldenml