Giter Club home page Giter Club logo

securemark-tls's People

Contributors

hannestschofenig avatar jacobbarthelmeh avatar oberon-sk avatar petertorelli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

securemark-tls's Issues

th_ecdh allowed to cache derived secret?

The current definition of the th_ecdh DUT API opens up for doing the time-intensive calculation at init time instead of the function that's being called during profiling. Is that intended?

I'd suggest supplying the public key to derive against in the calc_secret function instead of during init to enforce actually doing the operation on each iteration.

Some API parameters are redundant and should use local context

The th_ functions often pass down parameters that don't change, and are specific to the context. They should be removed from the parameter list and left up to the dev to store in a local context. For example th_sha_* functions send the same enum indicating the SHA size to every function call. Same goes for ECC group, and RSA id.

What is the aes_rounds argument for?

unsigned int rounds, // input: number of AES rounds

Isn't the amount of rounds dictated by the key length (supplied in a different parameter?). I have yet to see an accelerator which allows specifying a custom amount of rounds, since the amount of rounds for a given keysize is actually specified by the spec.

ee_aes128_ecb does not call th_aes128_deinit

In version 1.0.x, after the timing loop in ee_aes128_ecb, the code does not call de-init. This does not impact mbedtls but it does impact PSA.

A workaround branch will be created for 1.0.x.

Remove redundancy of "wrap" and "bench" functions.

In the self-hosted example, main.c defines a wrapper for each primitive which is nearly identical to the firmware bench_* primitives found in profile/ee_bench.c. It appears the only thing missing is a return CRC from the bench_ code, and a subtle manipulation of the timestamp logic.

This would significantly reduce the size of main.c.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.