apache/incubator-milagro-crypto-rust

bn254CX_64 Compilation Bug

Closed this issue · 0 comments

A couple of things here contribute to this bug.

Firstly the name of the feature is bn254cx in Cargo.toml however it is named bn254CX in lib.rs and so can never actually be compiled.

After fixing this there is a compilation bug in the line -
pub const FEXCESS: i32 = (((1 as i32) << SH) - 1);

Since the value of SH = 64 in rom_bn254CX_64.rs and hence will cause an overflow when trying to shift an i32.