nvme_update_key(2) libnvme API manual nvme_update_key(2)

nvme_update_key - Update key raw data

long nvme_update_key (long keyring_id , const char *key_type , const char *identity , unsigned char *key_data , int key_len );

Id of the keyring holding key_id
Type of the key to insert
Key identity string
Raw data of the key
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.

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

nvme_update_key January 2025