Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
20adadd5cc
!39 support remote attestation
From: @houmingyong 
Reviewed-by: @BornThisWay 
Signed-off-by: @BornThisWay
2023-04-26 03:52:04 +00:00
houmingyong
1e3852c3b8 support remote attestation 2023-04-26 11:24:58 +08:00
openeuler-ci-bot
e42f072b06
!38 add ta openssl headers
From: @houmingyong 
Reviewed-by: @BornThisWay 
Signed-off-by: @BornThisWay
2023-04-11 03:20:29 +00:00
houmingyong
7372742404 add ta openssl headers 2023-04-11 11:07:18 +08:00
openeuler-ci-bot
610b0111be
!31 fix error source pkg
From: @gys66 
Reviewed-by: @houmingyong 
Signed-off-by: @houmingyong
2022-11-22 09:22:01 +00:00
gaoyusong
43aac26d49 fix error source pkg
Signed-off-by: gaoyusong <gaoyusong2@huawei.com>
2022-11-22 17:07:58 +08:00
openeuler-ci-bot
4de7674265
!28 支持零拷贝共享内存
From: @zhengxiaoxiaoGitee 
Reviewed-by: @houmingyong 
Signed-off-by: @houmingyong
2022-10-18 12:45:55 +00:00
zhengxiaoxiao
b0d112ad59 support: no-copy shared memory 2022-10-18 20:20:05 +08:00
openeuler-ci-bot
e556893a00
!27 split itrustee_sdk into itrustee_sdk and itrustee_sdk-devel
From: @zhengxiaoxiaoGitee 
Reviewed-by: @houmingyong 
Signed-off-by: @houmingyong
2022-10-18 12:01:36 +00:00
zhengxiaoxiao
e38135ae3a split itrustee_sdk into itrustee_sdk and itrustee_sdk-devel 2022-10-18 19:51:22 +08:00
5 changed files with 40070 additions and 3 deletions

View File

@ -0,0 +1,46 @@
From 790d125b5422de0dbcaec67c88aa89d58b258c58 Mon Sep 17 00:00:00 2001
From: root <root@DESKTOP-OCBU7K8.localdomain>
Date: Fri, 6 May 2022 19:35:30 +0800
Subject: [PATCH] lilianhui1@huawei.com
Signed-off-by: root <root@DESKTOP-OCBU7K8.localdomain>
---
include/CA/tee_client_constants.h | 2 ++
include/TA/tee_defines.h | 1 +
2 files changed, 3 insertions(+)
diff --git a/include/CA/tee_client_constants.h b/include/CA/tee_client_constants.h
index 9ddff9b..3b86dcb 100644
--- a/include/CA/tee_client_constants.h
+++ b/include/CA/tee_client_constants.h
@@ -66,6 +66,7 @@ enum TEEC_SharedMemCtl {
TEEC_MEM_INPUT = 0x1, /* input type of memroy */
TEEC_MEM_OUTPUT = 0x2, /* output type of memory */
TEEC_MEM_INOUT = 0x3, /* memory is used as both input and output */
+ TEEC_MEM_SHARED_INOUT = 0x4, /* no copy shared memory */
};
enum TEEC_ParamType {
@@ -79,6 +80,7 @@ enum TEEC_ParamType {
refer TEEC_TempMemoryReference */
TEEC_ION_INPUT = 0x08, /* input type of icon memory reference, refer TEEC_IonReference */
TEEC_ION_SGLIST_INPUT = 0x09, /* input type of ion memory block reference, refer TEEC_IonSglistReference */
+ TEEC_MEMREF_SHARED_INOUT = 0xa, /* no copy mem */
TEEC_MEMREF_WHOLE = 0xc, /* use whole memory block, refer TEEC_RegisteredMemoryReference */
TEEC_MEMREF_PARTIAL_INPUT = 0xd, /* input type of memory reference, refer TEEC_RegisteredMemoryReference */
TEEC_MEMREF_PARTIAL_OUTPUT = 0xe, /* output type of memory reference, refer TEEC_RegisteredMemoryReference */
diff --git a/include/TA/tee_defines.h b/include/TA/tee_defines.h
index 8289c07..8fa7ada 100755
--- a/include/TA/tee_defines.h
+++ b/include/TA/tee_defines.h
@@ -84,6 +84,7 @@ enum TEE_ParamType {
TEE_PARAM_TYPE_MEMREF_INOUT = 0x7,
TEE_PARAM_TYPE_ION_INPUT = 0x8,
TEE_PARAM_TYPE_ION_SGLIST_INPUT = 0x9,
+ TEE_PARAM_TYPE_MEMREF_SHARED_INOUT = 0xa,
};
#define S_VAR_NOT_USED(variable) \
--
2.27.0

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
Name: itrustee_sdk
Version: 0.1.0
Release: 5
Release: 10
Summary: Confidential computing framework for developing TA on itrustee OS
ExclusiveArch: aarch64
@ -10,15 +10,24 @@ URL: https://gitee.com/openeuler/itrustee_sdk
Source0: https://gitee.com/openeuler/itrustee_sdk/repository/archive/v%{version}.tar.gz
Patch0: 0001-add-Makefile-to-create-libteec_adaptor.so.patch
Patch1: 0002-add-ftrapv-strip-and-FS-as-the-compiling-flags.patch
Patch2: 0003-no-copy-shared-memory.patch
Patch3: 0004-support-part-openssl-headers.patch
Patch4: 0005-support-remote-attestation.patch
Provides: libteec_adaptor.so()(64bit)
%define debug_package %{nil}
%description
itrustee_sdk is a confidential computing framework for developing TA on itrustee OS
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel is package contains Header file for developing applications that
us %{name}
%prep
%autosetup -n %{name} -p1
%autosetup -n %{name}-v%{version} -p1
%build
sed -i 's/fPIC/fPIC -g/g' Makefile
@ -30,16 +39,37 @@ make
%install
install -d %{buildroot}/opt/
install -d %{buildroot}/lib64/
install -d %{buildroot}/%{_sysconfdir}/secGear/cloud/
make install DESTDIR=%{buildroot}/
install -pm 644 build/signtools/cloud/rsa_public_key_cloud.pem %{buildroot}/%{_sysconfdir}/secGear/cloud
strip %{buildroot}/lib64/*.so
%files
%files devel
%defattr(-,root,root)
/opt/itrustee_sdk
%{_sysconfdir}/secGear/cloud/rsa_public_key_cloud.pem
%files
%defattr(-,root,root)
/lib64/libteec_adaptor.so
%changelog
* Wed Apr 26 2023 houmingyong<houmingyong@huawei.com> - 0.1.0-10
- DESC:support remote attestation
* Tue Apr 11 2023 houmingyong<houmingyong@huawei.com> - 0.1.0-9
- DESC:add ta openssl headers
* Tue Nov 22 2022 gaoyusong <gaoyusong2@huawei.com> - 0.1.0-8
- DESC:fix error source pkg
* Tue Oct 18 2022 zhengxiaoxiao <zhengxiaoxiao2@huawei.com> - 0.1.0-7
- DESC:support: no-copy shared memory
* Tue Oct 18 2022 zhengxiaoxiao <zhengxiaoxiao2@huawei.com> - 0.1.0-6
- split itrustee_sdk into itrustee_sdk and itrustee_sdk-devel
* Mon Jun 27 2022 gaoyusong <gaoyusong2@huawei.com> - 0.1.0-5
- add ftrapv, strip, and FS as the compiling flags

Binary file not shown.