11.12.3.4.198. Function sss_key_object_allocate_handle¶
Defined in File fsl_sss_api.h
11.12.3.4.198.1. Function Documentation¶
-
sss_status_t
sss_key_object_allocate_handle
(sss_object_t *keyObject, uint32_t keyId, sss_key_part_t keyPart, sss_cipher_type_t cipherType, size_t keyByteLenMax, uint32_t options)¶ Allocate / pre-provision memory for new key.
This API allows underlying cryptographic subsystems to perform preconditions of before creating any cryptographic key object.
- Return
Status of object allocation.
- Parameters
[inout] keyObject
: The object If required, update implementation defined values inside the keyObjectkeyId
: External Key ID. Later on this may be used by sss_key_object_get_handlekeyPart
: See sss_key_part_tcipherType
: See sss_cipher_type_tkeyByteLenMax
: Maximum storage this type of key may need. For systems that have their own internal allocation table this would helpoptions
: 0 = Persistant Key (Default) or Transient Key. See sss_key_object_mode_t