]> Repositorios git - scryer-prolog.git/commit
crypto_data_hkdf/4: Fail if the length is too long.
authorMarkus Triska <[email protected]>
Mon, 18 May 2020 11:21:20 +0000 (13:21 +0200)
committerMarkus Triska <[email protected]>
Mon, 18 May 2020 11:21:38 +0000 (13:21 +0200)
commitfd732550d8ae83cbe17e83e366175227914ea64c
treeff2b45d5b6628548f14bb503bf9b8180ca99ad7a
parentfac7ba70c87a3c69daec45bd18d078920ff0b510
crypto_data_hkdf/4: Fail if the length is too long.

Due to the way the counter is constructed in the HKDF specification,
the requested output length can be at most 255 times the size of the
digest algorithm's output.

Reported by @notoria in #527. Many thanks!
src/prolog/machine/system_calls.rs