sphincs / parallel-sphincsplus

This repository contains another implementation of the Sphincs+ postquantum signature system
Creative Commons Zero v1.0 Universal
3 stars 4 forks source link

Should randomness failure during signature generation cause an error? #8

Open sfluhrer opened 3 years ago

sfluhrer commented 3 years ago

The signature generation process allows the application to provide optional randomness. If they pass in a 0 pointer, we'll fall back to deterministic signatures (which are perfectly secure); if the application passes in a pointer to a random function, we call that to get the randomness (which we stir into the final R value).

What happens if the application passes a random function, and that function returns failure? Presumably, if the application gave us a function, it wants a nondeterministic signature; however we can't do that. Currently, we do fall back to a deterministic mode; is this correct?