Git Product home page Git Product logo

Comments (5)

etienne-lms avatar etienne-lms commented on July 22, 2024 1

As AES processing (encryption or decryption) does not depend on buffer content (AFAIK) i think this perf test would still be valid even if the input buffer is never initialized. This would prevent xtest from feeding a secure buffer :)

from optee_test.

etienne-lms avatar etienne-lms commented on July 22, 2024

Buffers that are under the secure data path are referenced by a file descriptor (input_sdp_fd here) instead of a (pre-mapped) buffer virtual address (in here). To be able to read or write to the buffer, one must map it hence the instructions you refer to.

from optee_test.

abhisk612 avatar abhisk612 commented on July 22, 2024

I understand that buffer under secure data path (i.e. secure buffer) are referenced by a fd and to access them, they must be mapped with mmap.

But, it is not clear, why secure buffer is being accessed (read/write) by non-secure aes-perf application in the first place?

I see, it is accessed by the application just to fill zero/random data in the secure buffer; it is unmapped immediately after that. But,I expect secure buffer to be inaccessible to the non-secure application.

from optee_test.

etienne-lms avatar etienne-lms commented on July 22, 2024

But,I expect secure buffer to be inaccessible to the non-secure application.

That is true but for test purpose maybe (likely in the current case) there is no effective memory firewall preventing non-secure from reading and/or writing to an SDP buffer. The xtest application here simulates an AES processing performed on a SDP buffer hence possibly feeding the SDP buffer from non-secure side before measuring how long it takes to invoke an AES processing on a SDP buffer by a TA.

from optee_test.

abhisk612 avatar abhisk612 commented on July 22, 2024

Thanks for clarification. We, in fact, have a situation, where we have restricted the secure buffer access to non-secure application. Based on clarification, it does not seem to be hard requirement to fill the input buffer for the speed test - hence we shall proceed by removing it.

from optee_test.

Related Issues (20)

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.