forked from wolfSSL/wolfssl
Fix order of GenerateSeed() when MQX is used with leanPSK
This commit is contained in:
@ -527,21 +527,6 @@ int GenerateSeed(OS_Seed* os, byte* output, word32 sz)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif /* CYASSL_MIC32MZ_RNG */
|
#endif /* CYASSL_MIC32MZ_RNG */
|
||||||
#elif defined(CYASSL_SAFERTOS) || defined(CYASSL_LEANPSK) \
|
|
||||||
|| defined(CYASSL_IAR_ARM)
|
|
||||||
|
|
||||||
#warning "write a real random seed!!!!, just for testing now"
|
|
||||||
|
|
||||||
int GenerateSeed(OS_Seed* os, byte* output, word32 sz)
|
|
||||||
{
|
|
||||||
word32 i;
|
|
||||||
for (i = 0; i < sz; i++ )
|
|
||||||
output[i] = i;
|
|
||||||
|
|
||||||
(void)os;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#elif defined(FREESCALE_MQX)
|
#elif defined(FREESCALE_MQX)
|
||||||
|
|
||||||
@ -630,6 +615,22 @@ int GenerateSeed(OS_Seed* os, byte* output, word32 sz)
|
|||||||
}
|
}
|
||||||
#endif /* FREESCALE_K70_RNGA */
|
#endif /* FREESCALE_K70_RNGA */
|
||||||
|
|
||||||
|
#elif defined(CYASSL_SAFERTOS) || defined(CYASSL_LEANPSK) \
|
||||||
|
|| defined(CYASSL_IAR_ARM)
|
||||||
|
|
||||||
|
#warning "write a real random seed!!!!, just for testing now"
|
||||||
|
|
||||||
|
int GenerateSeed(OS_Seed* os, byte* output, word32 sz)
|
||||||
|
{
|
||||||
|
word32 i;
|
||||||
|
for (i = 0; i < sz; i++ )
|
||||||
|
output[i] = i;
|
||||||
|
|
||||||
|
(void)os;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
#elif defined(STM32F2_RNG)
|
#elif defined(STM32F2_RNG)
|
||||||
#undef RNG
|
#undef RNG
|
||||||
#include "stm32f2xx_rng.h"
|
#include "stm32f2xx_rng.h"
|
||||||
|
Reference in New Issue
Block a user