![]() PSA_ERROR_NOT_PERMITTED The implementation does not permit creating a key with the specified attributes due to some implementation-specific policy. PSA_ERROR_BAD_STATE The library requires initializing by a call to psa_crypto_init(). If the key is persistent, the key material and the key’s metadata have been saved to persistent storage. Returns: psa_status_t PSA_SUCCESS Success. key On success, an identifier for the newly created key. ![]() data_length Size of the data buffer in bytes. Implementations can support other formats, but be conservative in interpreting the key data: it is recommended that implementations reject content if it might be erroneous, for example, if it is the wrong type or is truncated. The content of this buffer is interpreted according to the type declared in attributes.Īll implementations must support at least the format described in the documentation of psa_export_key() or psa_export_public_key() for the chosen type. The final attributes of the new key can be queried by calling psa_get_key_attributes() with the key’s identifier. This is an input parameter: it is not updated with the final key attributes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |