This is an automated email from the ASF dual-hosted git repository.
yuanz pushed a change to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-teaclave-trustzone-sdk.git
from 3d1545e optee-utee: Add method to check if TransientObject is created
with null handle
new 62445d4 Add std-only examples
new 93507c9 Create migrating-to-new-building-env.md
new a7e20e9 Polish README.md
new a6b5cfb examples: polish linking script - remove wildcard imports:
"use core::ffi::*;" - since "c_size_t" is an unstable feature for current Rustc
(2024-05-14), replace them with "usize", which is equivalent on ARM32 and
ARM64.
new 10271e5 examples: unify Makefile
new 7bd1ed4 Polish migrating-to-new-building-env.md
new 7f9c0c2 Update migrating-to-new-building-env.md
The 7 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.licenserc.yaml | 1 +
README.md | 138 +++++++-------
ci/ci.sh | 10 +
docs/migrating-to-new-building-env.md | 201 +++++++++++++++++++++
environment | 2 +-
examples/acipher-rs/Makefile | 16 +-
examples/acipher-rs/host/Makefile | 12 +-
examples/acipher-rs/ta/Makefile | 12 +-
examples/acipher-rs/ta/src/main.rs | 1 -
examples/acipher-rs/ta/ta_static.rs | 6 +-
examples/aes-rs/Makefile | 16 +-
examples/aes-rs/host/Makefile | 10 +-
examples/aes-rs/ta/Makefile | 13 +-
examples/aes-rs/ta/src/main.rs | 1 -
examples/aes-rs/ta/ta_static.rs | 6 +-
examples/authentication-rs/Makefile | 16 +-
examples/authentication-rs/host/Makefile | 10 +-
examples/authentication-rs/ta/Makefile | 13 +-
examples/authentication-rs/ta/src/main.rs | 1 -
examples/authentication-rs/ta/ta_static.rs | 6 +-
examples/big_int-rs/Makefile | 16 +-
examples/big_int-rs/host/Makefile | 10 +-
examples/big_int-rs/ta/Makefile | 13 +-
examples/big_int-rs/ta/src/main.rs | 1 -
examples/big_int-rs/ta/ta_static.rs | 6 +-
examples/diffie_hellman-rs/Makefile | 16 +-
examples/diffie_hellman-rs/host/Makefile | 10 +-
examples/diffie_hellman-rs/ta/Makefile | 12 +-
examples/diffie_hellman-rs/ta/src/main.rs | 1 -
examples/diffie_hellman-rs/ta/ta_static.rs | 6 +-
examples/digest-rs/Makefile | 16 +-
examples/digest-rs/host/Makefile | 10 +-
examples/digest-rs/ta/Makefile | 12 +-
examples/digest-rs/ta/src/main.rs | 1 -
examples/digest-rs/ta/ta_static.rs | 6 +-
examples/error_handling-rs/Makefile | 16 +-
examples/error_handling-rs/host/Makefile | 10 +-
examples/error_handling-rs/ta/Makefile | 13 +-
examples/error_handling-rs/ta/src/main.rs | 1 -
examples/error_handling-rs/ta/ta_static.rs | 6 +-
examples/hello_world-rs/Makefile | 16 +-
examples/hello_world-rs/host/Makefile | 10 +-
examples/hello_world-rs/ta/Makefile | 12 +-
examples/hello_world-rs/ta/src/main.rs | 1 -
examples/hello_world-rs/ta/ta_static.rs | 6 +-
examples/hotp-rs/Makefile | 16 +-
examples/hotp-rs/host/Makefile | 10 +-
examples/hotp-rs/ta/Makefile | 12 +-
examples/hotp-rs/ta/src/main.rs | 1 -
examples/hotp-rs/ta/ta_static.rs | 6 +-
.../Makefile | 11 +-
.../host/Cargo.toml | 6 +-
.../host}/Makefile | 19 +-
.../message_passing_interface-rs/host/src/main.rs | 80 ++++++++
.../proto/Cargo.toml | 8 +-
.../proto/build.rs | 0
.../proto/src/lib.rs | 24 ++-
.../ta/Cargo.toml | 8 +-
.../ta/Makefile | 21 ++-
.../ta/Xargo.toml | 0
.../ta/build.rs | 0
.../ta/src/main.rs | 55 ++++--
.../ta/ta_static.rs | 6 +-
examples/message_passing_interface-rs/uuid.txt | 1 +
examples/random-rs/Makefile | 16 +-
examples/random-rs/host/Makefile | 10 +-
examples/random-rs/ta/Makefile | 12 +-
examples/random-rs/ta/src/main.rs | 1 -
examples/random-rs/ta/ta_static.rs | 6 +-
examples/secure_storage-rs/Makefile | 16 +-
examples/secure_storage-rs/host/Makefile | 10 +-
examples/secure_storage-rs/ta/Makefile | 12 +-
examples/secure_storage-rs/ta/src/main.rs | 1 -
examples/secure_storage-rs/ta/ta_static.rs | 6 +-
examples/{supp_plugin-rs => serde-rs}/Makefile | 11 +-
examples/{acipher-rs => serde-rs}/host/Cargo.toml | 7 +-
.../plugin => serde-rs/host}/Makefile | 19 +-
examples/{random-rs => serde-rs}/host/src/main.rs | 24 ++-
examples/{big_int-rs => serde-rs}/proto/Cargo.toml | 6 +-
examples/{acipher-rs => serde-rs}/proto/build.rs | 0
examples/{time-rs => serde-rs}/proto/src/lib.rs | 6 +-
examples/{aes-rs => serde-rs}/ta/Cargo.toml | 4 +-
examples/{acipher-rs => serde-rs}/ta/Makefile | 21 ++-
examples/{acipher-rs => serde-rs}/ta/Xargo.toml | 0
examples/{acipher-rs => serde-rs}/ta/build.rs | 0
.../{hello_world-rs => serde-rs}/ta/src/main.rs | 48 +++--
examples/{aes-rs => serde-rs}/ta/ta_static.rs | 6 +-
examples/serde-rs/uuid.txt | 1 +
examples/signature_verification-rs/Makefile | 16 +-
examples/signature_verification-rs/host/Makefile | 10 +-
examples/signature_verification-rs/ta/Makefile | 13 +-
examples/signature_verification-rs/ta/src/main.rs | 1 -
examples/signature_verification-rs/ta/ta_static.rs | 6 +-
examples/supp_plugin-rs/Makefile | 14 +-
examples/supp_plugin-rs/host/Makefile | 10 +-
examples/supp_plugin-rs/ta/Makefile | 12 +-
examples/supp_plugin-rs/ta/src/main.rs | 1 -
examples/supp_plugin-rs/ta/ta_static.rs | 6 +-
.../{supp_plugin-rs => tcp_client-rs}/Makefile | 11 +-
.../{acipher-rs => tcp_client-rs}/host/Cargo.toml | 4 +-
.../plugin => tcp_client-rs/host}/Makefile | 18 +-
.../{time-rs => tcp_client-rs}/host/src/main.rs | 8 +-
.../{big_int-rs => tcp_client-rs}/proto/Cargo.toml | 6 +-
.../{acipher-rs => tcp_client-rs}/proto/build.rs | 0
.../{time-rs => tcp_client-rs}/proto/src/lib.rs | 6 +-
examples/{aes-rs => tcp_client-rs}/ta/Cargo.toml | 8 +-
examples/{acipher-rs => tcp_client-rs}/ta/Makefile | 21 ++-
.../{acipher-rs => tcp_client-rs}/ta/Xargo.toml | 0
examples/{acipher-rs => tcp_client-rs}/ta/build.rs | 0
examples/{time-rs => tcp_client-rs}/ta/src/main.rs | 53 +++---
examples/{aes-rs => tcp_client-rs}/ta/ta_static.rs | 6 +-
examples/tcp_client-rs/uuid.txt | 1 +
examples/time-rs/Makefile | 16 +-
examples/time-rs/host/Makefile | 10 +-
examples/time-rs/ta/Makefile | 12 +-
examples/time-rs/ta/src/main.rs | 1 -
examples/time-rs/ta/ta_static.rs | 6 +-
.../{supp_plugin-rs => tls_client-rs}/Makefile | 11 +-
.../{acipher-rs => tls_client-rs}/host/Cargo.toml | 4 +-
.../plugin => tls_client-rs/host}/Makefile | 18 +-
.../{time-rs => tls_client-rs}/host/src/main.rs | 8 +-
.../{big_int-rs => tls_client-rs}/proto/Cargo.toml | 6 +-
.../{acipher-rs => tls_client-rs}/proto/build.rs | 0
.../{time-rs => tls_client-rs}/proto/src/lib.rs | 6 +-
.../{acipher-rs => tls_client-rs}/ta/Cargo.toml | 23 ++-
examples/{acipher-rs => tls_client-rs}/ta/Makefile | 21 ++-
.../{acipher-rs => tls_client-rs}/ta/Xargo.toml | 0
examples/{acipher-rs => tls_client-rs}/ta/build.rs | 0
examples/tls_client-rs/ta/src/main.rs | 118 ++++++++++++
examples/{aes-rs => tls_client-rs}/ta/ta_static.rs | 6 +-
examples/tls_client-rs/uuid.txt | 1 +
.../{supp_plugin-rs => tls_server-rs}/Makefile | 11 +-
.../{acipher-rs => tls_server-rs}/host/Cargo.toml | 4 +-
.../plugin => tls_server-rs/host}/Makefile | 18 +-
examples/tls_server-rs/host/src/main.rs | 119 ++++++++++++
.../{big_int-rs => tls_server-rs}/proto/Cargo.toml | 6 +-
.../{acipher-rs => tls_server-rs}/proto/build.rs | 0
.../{digest-rs => tls_server-rs}/proto/src/lib.rs | 14 +-
.../{acipher-rs => tls_server-rs}/ta/Cargo.toml | 25 ++-
examples/{acipher-rs => tls_server-rs}/ta/Makefile | 21 ++-
.../{acipher-rs => tls_server-rs}/ta/Xargo.toml | 0
examples/{acipher-rs => tls_server-rs}/ta/build.rs | 0
examples/tls_server-rs/ta/src/main.rs | 178 ++++++++++++++++++
examples/{aes-rs => tls_server-rs}/ta/ta_static.rs | 6 +-
examples/tls_server-rs/ta/test-ca/ecdsa/ca.cert | 12 ++
examples/tls_server-rs/ta/test-ca/ecdsa/ca.der | Bin 0 -> 462 bytes
examples/tls_server-rs/ta/test-ca/ecdsa/ca.key | 6 +
.../tls_server-rs/ta/test-ca/ecdsa/client.cert | 13 ++
.../tls_server-rs/ta/test-ca/ecdsa/client.chain | 24 +++
.../ta/test-ca/ecdsa/client.fullchain | 37 ++++
examples/tls_server-rs/ta/test-ca/ecdsa/client.key | 6 +
examples/tls_server-rs/ta/test-ca/ecdsa/client.req | 8 +
examples/tls_server-rs/ta/test-ca/ecdsa/end.cert | 13 ++
examples/tls_server-rs/ta/test-ca/ecdsa/end.chain | 24 +++
.../tls_server-rs/ta/test-ca/ecdsa/end.fullchain | 37 ++++
examples/tls_server-rs/ta/test-ca/ecdsa/end.key | 5 +
examples/tls_server-rs/ta/test-ca/ecdsa/end.req | 7 +
examples/tls_server-rs/ta/test-ca/ecdsa/inter.cert | 12 ++
examples/tls_server-rs/ta/test-ca/ecdsa/inter.key | 5 +
examples/tls_server-rs/ta/test-ca/ecdsa/inter.req | 7 +
.../tls_server-rs/ta/test-ca/ecdsa/nistp256.pem | 3 +
.../tls_server-rs/ta/test-ca/ecdsa/nistp384.pem | 3 +
examples/tls_server-rs/uuid.txt | 1 +
.../{supp_plugin-rs => udp_socket-rs}/Makefile | 11 +-
.../{acipher-rs => udp_socket-rs}/host/Cargo.toml | 4 +-
.../plugin => udp_socket-rs/host}/Makefile | 18 +-
.../{time-rs => udp_socket-rs}/host/src/main.rs | 24 ++-
.../{big_int-rs => udp_socket-rs}/proto/Cargo.toml | 6 +-
.../{acipher-rs => udp_socket-rs}/proto/build.rs | 0
.../{time-rs => udp_socket-rs}/proto/src/lib.rs | 6 +-
examples/{aes-rs => udp_socket-rs}/ta/Cargo.toml | 9 +-
examples/{acipher-rs => udp_socket-rs}/ta/Makefile | 21 ++-
.../{acipher-rs => udp_socket-rs}/ta/Xargo.toml | 0
examples/{acipher-rs => udp_socket-rs}/ta/build.rs | 0
examples/{time-rs => udp_socket-rs}/ta/src/main.rs | 56 +++---
examples/{aes-rs => udp_socket-rs}/ta/ta_static.rs | 6 +-
examples/udp_socket-rs/uuid.txt | 1 +
tests/optee-qemuv8.sh | 9 +-
...t_hotp.sh => test_message_passing_interface.sh} | 17 +-
tests/{test_hotp.sh => test_serde.sh} | 14 +-
tests/{test_hotp.sh => test_tcp_client.sh} | 15 +-
tests/{test_hotp.sh => test_tls_client.sh} | 16 +-
tests/{test_hotp.sh => test_tls_server.sh} | 21 ++-
tests/{test_hotp.sh => test_udp_socket.sh} | 15 +-
184 files changed, 1920 insertions(+), 717 deletions(-)
create mode 100644 docs/migrating-to-new-building-env.md
copy examples/{supp_plugin-rs => message_passing_interface-rs}/Makefile (91%)
copy examples/{acipher-rs => message_passing_interface-rs}/host/Cargo.toml
(94%)
copy examples/{supp_plugin-rs/plugin =>
message_passing_interface-rs/host}/Makefile (76%)
create mode 100644 examples/message_passing_interface-rs/host/src/main.rs
copy examples/{authentication-rs =>
message_passing_interface-rs}/proto/Cargo.toml (86%)
copy examples/{acipher-rs => message_passing_interface-rs}/proto/build.rs
(100%)
copy examples/{diffie_hellman-rs =>
message_passing_interface-rs}/proto/src/lib.rs (72%)
copy examples/{aes-rs => message_passing_interface-rs}/ta/Cargo.toml (92%)
copy examples/{acipher-rs => message_passing_interface-rs}/ta/Makefile (73%)
copy examples/{acipher-rs => message_passing_interface-rs}/ta/Xargo.toml (100%)
copy examples/{acipher-rs => message_passing_interface-rs}/ta/build.rs (100%)
copy examples/{hello_world-rs => message_passing_interface-rs}/ta/src/main.rs
(61%)
copy examples/{aes-rs => message_passing_interface-rs}/ta/ta_static.rs (96%)
create mode 100644 examples/message_passing_interface-rs/uuid.txt
copy examples/{supp_plugin-rs => serde-rs}/Makefile (91%)
copy examples/{acipher-rs => serde-rs}/host/Cargo.toml (91%)
copy examples/{supp_plugin-rs/plugin => serde-rs/host}/Makefile (77%)
copy examples/{random-rs => serde-rs}/host/src/main.rs (70%)
copy examples/{big_int-rs => serde-rs}/proto/Cargo.toml (91%)
copy examples/{acipher-rs => serde-rs}/proto/build.rs (100%)
copy examples/{time-rs => serde-rs}/proto/src/lib.rs (95%)
copy examples/{aes-rs => serde-rs}/ta/Cargo.toml (94%)
copy examples/{acipher-rs => serde-rs}/ta/Makefile (73%)
copy examples/{acipher-rs => serde-rs}/ta/Xargo.toml (100%)
copy examples/{acipher-rs => serde-rs}/ta/build.rs (100%)
copy examples/{hello_world-rs => serde-rs}/ta/src/main.rs (61%)
copy examples/{aes-rs => serde-rs}/ta/ta_static.rs (96%)
create mode 100644 examples/serde-rs/uuid.txt
copy examples/{supp_plugin-rs => tcp_client-rs}/Makefile (91%)
copy examples/{acipher-rs => tcp_client-rs}/host/Cargo.toml (96%)
copy examples/{supp_plugin-rs/plugin => tcp_client-rs/host}/Makefile (76%)
copy examples/{time-rs => tcp_client-rs}/host/src/main.rs (88%)
copy examples/{big_int-rs => tcp_client-rs}/proto/Cargo.toml (91%)
copy examples/{acipher-rs => tcp_client-rs}/proto/build.rs (100%)
copy examples/{time-rs => tcp_client-rs}/proto/src/lib.rs (95%)
copy examples/{aes-rs => tcp_client-rs}/ta/Cargo.toml (92%)
copy examples/{acipher-rs => tcp_client-rs}/ta/Makefile (73%)
copy examples/{acipher-rs => tcp_client-rs}/ta/Xargo.toml (100%)
copy examples/{acipher-rs => tcp_client-rs}/ta/build.rs (100%)
copy examples/{time-rs => tcp_client-rs}/ta/src/main.rs (66%)
copy examples/{aes-rs => tcp_client-rs}/ta/ta_static.rs (96%)
create mode 100644 examples/tcp_client-rs/uuid.txt
copy examples/{supp_plugin-rs => tls_client-rs}/Makefile (91%)
copy examples/{acipher-rs => tls_client-rs}/host/Cargo.toml (96%)
copy examples/{supp_plugin-rs/plugin => tls_client-rs/host}/Makefile (76%)
copy examples/{time-rs => tls_client-rs}/host/src/main.rs (88%)
copy examples/{big_int-rs => tls_client-rs}/proto/Cargo.toml (91%)
copy examples/{acipher-rs => tls_client-rs}/proto/build.rs (100%)
copy examples/{time-rs => tls_client-rs}/proto/src/lib.rs (95%)
copy examples/{acipher-rs => tls_client-rs}/ta/Cargo.toml (67%)
copy examples/{acipher-rs => tls_client-rs}/ta/Makefile (73%)
copy examples/{acipher-rs => tls_client-rs}/ta/Xargo.toml (100%)
copy examples/{acipher-rs => tls_client-rs}/ta/build.rs (100%)
create mode 100644 examples/tls_client-rs/ta/src/main.rs
copy examples/{aes-rs => tls_client-rs}/ta/ta_static.rs (96%)
create mode 100644 examples/tls_client-rs/uuid.txt
copy examples/{supp_plugin-rs => tls_server-rs}/Makefile (91%)
copy examples/{acipher-rs => tls_server-rs}/host/Cargo.toml (96%)
copy examples/{supp_plugin-rs/plugin => tls_server-rs/host}/Makefile (76%)
create mode 100644 examples/tls_server-rs/host/src/main.rs
copy examples/{big_int-rs => tls_server-rs}/proto/Cargo.toml (91%)
copy examples/{acipher-rs => tls_server-rs}/proto/build.rs (100%)
copy examples/{digest-rs => tls_server-rs}/proto/src/lib.rs (82%)
copy examples/{acipher-rs => tls_server-rs}/ta/Cargo.toml (64%)
copy examples/{acipher-rs => tls_server-rs}/ta/Makefile (73%)
copy examples/{acipher-rs => tls_server-rs}/ta/Xargo.toml (100%)
copy examples/{acipher-rs => tls_server-rs}/ta/build.rs (100%)
create mode 100644 examples/tls_server-rs/ta/src/main.rs
copy examples/{aes-rs => tls_server-rs}/ta/ta_static.rs (96%)
create mode 100644 examples/tls_server-rs/ta/test-ca/ecdsa/ca.cert
create mode 100644 examples/tls_server-rs/ta/test-ca/ecdsa/ca.der
create mode 100644 examples/tls_server-rs/ta/test-ca/ecdsa/ca.key
create mode 100644 examples/tls_server-rs/ta/test-ca/ecdsa/client.cert
create mode 100644 examples/tls_server-rs/ta/test-ca/ecdsa/client.chain
create mode 100644 examples/tls_server-rs/ta/test-ca/ecdsa/client.fullchain
create mode 100644 examples/tls_server-rs/ta/test-ca/ecdsa/client.key
create mode 100644 examples/tls_server-rs/ta/test-ca/ecdsa/client.req
create mode 100644 examples/tls_server-rs/ta/test-ca/ecdsa/end.cert
create mode 100644 examples/tls_server-rs/ta/test-ca/ecdsa/end.chain
create mode 100644 examples/tls_server-rs/ta/test-ca/ecdsa/end.fullchain
create mode 100644 examples/tls_server-rs/ta/test-ca/ecdsa/end.key
create mode 100644 examples/tls_server-rs/ta/test-ca/ecdsa/end.req
create mode 100644 examples/tls_server-rs/ta/test-ca/ecdsa/inter.cert
create mode 100644 examples/tls_server-rs/ta/test-ca/ecdsa/inter.key
create mode 100644 examples/tls_server-rs/ta/test-ca/ecdsa/inter.req
create mode 100644 examples/tls_server-rs/ta/test-ca/ecdsa/nistp256.pem
create mode 100644 examples/tls_server-rs/ta/test-ca/ecdsa/nistp384.pem
create mode 100644 examples/tls_server-rs/uuid.txt
copy examples/{supp_plugin-rs => udp_socket-rs}/Makefile (91%)
copy examples/{acipher-rs => udp_socket-rs}/host/Cargo.toml (96%)
copy examples/{supp_plugin-rs/plugin => udp_socket-rs/host}/Makefile (76%)
copy examples/{time-rs => udp_socket-rs}/host/src/main.rs (64%)
copy examples/{big_int-rs => udp_socket-rs}/proto/Cargo.toml (91%)
copy examples/{acipher-rs => udp_socket-rs}/proto/build.rs (100%)
copy examples/{time-rs => udp_socket-rs}/proto/src/lib.rs (95%)
copy examples/{aes-rs => udp_socket-rs}/ta/Cargo.toml (89%)
copy examples/{acipher-rs => udp_socket-rs}/ta/Makefile (73%)
copy examples/{acipher-rs => udp_socket-rs}/ta/Xargo.toml (100%)
copy examples/{acipher-rs => udp_socket-rs}/ta/build.rs (100%)
copy examples/{time-rs => udp_socket-rs}/ta/src/main.rs (65%)
copy examples/{aes-rs => udp_socket-rs}/ta/ta_static.rs (96%)
create mode 100644 examples/udp_socket-rs/uuid.txt
copy tests/{test_hotp.sh => test_message_passing_interface.sh} (74%)
copy tests/{test_hotp.sh => test_serde.sh} (75%)
copy tests/{test_hotp.sh => test_tcp_client.sh} (76%)
copy tests/{test_hotp.sh => test_tls_client.sh} (77%)
copy tests/{test_hotp.sh => test_tls_server.sh} (69%)
copy tests/{test_hotp.sh => test_udp_socket.sh} (76%)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]