32
32
33
33
#include "crypto_compat.h"
34
34
35
+ #include "platform/mbed_toolchain.h"
36
+
35
37
#ifdef __cplusplus
36
38
extern "C" {
37
39
#endif
@@ -54,15 +56,17 @@ extern "C" {
54
56
* for, in addition to the algorithm set with
55
57
* psa_set_key_algorithm().
56
58
*
57
- * \warning Setting an enrollment algorithm is not recommended, because
58
- * using the same key with different algorithms can allow some
59
- * attacks based on arithmetic relations between different
60
- * computations made with the same key, or can escalate harmless
61
- * side channels into exploitable ones. Use this function only
62
- * if it is necessary to support a protocol for which it has been
63
- * verified that the usage of the key with multiple algorithms
64
- * is safe.
59
+ * \deprecated This is for backward compatibility only.
60
+ * Setting an enrollment algorithm is not recommended, because
61
+ * using the same key with different algorithms can allow some
62
+ * attacks based on arithmetic relations between different
63
+ * computations made with the same key, or can escalate harmless
64
+ * side channels into exploitable ones. Use this function only
65
+ * if it is necessary to support a protocol for which it has been
66
+ * verified that the usage of the key with multiple algorithms
67
+ * is safe.
65
68
*/
69
+ MBED_DEPRECATED ("Setting enrollment algorithm is for backward compatibility and not recommended." )
66
70
static inline void psa_set_key_enrollment_algorithm (
67
71
psa_key_attributes_t * attributes ,
68
72
psa_algorithm_t alg2 )
@@ -75,7 +79,10 @@ static inline void psa_set_key_enrollment_algorithm(
75
79
* \param[in] attributes The key attribute structure to query.
76
80
*
77
81
* \return The enrollment algorithm stored in the attribute structure.
82
+ * \deprecated This is for backward compatibility only.
83
+ * Deprecated along with psa_set_key_enrollment_algorithm().
78
84
*/
85
+ MBED_DEPRECATED ("Getting enrollment algorithm is for backward compatibility and not recommended." )
79
86
static inline psa_algorithm_t psa_get_key_enrollment_algorithm (
80
87
const psa_key_attributes_t * attributes )
81
88
{
0 commit comments