Create tee_cryp_utl.{h,c}

These files contain miscellaneous cryptographic utility functions that do not
belong to tee_svc_cryp.c.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Move kernel-only abort() and time() into core/kernel

And get rid of the now useless TEE_CORE define.
Also, add the original PDCLib copyright notice for the atoi() implementation.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Remove useless cflags-remove-y

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
tee_ltc_provider.c: add missing AE optimization

Fix forgotten code when rebasing, from commit:
03c4278 CCM Authentication optimization

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Crypto: replace 'x == NULL' with '!x'

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Revert OpenSSL changes that are not needed

Thanks to incremental linking and --gc-sections, a number of files do not need
to be included in the build. Therefore we can revert any changes made to these
files after commit 'Import libcrypto source code from OpenSSL 1.0.1i'.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Add support for per-library C flags (cflags-lib-y)

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Use cflags-lib-y instead of cppflags-lib-y in openssl/sub.mk

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