xref: /optee_os/core/tee/sub.mk (revision 316a94e710afc8dcb5b6ac991741ac6370af65fc)
1CFG_CRYPTO ?= y
2
3ifeq (y,$(CFG_CRYPTO))
4
5# HMAC-based Extract-and-Expand Key Derivation Function
6# http://tools.ietf.org/html/rfc5869
7# This is an OP-TEE extension, not part of the GlobalPlatform Internal API v1.0
8CFG_CRYPTO_HKDF ?= y
9
10# NIST SP800-56A Concatenation Key Derivation Function
11# This is an OP-TEE extension
12CFG_CRYPTO_CONCAT_KDF ?= y
13
14# PKCS #5 v2.0 / RFC 2898 key derivation function 2
15# This is an OP-TEE extension
16CFG_CRYPTO_PBKDF2 ?= y
17
18endif
19
20srcs-y += tee_svc.c
21srcs-y += tee_svc_cryp.c
22srcs-y += tee_svc_storage.c
23srcs-y += tee_cryp_utl.c
24srcs-$(CFG_CRYPTO_HKDF) += tee_cryp_hkdf.c
25srcs-$(CFG_CRYPTO_CONCAT_KDF) += tee_cryp_concat_kdf.c
26srcs-$(CFG_CRYPTO_PBKDF2) += tee_cryp_pbkdf2.c
27
28srcs-y += tee_fs_common.c
29ifeq (y,$(CFG_ENC_FS))
30srcs-y += tee_enc_fs_key_manager.c
31srcs-y += tee_enc_fs.c
32else
33srcs-y += tee_fs.c
34endif
35
36srcs-y += tee_obj.c
37srcs-y += tee_pobj.c
38srcs-y += tee_rpmb_fs.c
39srcs-y += tee_time_generic.c
40srcs-y += abi.c
41
42subdirs-${CFG_SE_API} += se
43