Skip to content

Commit 415c57f

Browse files
committed
don't ignore additional data on SOBER128-PRNG import
(cherry picked from commit d502869)
1 parent b9fa4c0 commit 415c57f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/prngs/sober128.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ int sober128_import(const unsigned char *in, unsigned long inlen, prng_state *pr
189189
if (inlen < (unsigned long)sober128_desc.export_size) return CRYPT_INVALID_ARG;
190190

191191
if ((err = sober128_start(prng)) != CRYPT_OK) return err;
192-
if ((err = sober128_add_entropy(in, sober128_desc.export_size, prng)) != CRYPT_OK) return err;
192+
if ((err = sober128_add_entropy(in, inlen, prng)) != CRYPT_OK) return err;
193193
return CRYPT_OK;
194194
}
195195

0 commit comments

Comments
 (0)