[PATCH RFC 2/2] babel: Add HMAC support
Toke Høiland-Jørgensen
toke at toke.dk
Sun Jul 15 01:21:40 CEST 2018
Martin Mares <mj at ucw.cz> writes:
> Hi Toke,
>
> just a random thought:
>
>> + getrandom(n->hmac_nonce, BABEL_HMAC_NONCE_LEN, 0);
>
> I think we cannot rely on getrandom() being available on all systems.
> It probably needs wrapping in sysdep code.
Yeah, figured I would probably have to look into something like that.
Any idea if there is an interface that *is* available across systems?
> int random(void) { return 4; /* Random number chosen by a fair dice roll. */ }
Don't think this will work ;)
-Toke
More information about the Bird-users
mailing list