History log of /optee_os/ (Results 5676 – 5700 of 8382)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
89ed30d111-Mar-2019 Jens Wiklander <jens.wiklander@linaro.org>

core: ltc: move rsa wrappers to separate file

Moves the RSA wrappers in tee_ltc_provider.c to its own file, rsa.c.

Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wikla

core: ltc: move rsa wrappers to separate file

Moves the RSA wrappers in tee_ltc_provider.c to its own file, rsa.c.

Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

6644e2f011-Mar-2019 Jens Wiklander <jens.wiklander@linaro.org>

core: ltc: move ecc wrappers to separate file

Moves the ECC wrappers in tee_ltc_provider.c to its own file, ecc.c.

Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wikla

core: ltc: move ecc wrappers to separate file

Moves the ECC wrappers in tee_ltc_provider.c to its own file, ecc.c.

Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

1ac17bb511-Mar-2019 Jens Wiklander <jens.wiklander@linaro.org>

core: ltc: move dsa wrappers to separate file

Moves the DSA wrappers in tee_ltc_provider.c to its own file, dsa.c.

Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wikla

core: ltc: move dsa wrappers to separate file

Moves the DSA wrappers in tee_ltc_provider.c to its own file, dsa.c.

Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

da1de55727-Mar-2019 Jens Wiklander <jens.wiklander@linaro.org>

core: crypto.c: don't use _CFG_CRYPTO_WITH_ACIPHER

Uses CFG_CRYPTO_RSA, CFG_CRYPTO_DSA, CFG_CRYPTO_DH and CFG_CRYPTO_ECC to
tell if bignum functions needs to be stubbed instead of relying on
_CFG_CR

core: crypto.c: don't use _CFG_CRYPTO_WITH_ACIPHER

Uses CFG_CRYPTO_RSA, CFG_CRYPTO_DSA, CFG_CRYPTO_DH and CFG_CRYPTO_ECC to
tell if bignum functions needs to be stubbed instead of relying on
_CFG_CRYPTO_WITH_ACIPHER which is about to be removed.

Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

471ce4b625-Mar-2019 Jens Wiklander <jens.wiklander@linaro.org>

Move CFG_CORE_MBEDTLS_MPI init to mk/config.mk

Moves default assignment of CFG_CORE_MBEDTLS_MPI into mk/config.mk

Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wiklan

Move CFG_CORE_MBEDTLS_MPI init to mk/config.mk

Moves default assignment of CFG_CORE_MBEDTLS_MPI into mk/config.mk

Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

68689d8625-Mar-2019 Jens Wiklander <jens.wiklander@linaro.org>

Move CFG_CRYPTOLIB_{NAME,DIR} init to mk/config.mk

Moves default initialization of CFG_CRYPTOLIB_NAME and CFG_CRYPTOLIB_DIR
to mk/config.mk.

Only assigns default y to CFG_CRYPTO_RSASSA_NA1 in case

Move CFG_CRYPTOLIB_{NAME,DIR} init to mk/config.mk

Moves default initialization of CFG_CRYPTOLIB_NAME and CFG_CRYPTOLIB_DIR
to mk/config.mk.

Only assigns default y to CFG_CRYPTO_RSASSA_NA1 in case
CFG_CRYPTOLIB_NAME == tomcrypt.

Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

2b39fbe027-Mar-2019 Jens Wiklander <jens.wiklander@linaro.org>

core: arm: link tee.elf with lib archives

Links tee.elf with the library archives instead of -llibname in order to
detect multiply defined symbols in several libraries.

Acked-by: Jerome Forissier <

core: arm: link tee.elf with lib archives

Links tee.elf with the library archives instead of -llibname in order to
detect multiply defined symbols in several libraries.

Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

f785990627-Mar-2019 Jens Wiklander <jens.wiklander@linaro.org>

core: ltc: dsa_import() use inlen instead of MAX_RSA_SIZE

Upstream has changed dsa_import() to use inlen instead of MAX_RSA_SIZE.
This is needed when compiling LTC with DSA but without RSA support.

core: ltc: dsa_import() use inlen instead of MAX_RSA_SIZE

Upstream has changed dsa_import() to use inlen instead of MAX_RSA_SIZE.
This is needed when compiling LTC with DSA but without RSA support.

Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

e7dbc35702-Jul-2018 Summer Qin <summer.qin@arm.com>

core: add encrypt key length in AES encrypt API

Adds size of expanded AES encryption key to crypto_aes_expand_enc_key()
and crypto_aes_enc_block() to make the functions more safe to call.

Reviewed-

core: add encrypt key length in AES encrypt API

Adds size of expanded AES encryption key to crypto_aes_expand_enc_key()
and crypto_aes_enc_block() to make the functions more safe to call.

Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Summer Qin <summer.qin@arm.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

fcd21d9e21-Mar-2019 Jens Wiklander <jens.wiklander@linaro.org>

core: compile only libmpa with libtomcrypt

Only compile libmpa if libtomcrypt is selected as crypto library and is
configured to use libmpa instead of MPI.

Reviewed-by: Jerome Forissier <jerome.for

core: compile only libmpa with libtomcrypt

Only compile libmpa if libtomcrypt is selected as crypto library and is
configured to use libmpa instead of MPI.

Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

fa788ef922-Mar-2019 Jens Wiklander <jens.wiklander@linaro.org>

Only clear base-prefix for crypto libraries in core

If the crypto library selected with CFG_CRYPTOLIB_NAME and
CFG_CRYPTOLIB_DIR resides under core it's OK to clear base-prefix.
However, if it can b

Only clear base-prefix for crypto libraries in core

If the crypto library selected with CFG_CRYPTOLIB_NAME and
CFG_CRYPTOLIB_DIR resides under core it's OK to clear base-prefix.
However, if it can be compiled for user space too we need to keep
base-prefix in order to avoid output conflicts.

Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

18dd462b22-Mar-2019 Jens Wiklander <jens.wiklander@linaro.org>

Add CFG_CRYPTOLIB_NAME_$(CFG_CRYPTOLIB_NAME)

Adds CFG_CRYPTOLIB_NAME_$(CFG_CRYPTOLIB_NAME) := y for easy testing of
which cryptolib currently is in use.

Mbedtls is a bit tricky since it can be comp

Add CFG_CRYPTOLIB_NAME_$(CFG_CRYPTOLIB_NAME)

Adds CFG_CRYPTOLIB_NAME_$(CFG_CRYPTOLIB_NAME) := y for easy testing of
which cryptolib currently is in use.

Mbedtls is a bit tricky since it can be compiled either as a support lib
with the bignum routines or as a complete crypto lib.
CFG_CRYPTOLIB_NAME_$(CFG_CRYPTOLIB_NAME) can be used to select optimal
configuration.

Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

17c68af422-Mar-2019 Jens Wiklander <jens.wiklander@linaro.org>

core: crypto: move AES-CTS wrappers from libtomcrypt/ to crypto/

Moves the AES-CTS implementation from LTC wrapper to core/crypto.

The AES-CTS implementation can be overridden in a crypto library b

core: crypto: move AES-CTS wrappers from libtomcrypt/ to crypto/

Moves the AES-CTS implementation from LTC wrapper to core/crypto.

The AES-CTS implementation can be overridden in a crypto library by
setting CFG_CRYPTO_CTS_FROM_CRYPTOLIB:=y

Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

3d3b059120-Mar-2019 Jens Wiklander <jens.wiklander@linaro.org>

Squashed commit upgrading to mbedtls-2.16.0

Squash merging branch import/mbedtls-2.16.0

9ee2a92de51f ("libmbedtls: compile new files added with 2.16.0")
9b0818d48d29 ("mbedtls: fix memory leak in m

Squashed commit upgrading to mbedtls-2.16.0

Squash merging branch import/mbedtls-2.16.0

9ee2a92de51f ("libmbedtls: compile new files added with 2.16.0")
9b0818d48d29 ("mbedtls: fix memory leak in mpi_miller_rabin()")
2d6644ee0bbe ("libmedtls: mpi_miller_rabin: increase count limit")
d831db4c238a ("libmbedtls: add mbedtls_mpi_init_mempool()")
df0f4886b663 ("libmbedtls: make mbedtls_mpi_mont*() available")
7b0792062b65 ("libmbedtls: refine mbedtls license header")
2616e2d9709f ("mbedtls: configure mbedtls to reach for config")
d686ab1c51b7 ("mbedtls: remove default include/mbedtls/config.h")
50a57cfac892 ("Import mbedtls-2.16.0")

Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...


lib/libmbedtls/mbedtls/CONTRIBUTING.md
lib/libmbedtls/mbedtls/ChangeLog
lib/libmbedtls/mbedtls/README.md
lib/libmbedtls/mbedtls/include/mbedtls/aes.h
lib/libmbedtls/mbedtls/include/mbedtls/aesni.h
lib/libmbedtls/mbedtls/include/mbedtls/arc4.h
lib/libmbedtls/mbedtls/include/mbedtls/aria.h
lib/libmbedtls/mbedtls/include/mbedtls/asn1.h
lib/libmbedtls/mbedtls/include/mbedtls/asn1write.h
lib/libmbedtls/mbedtls/include/mbedtls/base64.h
lib/libmbedtls/mbedtls/include/mbedtls/bignum.h
lib/libmbedtls/mbedtls/include/mbedtls/blowfish.h
lib/libmbedtls/mbedtls/include/mbedtls/bn_mul.h
lib/libmbedtls/mbedtls/include/mbedtls/camellia.h
lib/libmbedtls/mbedtls/include/mbedtls/ccm.h
lib/libmbedtls/mbedtls/include/mbedtls/certs.h
lib/libmbedtls/mbedtls/include/mbedtls/chacha20.h
lib/libmbedtls/mbedtls/include/mbedtls/chachapoly.h
lib/libmbedtls/mbedtls/include/mbedtls/check_config.h
lib/libmbedtls/mbedtls/include/mbedtls/cipher.h
lib/libmbedtls/mbedtls/include/mbedtls/cipher_internal.h
lib/libmbedtls/mbedtls/include/mbedtls/cmac.h
lib/libmbedtls/mbedtls/include/mbedtls/compat-1.3.h
lib/libmbedtls/mbedtls/include/mbedtls/ctr_drbg.h
lib/libmbedtls/mbedtls/include/mbedtls/debug.h
lib/libmbedtls/mbedtls/include/mbedtls/des.h
lib/libmbedtls/mbedtls/include/mbedtls/dhm.h
lib/libmbedtls/mbedtls/include/mbedtls/ecdh.h
lib/libmbedtls/mbedtls/include/mbedtls/ecdsa.h
lib/libmbedtls/mbedtls/include/mbedtls/ecjpake.h
lib/libmbedtls/mbedtls/include/mbedtls/ecp.h
lib/libmbedtls/mbedtls/include/mbedtls/ecp_internal.h
lib/libmbedtls/mbedtls/include/mbedtls/entropy.h
lib/libmbedtls/mbedtls/include/mbedtls/entropy_poll.h
lib/libmbedtls/mbedtls/include/mbedtls/error.h
lib/libmbedtls/mbedtls/include/mbedtls/gcm.h
lib/libmbedtls/mbedtls/include/mbedtls/havege.h
lib/libmbedtls/mbedtls/include/mbedtls/hkdf.h
lib/libmbedtls/mbedtls/include/mbedtls/hmac_drbg.h
lib/libmbedtls/mbedtls/include/mbedtls/md.h
lib/libmbedtls/mbedtls/include/mbedtls/md2.h
lib/libmbedtls/mbedtls/include/mbedtls/md4.h
lib/libmbedtls/mbedtls/include/mbedtls/md5.h
lib/libmbedtls/mbedtls/include/mbedtls/md_internal.h
lib/libmbedtls/mbedtls/include/mbedtls/memory_buffer_alloc.h
lib/libmbedtls/mbedtls/include/mbedtls/net.h
lib/libmbedtls/mbedtls/include/mbedtls/net_sockets.h
lib/libmbedtls/mbedtls/include/mbedtls/nist_kw.h
lib/libmbedtls/mbedtls/include/mbedtls/oid.h
lib/libmbedtls/mbedtls/include/mbedtls/padlock.h
lib/libmbedtls/mbedtls/include/mbedtls/pem.h
lib/libmbedtls/mbedtls/include/mbedtls/pk.h
lib/libmbedtls/mbedtls/include/mbedtls/pk_internal.h
lib/libmbedtls/mbedtls/include/mbedtls/pkcs11.h
lib/libmbedtls/mbedtls/include/mbedtls/pkcs12.h
lib/libmbedtls/mbedtls/include/mbedtls/pkcs5.h
lib/libmbedtls/mbedtls/include/mbedtls/platform.h
lib/libmbedtls/mbedtls/include/mbedtls/platform_time.h
lib/libmbedtls/mbedtls/include/mbedtls/platform_util.h
lib/libmbedtls/mbedtls/include/mbedtls/poly1305.h
lib/libmbedtls/mbedtls/include/mbedtls/ripemd160.h
lib/libmbedtls/mbedtls/include/mbedtls/rsa.h
lib/libmbedtls/mbedtls/include/mbedtls/rsa_internal.h
lib/libmbedtls/mbedtls/include/mbedtls/sha1.h
lib/libmbedtls/mbedtls/include/mbedtls/sha256.h
lib/libmbedtls/mbedtls/include/mbedtls/sha512.h
lib/libmbedtls/mbedtls/include/mbedtls/ssl.h
lib/libmbedtls/mbedtls/include/mbedtls/ssl_cache.h
lib/libmbedtls/mbedtls/include/mbedtls/ssl_ciphersuites.h
lib/libmbedtls/mbedtls/include/mbedtls/ssl_cookie.h
lib/libmbedtls/mbedtls/include/mbedtls/ssl_internal.h
lib/libmbedtls/mbedtls/include/mbedtls/ssl_ticket.h
lib/libmbedtls/mbedtls/include/mbedtls/threading.h
lib/libmbedtls/mbedtls/include/mbedtls/timing.h
lib/libmbedtls/mbedtls/include/mbedtls/version.h
lib/libmbedtls/mbedtls/include/mbedtls/x509.h
lib/libmbedtls/mbedtls/include/mbedtls/x509_crl.h
lib/libmbedtls/mbedtls/include/mbedtls/x509_crt.h
lib/libmbedtls/mbedtls/include/mbedtls/x509_csr.h
lib/libmbedtls/mbedtls/include/mbedtls/xtea.h
lib/libmbedtls/mbedtls/library/aes.c
lib/libmbedtls/mbedtls/library/aesni.c
lib/libmbedtls/mbedtls/library/arc4.c
lib/libmbedtls/mbedtls/library/aria.c
lib/libmbedtls/mbedtls/library/asn1parse.c
lib/libmbedtls/mbedtls/library/asn1write.c
lib/libmbedtls/mbedtls/library/bignum.c
lib/libmbedtls/mbedtls/library/blowfish.c
lib/libmbedtls/mbedtls/library/camellia.c
lib/libmbedtls/mbedtls/library/ccm.c
lib/libmbedtls/mbedtls/library/certs.c
lib/libmbedtls/mbedtls/library/chacha20.c
lib/libmbedtls/mbedtls/library/chachapoly.c
lib/libmbedtls/mbedtls/library/cipher.c
lib/libmbedtls/mbedtls/library/cipher_wrap.c
lib/libmbedtls/mbedtls/library/cmac.c
lib/libmbedtls/mbedtls/library/ctr_drbg.c
lib/libmbedtls/mbedtls/library/debug.c
lib/libmbedtls/mbedtls/library/des.c
lib/libmbedtls/mbedtls/library/dhm.c
lib/libmbedtls/mbedtls/library/ecdh.c
lib/libmbedtls/mbedtls/library/ecdsa.c
lib/libmbedtls/mbedtls/library/ecjpake.c
lib/libmbedtls/mbedtls/library/ecp.c
lib/libmbedtls/mbedtls/library/ecp_curves.c
lib/libmbedtls/mbedtls/library/entropy.c
lib/libmbedtls/mbedtls/library/entropy_poll.c
lib/libmbedtls/mbedtls/library/error.c
lib/libmbedtls/mbedtls/library/gcm.c
lib/libmbedtls/mbedtls/library/havege.c
lib/libmbedtls/mbedtls/library/hkdf.c
lib/libmbedtls/mbedtls/library/hmac_drbg.c
lib/libmbedtls/mbedtls/library/md.c
lib/libmbedtls/mbedtls/library/md2.c
lib/libmbedtls/mbedtls/library/md4.c
lib/libmbedtls/mbedtls/library/md5.c
lib/libmbedtls/mbedtls/library/md_wrap.c
lib/libmbedtls/mbedtls/library/memory_buffer_alloc.c
lib/libmbedtls/mbedtls/library/net_sockets.c
lib/libmbedtls/mbedtls/library/nist_kw.c
lib/libmbedtls/mbedtls/library/oid.c
lib/libmbedtls/mbedtls/library/pem.c
lib/libmbedtls/mbedtls/library/pk.c
lib/libmbedtls/mbedtls/library/pk_wrap.c
lib/libmbedtls/mbedtls/library/pkcs12.c
lib/libmbedtls/mbedtls/library/pkcs5.c
lib/libmbedtls/mbedtls/library/pkparse.c
lib/libmbedtls/mbedtls/library/pkwrite.c
lib/libmbedtls/mbedtls/library/platform.c
lib/libmbedtls/mbedtls/library/platform_util.c
lib/libmbedtls/mbedtls/library/poly1305.c
lib/libmbedtls/mbedtls/library/ripemd160.c
lib/libmbedtls/mbedtls/library/rsa.c
lib/libmbedtls/mbedtls/library/rsa_internal.c
lib/libmbedtls/mbedtls/library/sha1.c
lib/libmbedtls/mbedtls/library/sha256.c
lib/libmbedtls/mbedtls/library/sha512.c
lib/libmbedtls/mbedtls/library/ssl_cache.c
lib/libmbedtls/mbedtls/library/ssl_ciphersuites.c
lib/libmbedtls/mbedtls/library/ssl_cli.c
lib/libmbedtls/mbedtls/library/ssl_cookie.c
lib/libmbedtls/mbedtls/library/ssl_srv.c
lib/libmbedtls/mbedtls/library/ssl_ticket.c
lib/libmbedtls/mbedtls/library/ssl_tls.c
lib/libmbedtls/mbedtls/library/threading.c
lib/libmbedtls/mbedtls/library/timing.c
lib/libmbedtls/mbedtls/library/version.c
lib/libmbedtls/mbedtls/library/version_features.c
lib/libmbedtls/mbedtls/library/x509.c
lib/libmbedtls/mbedtls/library/x509_create.c
lib/libmbedtls/mbedtls/library/x509_crl.c
lib/libmbedtls/mbedtls/library/x509_crt.c
lib/libmbedtls/mbedtls/library/x509_csr.c
lib/libmbedtls/mbedtls/library/x509write_crt.c
lib/libmbedtls/mbedtls/library/x509write_csr.c
lib/libmbedtls/mbedtls/library/xtea.c
lib/libmbedtls/sub.mk
7dfff13120-Dec-2018 Jerome Forissier <jerome.forissier@linaro.org>

core: user_ta: implement ASLR for TAs

Introduces CFG_TA_ASLR to enable Address Space Layout Randomization of
Trusted Applications. ASLR makes the exploitation of memory corruption
vulnerabilities ha

core: user_ta: implement ASLR for TAs

Introduces CFG_TA_ASLR to enable Address Space Layout Randomization of
Trusted Applications. ASLR makes the exploitation of memory corruption
vulnerabilities harder.
The feature is disabled by default except for the configurations I
could test (QEMU and HiKey960).
When CFG_TA_ASLR=y, the stack and subsequent ELF file(s) needed by the
TA are mapped into the user VA space with a random offset comprised
between CFG_TA_ASLR_MIN_OFFSET_PAGES and CFG_TA_ASLR_MAX_OFFSET_PAGES
pages (that is between 0 and 128 pages by default).

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (QEMU, HiKey960)
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

0a8fec7520-Dec-2018 Jerome Forissier <jerome.forissier@linaro.org>

core: user_ta: use consistent formatting for addresses in TA dump

Improve the layout of the TA dump message by using fixed width for
physical and virtual addresses: 0x + 8 or 16 characters, dependin

core: user_ta: use consistent formatting for addresses in TA dump

Improve the layout of the TA dump message by using fixed width for
physical and virtual addresses: 0x + 8 or 16 characters, depending on
the address size (32 or 64 bits). This makes the output more
consistent, more readable, and nicer overall.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

b0d497fa20-Dec-2018 Jerome Forissier <jerome.forissier@linaro.org>

libutils: export PRIxVA_WIDTH and add PRIxPA_WIDTH

Export two macros that are useful to print virtual or physical addresses
with the full width required by the native type, that is, 0x + 8
character

libutils: export PRIxVA_WIDTH and add PRIxPA_WIDTH

Export two macros that are useful to print virtual or physical addresses
with the full width required by the native type, that is, 0x + 8
characters when the pointer size is 32 bits, and 0x + 16 characters when
it is 64 bits.

Example:

vaddr_t va = 0x1234;

DMSG("va=0x%0*" PRIxVA, PRIxVA_WIDTH, va);

The above code will print "va=0x00001234" if vaddr_t is 32 bits, and
"va=0x0000000000001234" if vaddr_t is 64 bits.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

c1e1e2e515-Mar-2019 Jerome Forissier <jerome.forissier@linaro.org>

libutee: fix off-by-one errors in base64_dec()

There is a possible buffer overflow in base64_dec(). Since the output
buffer size is *blen, the last byte of the buffer is buf[*blen - 1] and
therefore

libutee: fix off-by-one errors in base64_dec()

There is a possible buffer overflow in base64_dec(). Since the output
buffer size is *blen, the last byte of the buffer is buf[*blen - 1] and
therefore the buffer must not be written to when the current index m is
such that (m >= *blen), not (m > *blen).

Reported-by: Naveen Thenkani <tnaveenmca@gmail.com>
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>

show more ...

7696ab7f14-Mar-2019 Jens Wiklander <jens.wiklander@linaro.org>

libutee: lessen dependency on mbedtls internals

Until now tee_api_arith_mpi.c assumed that for instance
TEE_BigIntConvertFromOctetString() wouldn't do a
mbedtls_mpi_free(mpi);
mbedtls_mpi_init(mpi);

libutee: lessen dependency on mbedtls internals

Until now tee_api_arith_mpi.c assumed that for instance
TEE_BigIntConvertFromOctetString() wouldn't do a
mbedtls_mpi_free(mpi);
mbedtls_mpi_init(mpi);
sequence on the supplied mpi argument. Doing so replaces the special
allocation type MBEDTLS_MPI_ALLOC_TYPE_STATIC with
MBEDTLS_MPI_ALLOC_TYPE_MALLOC. This results in the value of the mpi
argument isn't propagated further to the dest argument of
TEE_BigIntConvertFromOctetString().

With this patch we're instead explicitly copying the value of
mbedtls_mpi to a TEE_BigInt when the value should be returned.

This patch is also needed when upgrading to mbedtls-2.16 or there will
be errors.

Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (QEMU, GP)
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

b37d324015-Mar-2019 Jerome Forissier <jerome.forissier@linaro.org>

Add mbed TLS types to typedefs.checkpatch

Adds a couple of mbed TLS types to typedefs.checkpatch to avoid the
following warning:

WARNING: Missing a blank line after declarations
#100: FILE: lib/l

Add mbed TLS types to typedefs.checkpatch

Adds a couple of mbed TLS types to typedefs.checkpatch to avoid the
following warning:

WARNING: Missing a blank line after declarations
#100: FILE: lib/libutee/tee_api_arith_mpi.c:105:
+ const struct bigint_hdr *hdr = (struct bigint_hdr *)bigInt;
+ const mbedtls_mpi_uint *p = (const mbedtls_mpi_uint *)(hdr + 1);

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

e9495e2a12-Mar-2019 Rouven Czerwinski <r.czerwinski@pengutronix.de>

generic_boot: reserve optee_tzdram memory

Aside from reserving the shared memory, also reserve the TZDRAM OP-TEE
memory.

Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: R

generic_boot: reserve optee_tzdram memory

Aside from reserving the shared memory, also reserve the TZDRAM OP-TEE
memory.

Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>

show more ...

995908f212-Mar-2019 Rouven Czerwinski <r.czerwinski@pengutronix.de>

generic_boot: retrieve address-cells and size-cells from root

If the reserved-memory subnode does not exist, retrieve address-cells
and size-cells from the root node.

The linux kernel checks whethe

generic_boot: retrieve address-cells and size-cells from root

If the reserved-memory subnode does not exist, retrieve address-cells
and size-cells from the root node.

The linux kernel checks whether these properties match between the root
and reserved-memory nodes and discards non-matching nodes.

Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>

show more ...

4cf72d2414-Mar-2019 Rouven Czerwinski <r.czerwinski@pengutronix.de>

generic_boot: rename shared reserved memory node

Rename the shared reserved memory node from "optee" to "optee_shm".
This should avoid confusion when we introduce the "optee_core" reserved
memory no

generic_boot: rename shared reserved memory node

Rename the shared reserved memory node from "optee" to "optee_shm".
This should avoid confusion when we introduce the "optee_core" reserved
memory node in later commits.

Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>

show more ...

f831c16209-Mar-2019 Michael Grand <michael.grand.mg@gmail.com>

zynqmp: fix UART1 base for zcu102, zc1751_dc1, zc1751_dc2 flavors

Fix UART1 base address for zcu102, zc1751_dc1, zc1751_dc2 flavors.
More information provided p226 of UG1085 [1].

Link: [1] https://

zynqmp: fix UART1 base for zcu102, zc1751_dc1, zc1751_dc2 flavors

Fix UART1 base address for zcu102, zc1751_dc1, zc1751_dc2 flavors.
More information provided p226 of UG1085 [1].

Link: [1] https://www.xilinx.com/support/documentation/user_guides/ug1085-zynq-ultrascale-trm.pdf
Signed-off-by: Michael Grand <michael.grand.mg@gmail.com>
[jf: move URL to a Link: tag]
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>

show more ...

444c203e13-Mar-2019 Jerome Forissier <jerome.forissier@linaro.org>

scripts/symbolize.py: accept several spaces after "region"

User TA crash dumps were slightly modified to better align region
numbers. scripts/symbolize.py needs to be updated accordingly.

Fixes: db

scripts/symbolize.py: accept several spaces after "region"

User TA crash dumps were slightly modified to better align region
numbers. scripts/symbolize.py needs to be updated accordingly.

Fixes: dba5a1eab8af1 ("core: better align output of TA dump with many or big regions")
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>

show more ...

1...<<221222223224225226227228229230>>...336