try another ephemeral keys if elligator encoding failes

This commit is contained in:
orignal 2020-01-21 12:19:20 -05:00
parent f497a74ec4
commit ccec3376ba
2 changed files with 15 additions and 5 deletions

View file

@ -61,6 +61,7 @@ namespace garlic
private:
void MixHash (const uint8_t * buf, size_t len);
bool GenerateEphemeralKeysAndEncode (uint8_t * buf); // buf is 32 bytes
void HandlePayload (const uint8_t * buf, size_t len, CloveHandler& handleClove);