Skip to main content

nvme_update_key

Function nvme_update_key 

Source
pub unsafe extern "C" fn nvme_update_key(
    keyring_id: c_long,
    key_type: *const c_char,
    identity: *const c_char,
    key_data: *mut c_uchar,
    key_len: c_int,
) -> c_long
Expand description

nvme_update_key() - Update key raw data @keyring_id: Id of the keyring holding %key_id @key_type: Type of the key to insert @identity: Key identity string @key_data: Raw data of the key @key_len: Length of @key_data

Links the keyring specified by @keyring_id into the session keyring and updates the key reference by @identity with @key_data. The old key with identity @identity will be revoked to make it inaccessible.

Return: Key id of the new key or 0 with errno set otherwise.