Crypto: Align implementation to pass PSA API compliance
-- Enable the option to specify maximum supported key
length and maximum number of key slots at build time
for the key module
-- Enable the option to specify internal buffer size
for scratch allocation at build time for the
engine module
-- Make sure that MD-2 and MD-4 hashes are enabled and
supported by the back end as they are tested by the
PSA API compliance tests
-- Other alignment needed to pass PSA API compliance
tests, as changes in return codes, more error
checking, and documentation update when needed
Change-Id: I4bb78b06de2fa01580c4cbd361c946d32c614240
Signed-off-by: Jamie Fox <jamie.fox@arm.com>
Co-Authored-by: Antonio de Angelis <antonio.deangelis@arm.com>
diff --git a/platform/ext/common/tfm_mbedtls_config.h b/platform/ext/common/tfm_mbedtls_config.h
index db2d4dd..61f6652 100644
--- a/platform/ext/common/tfm_mbedtls_config.h
+++ b/platform/ext/common/tfm_mbedtls_config.h
@@ -7,7 +7,7 @@
* or disable features selectively, and reduce the global
* memory footprint.
*
- * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
+ * Copyright (C) 2006-2019, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
@@ -1966,7 +1966,7 @@
*
* Uncomment to enable support for (rare) MD2-signed X.509 certs.
*/
-//#define MBEDTLS_MD2_C
+#define MBEDTLS_MD2_C
/**
* \def MBEDTLS_MD4_C
@@ -1978,7 +1978,7 @@
*
* Uncomment to enable support for (rare) MD4-signed X.509 certs.
*/
-//#define MBEDTLS_MD4_C
+#define MBEDTLS_MD4_C
/**
* \def MBEDTLS_MD5_C