diff --git a/lib/teelib/libtee_stub/src/dstb_api.c b/lib/teelib/libtee_stub/src/dstb_api.c index 320e1a26..d6e171b5 100644 --- a/lib/teelib/libtee_stub/src/dstb_api.c +++ b/lib/teelib/libtee_stub/src/dstb_api.c @@ -1,3 +1,14 @@ +/* + * Copyright (C) 2022 Huawei Technologies Co., Ltd. + * Licensed under the Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * http://license.coscl.org.cn/MulanPSL2 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR + * PURPOSE. + * See the Mulan PSL v2 for more details. + */ #include TEE_Result tee_dstb_gen_sharekey(struct device_info *device_info, const uint8_t *salt, uint32_t salt_len, diff --git a/lib/teelib/libtee_stub/src/pthread_attr.c b/lib/teelib/libtee_stub/src/pthread_attr.c index 2ed74bb7..d521c659 100644 --- a/lib/teelib/libtee_stub/src/pthread_attr.c +++ b/lib/teelib/libtee_stub/src/pthread_attr.c @@ -1,3 +1,14 @@ +/* + * Copyright (C) 2022 Huawei Technologies Co., Ltd. + * Licensed under the Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * http://license.coscl.org.cn/MulanPSL2 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR + * PURPOSE. + * See the Mulan PSL v2 for more details. + */ #include int pthread_attr_settee(pthread_attr_t *attr, int ca, int task_id, int shadow) diff --git a/lib/teelib/libtee_stub/src/rpmb_driver_rw_api.c b/lib/teelib/libtee_stub/src/rpmb_driver_rw_api.c index 98d423b6..a7fa6d48 100644 --- a/lib/teelib/libtee_stub/src/rpmb_driver_rw_api.c +++ b/lib/teelib/libtee_stub/src/rpmb_driver_rw_api.c @@ -1,3 +1,15 @@ +/* + * Copyright (C) 2022 Huawei Technologies Co., Ltd. + * Licensed under the Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * http://license.coscl.org.cn/MulanPSL2 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR + * PURPOSE. + * See the Mulan PSL v2 for more details. + */ + #include "rpmb_driver_rw_api.h" TEE_Result tee_ext_rpmb_protect_cfg_blk_write(uint8_t lun, struct rpmb_protect_cfg_blk_entry *entries, uint32_t len) diff --git a/lib/teelib/libtee_stub/src/rpmb_fcntl.c b/lib/teelib/libtee_stub/src/rpmb_fcntl.c index 228b6e46..dd939b75 100644 --- a/lib/teelib/libtee_stub/src/rpmb_fcntl.c +++ b/lib/teelib/libtee_stub/src/rpmb_fcntl.c @@ -1,3 +1,14 @@ +/* + * Copyright (C) 2022 Huawei Technologies Co., Ltd. + * Licensed under the Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * http://license.coscl.org.cn/MulanPSL2 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR + * PURPOSE. + * See the Mulan PSL v2 for more details. + */ #include "rpmb_fcntl.h" #include "stdint.h" diff --git a/lib/teelib/libtee_stub/src/tee_apm_api.c b/lib/teelib/libtee_stub/src/tee_apm_api.c index 7d2d0118..fe3b8944 100644 --- a/lib/teelib/libtee_stub/src/tee_apm_api.c +++ b/lib/teelib/libtee_stub/src/tee_apm_api.c @@ -1,3 +1,14 @@ +/* + * Copyright (C) 2022 Huawei Technologies Co., Ltd. + * Licensed under the Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * http://license.coscl.org.cn/MulanPSL2 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR + * PURPOSE. + * See the Mulan PSL v2 for more details. + */ #include TEE_Result tee_query_ta_measure_report(const TEE_UUID *uuid, struct ta_measure_report_t *report) diff --git a/lib/teelib/libtee_stub/src/tee_ext_api.c b/lib/teelib/libtee_stub/src/tee_ext_api.c index 3268e3ec..8b747546 100644 --- a/lib/teelib/libtee_stub/src/tee_ext_api.c +++ b/lib/teelib/libtee_stub/src/tee_ext_api.c @@ -1,3 +1,14 @@ +/* + * Copyright (C) 2022 Huawei Technologies Co., Ltd. + * Licensed under the Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * http://license.coscl.org.cn/MulanPSL2 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR + * PURPOSE. + * See the Mulan PSL v2 for more details. + */ #include TEE_Result tee_ext_derive_ta_platfrom_keys(TEE_ObjectHandle object, uint32_t key_size, const TEE_Attribute *params, diff --git a/lib/teelib/libtee_stub/src/tee_hw_ext_api_legacy.c b/lib/teelib/libtee_stub/src/tee_hw_ext_api_legacy.c index 691f2008..b7abe2a1 100644 --- a/lib/teelib/libtee_stub/src/tee_hw_ext_api_legacy.c +++ b/lib/teelib/libtee_stub/src/tee_hw_ext_api_legacy.c @@ -1,3 +1,14 @@ +/* + * Copyright (C) 2022 Huawei Technologies Co., Ltd. + * Licensed under the Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * http://license.coscl.org.cn/MulanPSL2 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR + * PURPOSE. + * See the Mulan PSL v2 for more details. + */ #include "tee_hw_ext_api_legacy.h" TEE_Result TEE_EXT_DeriveTARootKey(const uint8_t *salt, uint32_t size, uint8_t *key, uint32_t key_size) diff --git a/lib/teelib/libtee_stub/src/tee_internal_se_api.c b/lib/teelib/libtee_stub/src/tee_internal_se_api.c index 215ae682..c6ca2585 100644 --- a/lib/teelib/libtee_stub/src/tee_internal_se_api.c +++ b/lib/teelib/libtee_stub/src/tee_internal_se_api.c @@ -1,3 +1,14 @@ +/* + * Copyright (C) 2022 Huawei Technologies Co., Ltd. + * Licensed under the Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * http://license.coscl.org.cn/MulanPSL2 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR + * PURPOSE. + * See the Mulan PSL v2 for more details. + */ #include "tee_internal_se_api.h" TEE_Result TEE_SEServiceOpen(TEE_SEServiceHandle *se_service_handle) diff --git a/lib/teelib/libtee_stub/src/tee_mem_monitoring_api.c b/lib/teelib/libtee_stub/src/tee_mem_monitoring_api.c index cddaabac..6183cf4b 100644 --- a/lib/teelib/libtee_stub/src/tee_mem_monitoring_api.c +++ b/lib/teelib/libtee_stub/src/tee_mem_monitoring_api.c @@ -1,3 +1,14 @@ +/* + * Copyright (C) 2022 Huawei Technologies Co., Ltd. + * Licensed under the Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * http://license.coscl.org.cn/MulanPSL2 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR + * PURPOSE. + * See the Mulan PSL v2 for more details. + */ #include "tee_mem_monitoring_api.h" #include "tee_defines.h" diff --git a/test/xts/ca/tee/tee_test_arithmetic_api/BUILD.gn b/test/xts/ca/tee/tee_test_arithmetic_api/BUILD.gn index f298d700..9943b232 100644 --- a/test/xts/ca/tee/tee_test_arithmetic_api/BUILD.gn +++ b/test/xts/ca/tee/tee_test_arithmetic_api/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. +# Copyright (C) 2021 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/test/xts/ca/tee/tee_test_client_api_system/BUILD.gn b/test/xts/ca/tee/tee_test_client_api_system/BUILD.gn index 63facbbe..aa578cbd 100644 --- a/test/xts/ca/tee/tee_test_client_api_system/BUILD.gn +++ b/test/xts/ca/tee/tee_test_client_api_system/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. +# Copyright (C) 2021 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/test/xts/ca/tee/tee_test_client_api_vendor/BUILD.gn b/test/xts/ca/tee/tee_test_client_api_vendor/BUILD.gn index 3cd88376..9c5efc78 100644 --- a/test/xts/ca/tee/tee_test_client_api_vendor/BUILD.gn +++ b/test/xts/ca/tee/tee_test_client_api_vendor/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. +# Copyright (C) 2021 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/test/xts/ca/tee/tee_test_crypto_api/BUILD.gn b/test/xts/ca/tee/tee_test_crypto_api/BUILD.gn index 7f1fa76a..4d6b9e38 100644 --- a/test/xts/ca/tee/tee_test_crypto_api/BUILD.gn +++ b/test/xts/ca/tee/tee_test_crypto_api/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. +# Copyright (C) 2021 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/test/xts/ca/tee/tee_test_device_api/BUILD.gn b/test/xts/ca/tee/tee_test_device_api/BUILD.gn index 6768c5de..4b07614d 100644 --- a/test/xts/ca/tee/tee_test_device_api/BUILD.gn +++ b/test/xts/ca/tee/tee_test_device_api/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. +# Copyright (C) 2021 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/test/xts/ca/tee/tee_test_tcf_api/BUILD.gn b/test/xts/ca/tee/tee_test_tcf_api/BUILD.gn index 0a9384e1..379dd6a2 100644 --- a/test/xts/ca/tee/tee_test_tcf_api/BUILD.gn +++ b/test/xts/ca/tee/tee_test_tcf_api/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. +# Copyright (C) 2021 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/test/xts/ca/tee/tee_test_time_api/BUILD.gn b/test/xts/ca/tee/tee_test_time_api/BUILD.gn index 64b9b766..bd11a2b0 100644 --- a/test/xts/ca/tee/tee_test_time_api/BUILD.gn +++ b/test/xts/ca/tee/tee_test_time_api/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. +# Copyright (C) 2021 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/test/xts/ca/tee/tee_test_trusted_storage_api/BUILD.gn b/test/xts/ca/tee/tee_test_trusted_storage_api/BUILD.gn index 6fcc281a..279f0145 100644 --- a/test/xts/ca/tee/tee_test_trusted_storage_api/BUILD.gn +++ b/test/xts/ca/tee/tee_test_trusted_storage_api/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. +# Copyright (C) 2021 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at