psa_restrict_key_policy() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...
SummarySyntaxArgumentsReferences

Return value

#PSA_SUCCESS \c *policy contains the intersection of the original value of \c *policy and \c *constraint. #PSA_ERROR_INVALID_ARGUMENT \c key_type, \c *policy and \c *constraint are incompatible. \c *policy is unchanged.

Notes

This function requires providing the key type for which the policy is being restricted, since some algorithm policy definitions (e.g. MAC) have different properties depending on what kind of cipher it is combined with.

References

from examples