File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF52/source Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ namespace vendor {
47
47
namespace nordic {
48
48
49
49
CryptoToolbox::CryptoToolbox () : _initialized(false ) {
50
+ mbedtls_platform_setup (&_platform_context);
50
51
mbedtls_entropy_init (&_entropy_context);
51
52
mbedtls_ecp_group_init (&_group);
52
53
int err = mbedtls_ecp_group_load (
@@ -59,6 +60,7 @@ CryptoToolbox::CryptoToolbox() : _initialized(false) {
59
60
CryptoToolbox::~CryptoToolbox () {
60
61
mbedtls_ecp_group_free (&_group);
61
62
mbedtls_entropy_free (&_entropy_context);
63
+ mbedtls_platform_teardown (&_platform_context);
62
64
}
63
65
64
66
bool CryptoToolbox::generate_keys (
Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ class CryptoToolbox : mbed::NonCopyable<CryptoToolbox> {
132
132
void swap_endian (uint8_t * buf, size_t len);
133
133
134
134
bool _initialized;
135
+ mbedtls_platform_context _platform_context;
135
136
mbedtls_entropy_context _entropy_context;
136
137
mbedtls_ecp_group _group;
137
138
};
You can’t perform that action at this time.
0 commit comments