| 1 |
.TH "nvme_update_key" 9 "nvme_update_key" "November 2025" "libnvme API manual" LINUX |
| 2 |
.SH NAME |
| 3 |
nvme_update_key \- Update key raw data |
| 4 |
.SH SYNOPSIS |
| 5 |
.B "long" nvme_update_key |
| 6 |
.BI "(long keyring_id " "," |
| 7 |
.BI "const char *key_type " "," |
| 8 |
.BI "const char *identity " "," |
| 9 |
.BI "unsigned char *key_data " "," |
| 10 |
.BI "int key_len " ");" |
| 11 |
.SH ARGUMENTS |
| 12 |
.IP "keyring_id" 12 |
| 13 |
Id of the keyring holding key_id |
| 14 |
.IP "key_type" 12 |
| 15 |
Type of the key to insert |
| 16 |
.IP "identity" 12 |
| 17 |
Key identity string |
| 18 |
.IP "key_data" 12 |
| 19 |
Raw data of the key |
| 20 |
.IP "key_len" 12 |
| 21 |
Length of \fIkey_data\fP |
| 22 |
.SH "DESCRIPTION" |
| 23 |
Links the keyring specified by \fIkeyring_id\fP into the session |
| 24 |
keyring and updates the key reference by \fIidentity\fP with \fIkey_data\fP. |
| 25 |
The old key with identity \fIidentity\fP will be revoked to make it |
| 26 |
inaccessible. |
| 27 |
.SH "RETURN" |
| 28 |
Key id of the new key or 0 with errno set otherwise. |