66 * The library is free for all purposes without any express
77 * guarantee it works.
88 */
9+
910#include "tomcrypt.h"
11+ #include "tomcrypt_test.h"
1012
1113/**
1214 @file no_prng.c
@@ -29,7 +31,7 @@ typedef struct
2931 @param prng [out] The PRNG state to initialize
3032 @return CRYPT_OK if successful
3133*/
32- int no_prng_start (prng_state * prng )
34+ static int no_prng_start (prng_state * prng )
3335{
3436 no_prng_desc_t * no_prng = (no_prng_desc_t * ) prng ;
3537 LTC_ARGCHK (no_prng != NULL );
@@ -47,7 +49,7 @@ int no_prng_start(prng_state *prng)
4749 @param prng PRNG state to update
4850 @return CRYPT_OK if successful
4951*/
50- int no_prng_add_entropy (const unsigned char * in , unsigned long inlen , prng_state * prng )
52+ static int no_prng_add_entropy (const unsigned char * in , unsigned long inlen , prng_state * prng )
5153{
5254 no_prng_desc_t * no_prng = (no_prng_desc_t * ) prng ;
5355 LTC_ARGCHK (no_prng != NULL );
@@ -68,7 +70,7 @@ int no_prng_add_entropy(const unsigned char *in, unsigned long inlen, prng_state
6870 @param prng The PRNG to make active
6971 @return CRYPT_OK if successful
7072*/
71- int no_prng_ready (prng_state * prng )
73+ static int no_prng_ready (prng_state * prng )
7274{
7375 LTC_ARGCHK (prng != NULL );
7476
@@ -82,7 +84,7 @@ int no_prng_ready(prng_state *prng)
8284 @param prng The active PRNG to read from
8385 @return Number of octets read
8486*/
85- unsigned long no_prng_read (unsigned char * out , unsigned long outlen , prng_state * prng )
87+ static unsigned long no_prng_read (unsigned char * out , unsigned long outlen , prng_state * prng )
8688{
8789 no_prng_desc_t * no_prng = (no_prng_desc_t * ) prng ;
8890 LTC_ARGCHK (no_prng != NULL );
@@ -101,7 +103,7 @@ unsigned long no_prng_read(unsigned char *out, unsigned long outlen, prng_state
101103 @param prng The PRNG to terminate
102104 @return CRYPT_OK if successful
103105*/
104- int no_prng_done (prng_state * prng )
106+ static int no_prng_done (prng_state * prng )
105107{
106108 LTC_UNUSED_PARAM (prng );
107109 return CRYPT_OK ;
@@ -114,7 +116,7 @@ int no_prng_done(prng_state *prng)
114116 @param prng The PRNG to export
115117 @return CRYPT_OK if successful
116118*/
117- int no_prng_export (unsigned char * out , unsigned long * outlen , prng_state * prng )
119+ static int no_prng_export (unsigned char * out , unsigned long * outlen , prng_state * prng )
118120{
119121 LTC_UNUSED_PARAM (out );
120122 LTC_UNUSED_PARAM (outlen );
@@ -129,7 +131,7 @@ int no_prng_export(unsigned char *out, unsigned long *outlen, prng_state *prng)
129131 @param prng The PRNG to import
130132 @return CRYPT_OK if successful
131133*/
132- int no_prng_import (const unsigned char * in , unsigned long inlen , prng_state * prng )
134+ static int no_prng_import (const unsigned char * in , unsigned long inlen , prng_state * prng )
133135{
134136 LTC_UNUSED_PARAM (in );
135137 LTC_UNUSED_PARAM (inlen );
@@ -141,7 +143,7 @@ int no_prng_import(const unsigned char *in, unsigned long inlen, prng_state *prn
141143 PRNG self-test
142144 @return CRYPT_OK if successful, CRYPT_NOP if self-testing has been disabled
143145*/
144- int no_prng_test (void )
146+ static int no_prng_test (void )
145147{
146148 return CRYPT_OK ;
147149}
0 commit comments