Searched refs:NVDIMM_PASSPHRASE_LEN (Results 1 – 6 of 6) sorted by relevance
/openbmc/linux/drivers/cxl/ |
H A D | security.c | 81 memcpy(set_pass.old_pass, old_data->data, NVDIMM_PASSPHRASE_LEN); in cxl_pmem_security_change_key() 82 memcpy(set_pass.new_pass, new_data->data, NVDIMM_PASSPHRASE_LEN); in cxl_pmem_security_change_key() 107 memcpy(dis_pass.pass, key_data->data, NVDIMM_PASSPHRASE_LEN); in __cxl_pmem_security_disable() 148 u8 pass[NVDIMM_PASSPHRASE_LEN]; in cxl_pmem_security_unlock() 152 memcpy(pass, key_data->data, NVDIMM_PASSPHRASE_LEN); in cxl_pmem_security_unlock() 155 .size_in = NVDIMM_PASSPHRASE_LEN, in cxl_pmem_security_unlock() 181 memcpy(erase.pass, key->data, NVDIMM_PASSPHRASE_LEN); in cxl_pmem_security_passphrase_erase()
|
H A D | cxlmem.h | 834 u8 old_pass[NVDIMM_PASSPHRASE_LEN]; 835 u8 new_pass[NVDIMM_PASSPHRASE_LEN]; 842 u8 pass[NVDIMM_PASSPHRASE_LEN]; 849 u8 pass[NVDIMM_PASSPHRASE_LEN];
|
/openbmc/linux/tools/testing/cxl/test/ |
H A D | mem.c | 149 u8 user_pass[NVDIMM_PASSPHRASE_LEN]; 150 u8 master_pass[NVDIMM_PASSPHRASE_LEN]; 677 if (memcmp(mdata->master_pass, set_pass->old_pass, NVDIMM_PASSPHRASE_LEN)) { in mock_set_passphrase() 682 memcpy(mdata->master_pass, set_pass->new_pass, NVDIMM_PASSPHRASE_LEN); in mock_set_passphrase() 691 if (memcmp(mdata->user_pass, set_pass->old_pass, NVDIMM_PASSPHRASE_LEN)) { in mock_set_passphrase() 696 memcpy(mdata->user_pass, set_pass->new_pass, NVDIMM_PASSPHRASE_LEN); in mock_set_passphrase() 735 if (memcmp(dis_pass->pass, mdata->master_pass, NVDIMM_PASSPHRASE_LEN)) { in mock_disable_passphrase() 742 memset(mdata->master_pass, 0, NVDIMM_PASSPHRASE_LEN); in mock_disable_passphrase() 757 if (memcmp(dis_pass->pass, mdata->user_pass, NVDIMM_PASSPHRASE_LEN)) { in mock_disable_passphrase() 764 memset(mdata->user_pass, 0, NVDIMM_PASSPHRASE_LEN); in mock_disable_passphrase() [all …]
|
/openbmc/linux/include/linux/ |
H A D | libnvdimm.h | 164 #define NVDIMM_PASSPHRASE_LEN 32 macro 168 u8 data[NVDIMM_PASSPHRASE_LEN];
|
/openbmc/linux/drivers/nvdimm/ |
H A D | security.c | 25 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()
|
/openbmc/linux/tools/testing/nvdimm/test/ |
H A D | nfit.c | 222 static const char zero_key[NVDIMM_PASSPHRASE_LEN];
|