diff options
author | Michael Brown | 2012-03-05 17:13:07 +0100 |
---|---|---|
committer | Michael Brown | 2012-03-06 00:23:45 +0100 |
commit | fb6a33360fd99b19f557a1721475da9d4dd6b05c (patch) | |
tree | 13f60dd57b2c69da5220d095e9575b2466fd6b9c /src/crypto/entropy.c | |
parent | [tls] Formalise the definition of a TLS cipher suite (diff) | |
download | ipxe-fb6a33360fd99b19f557a1721475da9d4dd6b05c.tar.gz ipxe-fb6a33360fd99b19f557a1721475da9d4dd6b05c.tar.xz ipxe-fb6a33360fd99b19f557a1721475da9d4dd6b05c.zip |
[rng] Allow hash_df() to accept multiple underlying hash algorithms
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/crypto/entropy.c')
-rw-r--r-- | src/crypto/entropy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crypto/entropy.c b/src/crypto/entropy.c index ab574a94..cb3d54d8 100644 --- a/src/crypto/entropy.c +++ b/src/crypto/entropy.c @@ -454,7 +454,8 @@ int get_entropy_input_tmp ( unsigned int num_samples, uint8_t *tmp, /* 5.4. tmp = tmp XOR * df ( ( nonce || entropy_bitstring ), n ) */ - hash_df ( &data, sizeof ( data ), df_buf, sizeof ( df_buf ) ); + hash_df ( &entropy_hash_df_algorithm, &data, sizeof ( data ), + df_buf, sizeof ( df_buf ) ); for ( i = 0 ; i < tmp_len ; i++ ) tmp[i] ^= df_buf[i]; |