Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

Save heap by avoiding a temporary copy of the pub./priv. keys. #45

Merged
merged 1 commit into from
Jun 7, 2016

Conversation

TeroJaasko
Copy link
Contributor

The public and private keys are in order of ~0,7KB in size, so
we better try to avoid copying them unnecessarily. Use the new
overloaded version of resource_value_buffer() and pass just the
reference of these buffers to mbedtls, as it will copy them.

@TeroJaasko
Copy link
Contributor Author

@anttiylitokola @yogpan01

@yogpan01
Copy link
Contributor

yogpan01 commented Jun 1, 2016

+1

@TeroJaasko
Copy link
Contributor Author

test this please

@anttiylitokola
Copy link
Contributor

rebuild

2 similar comments
@anttiylitokola
Copy link
Contributor

rebuild

@anttiylitokola
Copy link
Contributor

rebuild

The public and private keys are in order of ~0,7KB in size, so
we better try to avoid copying them unnecessarily. Use the new
overloaded version of resource_value_buffer() and pass just the
reference of these buffers to mbedtls, as it will copy them.
@TeroJaasko TeroJaasko merged commit 6b449d3 into master Jun 7, 2016
@TeroJaasko TeroJaasko deleted the memory_savings branch June 7, 2016 10:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants