Adapt the example programs
Adapt the example programs if MBEDTLS_ENTROPY_HARDWARE_ALT
is defined.
diff --git a/programs/pkey/pk_sign.c b/programs/pkey/pk_sign.c
index ba4f779..84a613b 100644
--- a/programs/pkey/pk_sign.c
+++ b/programs/pkey/pk_sign.c
@@ -61,6 +61,18 @@
#include <stdio.h>
#include <string.h>
+#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
/*
* For the currently used signature algorithms the buffer to store any signature