Adapt the example programs
Adapt the example programs if MBEDTLS_ENTROPY_HARDWARE_ALT
is defined.
diff --git a/programs/pkey/ecdsa.c b/programs/pkey/ecdsa.c
index b851c31..4cde070 100644
--- a/programs/pkey/ecdsa.c
+++ b/programs/pkey/ecdsa.c
@@ -100,6 +100,18 @@
#define dump_pubkey( a, b )
#endif
+#if defined(MBEDTLS_ENTROPY_HARDWARE_ALT)
+int mbedtls_hardware_poll( void *data, unsigned char *output,
+ size_t len, size_t *olen )
+{
+ size_t i;
+ (void) data;
+ for( i = 0; i < len; ++i )
+ output[i] = rand();
+ *olen = len;
+ return( 0 );
+}
+#endif
int main( int argc, char *argv[] )
{