Add hmac_drbg_set_entropy_len()
diff --git a/include/polarssl/hmac_drbg.h b/include/polarssl/hmac_drbg.h
index 54aa9a4..a8bb39a 100644
--- a/include/polarssl/hmac_drbg.h
+++ b/include/polarssl/hmac_drbg.h
@@ -96,7 +96,7 @@
                     size_t len );
 
 /**
- * \brief               Simplified HMAC_DRBG initialisation.
+ * \brief               Initilisation of simpified HMAC_DRBG (never reseeds).
  *                      (For use with deterministic ECDSA.)
  *
  * \param ctx           HMAC_DRBG context to be initialised
@@ -113,6 +113,16 @@
                         const unsigned char *data, size_t data_len );
 
 /**
+ * \brief               Set the amount of entropy grabbed on each reseed
+ *                      (Default: HMAC_DRBG_ENTROPY_LEN)
+ *
+ * \param ctx           HMAC_DRBG context
+ * \param len           Amount of entropy to grab
+ */
+void hmac_drbg_set_entropy_len( hmac_drbg_context *ctx,
+                                size_t len );
+
+/**
  * \brief               HMAC_DRBG update state
  *
  * \param ctx           HMAC_DRBG context
diff --git a/library/hmac_drbg.c b/library/hmac_drbg.c
index a8fe486..a322b48 100644
--- a/library/hmac_drbg.c
+++ b/library/hmac_drbg.c
@@ -157,6 +157,14 @@
 }
 
 /*
+ * Set entropy length grabbed for reseeds
+ */
+void hmac_drbg_set_entropy_len( hmac_drbg_context *ctx, size_t len )
+{
+    ctx->entropy_len = len;
+}
+
+/*
  * HMAC_DRBG random function with optional additional data (10.1.2.5)
  */
 int hmac_drbg_random_with_add( void *p_rng,