Comments (5)
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.
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.
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.
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.
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)
- Useless code in attestation test case. HOT 6
- xtest regression 1033 failed HOT 4
- Question about build error HOT 5
- Machine readable test report HOT 2
- xtest benchmark_1000.c HOT 2
- TA remote attestation HOT 3
- openssl binary usage HOT 9
- Need to fix host/xtest/Makefile? HOT 2
- Xtest 1039 failed! HOT 2
- How to establish a bi-directional data transfer process between Normal and Secure World ? HOT 4
- xtest 1027 & 1028 failed HOT 2
- xtest 1033 failed HOT 1
- Fail to build xtest with enabing SDP test cases. HOT 5
- Queries related to PKCS11 based tests HOT 47
- Compile error when building xtest with musl HOT 10
- Add submodule in ta to get "execvp Argument list too long" HOT 1
- host/xtest/CMakeLists.txt does not support CFG_GCM_NIST_VECTORS=y HOT 1
- xtest 1009 - Explanation about cancellationrequest HOT 3
- xtest_tee_test_1014 fail (CFG_SECURE_DATA_PATH) HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from optee_test.