Function esp_idf_svc::hal::sys::nvs_flash_generate_keys_v2

source ยท
pub unsafe extern "C" fn nvs_flash_generate_keys_v2(
    scheme_cfg: *mut nvs_sec_scheme_t,
    cfg: *mut nvs_sec_cfg_t,
) -> i32
Expand description

@brief Generate (and store) the NVS keys using the specified key-protection scheme

@param[in] scheme_cfg Security scheme specific configuration

@param[out] cfg Security configuration (encryption keys)

@return - ESP_OK, if cfg was populated successfully with generated encryption keys; - ESP_ERR_INVALID_ARG, if scheme_cfg or cfg is NULL; - ESP_FAIL, if the key generation process fails