Skip to content

Conversation

@andresag01
Copy link

Add the mbed TLS benchmark example that runs multiple cryptographic
primitives and reports performance. Also, modified the repository's
structure so that each example is in a different subdirectory.

Add the mbed TLS benchmark example that runs multiple cryptographic
primitives and reports performance. Also, modified the repository's
structure so that each example is in a different subdirectory.
@andresag01
Copy link
Author

andresag01 commented Jul 8, 2016

@sbutcher-arm @yanesca : Note that:

  1. I have not actually touched the sources for the tls-client example, just moved them to a subdirectory. However, I think I tried running it and it did not work.
  2. The added example was mainly from https://github.com/ARMmbed/mbedtls-examples and I just changed a few places to make it compatible with the new mbedOS

int main(void) {
output.baud(115200);

int ret = benchmark(0, NULL);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original examples were run as a tests. I am not sure this is what we would like to have, but I am happy to add that if you think it adds value to the example.

@yanesca yanesca self-assigned this Jul 8, 2016
README.md Outdated

This application downloads a file from an HTTPS server (developer.mbed.org) and looks for a specific string in that file.
This repo contains a collection of mbed TLS example applications based on mbed OS and built with mbedCLI. Each subdirectory contains a separate example meant for building as an executable.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to avoid abbreviations and write 'repository' instead of 'repo'.

Fix the benchmark code to remove the conditional preprocessor
directives for platform.h. This code is not meant to be portable to
anything other than mbed OS, so these are not required.

Also, update documentation according to feedback.
} while( 0 )

#if defined(MBEDTLS_ERROR_C)
#define PRINT_ERROR \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we still need true branch here.

@yanesca
Copy link
Contributor

yanesca commented Jul 20, 2016

+1

@simonbutcher
Copy link
Contributor

Reviewed and approved for merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants