Sunscreen icon indicating copy to clipboard operation
Sunscreen copied to clipboard

Signed values panic when decoding results in overflow (debug mode).

Open rickwebiii opened this issue 3 years ago • 2 comments

I ran into this when decoding ciphertexts that exceeded noise budget. We now return an error when decryption errors for this reason.

In release mode, you just get garbage.

We should probably move the internal storage type for Signed/Unsigned to BigInt to eliminate overflow and impl TryFrom to convert to i64/u64.

rickwebiii avatar Dec 17 '21 01:12 rickwebiii

Is it still an issue?

kpp avatar Nov 22 '22 02:11 kpp

@kpp This has not been fixed.

rickwebiii avatar Nov 23 '22 06:11 rickwebiii