19 lines
431 B
C++
19 lines
431 B
C++
/***
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: MBedTLS.cpp
|
|
Date: 2021-6-12
|
|
Author: Reece
|
|
***/
|
|
#include <Source/RuntimeInternal.hpp>
|
|
#include "MBedTLS.hpp"
|
|
|
|
extern "C"
|
|
{
|
|
AUKN_SYM int mbedtls_platform_entropy_poll(void *data, unsigned char *output, size_t len, size_t *olen)
|
|
{
|
|
Aurora::RNG::ReadSecureRNG(output, len);
|
|
*olen = len;
|
|
return 0;
|
|
}
|
|
} |