Adapt the example programs
Adapt the example programs if MBEDTLS_ENTROPY_HARDWARE_ALT
is defined.
diff --git a/programs/pkey/pk_verify.c b/programs/pkey/pk_verify.c
index f80bf64..ccfc149 100644
--- a/programs/pkey/pk_verify.c
+++ b/programs/pkey/pk_verify.c
@@ -57,6 +57,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
int main( int argc, char *argv[] )
{