WE310F5  39.00.000
M2MB PWD GENERATION

This section describes the M2MB API for password generation module. More...

INT32 m2mb_pwd_generate (UINT32 id, UINT8 *pwd)
 m2mb_pwd_generate is called to generate password. More...
 

Detailed Description

This section describes the M2MB API for password generation module.

Password generation module provides API to generate random password given the index. The password remains same even after reboot.

Function Documentation

◆ m2mb_pwd_generate()

INT32 m2mb_pwd_generate ( UINT32  id,
UINT8 pwd 
)

m2mb_pwd_generate is called to generate password.

m2mb_pwd_generate gets the password given the index: The password is same every time for a particular index even after the reboot.

Parameters
[out]idindex, value from 1 onwards.
[out]pwdvalid pointer where password will be stored.
Returns
Returns 0 on success, or a different code on error
Note
<Notes> Example
UINT8 pwd[32]; //To generate 32 bytes password
m2mb_pwd_generate(2, &pwd[16]);