Home
last modified time | relevance | path

Searched refs:NVDIMM_PASSPHRASE_LEN (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/drivers/cxl/
Dsecurity.c82 memcpy(set_pass.old_pass, old_data->data, NVDIMM_PASSPHRASE_LEN); in cxl_pmem_security_change_key()
83 memcpy(set_pass.new_pass, new_data->data, NVDIMM_PASSPHRASE_LEN); in cxl_pmem_security_change_key()
108 memcpy(dis_pass.pass, key_data->data, NVDIMM_PASSPHRASE_LEN); in __cxl_pmem_security_disable()
149 u8 pass[NVDIMM_PASSPHRASE_LEN]; in cxl_pmem_security_unlock()
153 memcpy(pass, key_data->data, NVDIMM_PASSPHRASE_LEN); in cxl_pmem_security_unlock()
156 .size_in = NVDIMM_PASSPHRASE_LEN, in cxl_pmem_security_unlock()
182 memcpy(erase.pass, key->data, NVDIMM_PASSPHRASE_LEN); in cxl_pmem_security_passphrase_erase()
Dcxlmem.h793 u8 old_pass[NVDIMM_PASSPHRASE_LEN];
794 u8 new_pass[NVDIMM_PASSPHRASE_LEN];
801 u8 pass[NVDIMM_PASSPHRASE_LEN];
808 u8 pass[NVDIMM_PASSPHRASE_LEN];
/linux-6.12.1/tools/testing/cxl/test/
Dmem.c155 u8 user_pass[NVDIMM_PASSPHRASE_LEN];
156 u8 master_pass[NVDIMM_PASSPHRASE_LEN];
752 if (memcmp(mdata->master_pass, set_pass->old_pass, NVDIMM_PASSPHRASE_LEN)) { in mock_set_passphrase()
757 memcpy(mdata->master_pass, set_pass->new_pass, NVDIMM_PASSPHRASE_LEN); in mock_set_passphrase()
766 if (memcmp(mdata->user_pass, set_pass->old_pass, NVDIMM_PASSPHRASE_LEN)) { in mock_set_passphrase()
771 memcpy(mdata->user_pass, set_pass->new_pass, NVDIMM_PASSPHRASE_LEN); in mock_set_passphrase()
810 if (memcmp(dis_pass->pass, mdata->master_pass, NVDIMM_PASSPHRASE_LEN)) { in mock_disable_passphrase()
817 memset(mdata->master_pass, 0, NVDIMM_PASSPHRASE_LEN); in mock_disable_passphrase()
832 if (memcmp(dis_pass->pass, mdata->user_pass, NVDIMM_PASSPHRASE_LEN)) { in mock_disable_passphrase()
839 memset(mdata->user_pass, 0, NVDIMM_PASSPHRASE_LEN); in mock_disable_passphrase()
[all …]
/linux-6.12.1/include/linux/
Dlibnvdimm.h164 #define NVDIMM_PASSPHRASE_LEN 32 macro
168 u8 data[NVDIMM_PASSPHRASE_LEN];
/linux-6.12.1/drivers/nvdimm/
Dsecurity.c25 static const char zero_key[NVDIMM_PASSPHRASE_LEN];
70 if (epayload->decrypted_datalen != NVDIMM_PASSPHRASE_LEN) { in nvdimm_request_key()
112 if (epayload->decrypted_datalen != NVDIMM_PASSPHRASE_LEN) { in nvdimm_lookup_user_key()
/linux-6.12.1/tools/testing/nvdimm/test/
Dnfit.c222 static const char zero_key[NVDIMM_PASSPHRASE_LEN];