Searched refs:sid_rand (Results 1 – 2 of 2) sorted by relevance
/external/libwebsockets/plugins/generic-sessions/ |
D | utils.c | 322 unsigned char sid_rand[32]; in lwsgs_new_session_id() local 338 if (lws_get_random(vhd->context, sid_rand, sizeof(sid_rand)) != in lwsgs_new_session_id() 339 sizeof(sid_rand)) in lwsgs_new_session_id() 342 sha256_to_lwsgw_hash(sid_rand, sid); in lwsgs_new_session_id() 426 unsigned char sid_rand[32]; in lwsgs_hash_password() local 432 if (lws_get_random(vhd->context, sid_rand, in lwsgs_hash_password() 433 sizeof(sid_rand)) != in lwsgs_hash_password() 434 sizeof(sid_rand)) { in lwsgs_hash_password() 438 sha256_to_lwsgw_hash(sid_rand, &u->pwsalt); in lwsgs_hash_password()
|
D | handlers.c | 412 unsigned char sid_rand[32]; in lwsgs_handler_forgot_pw_form() local 465 if (lws_get_random(vhd->context, sid_rand, in lwsgs_handler_forgot_pw_form() 466 sizeof(sid_rand)) != in lwsgs_handler_forgot_pw_form() 467 sizeof(sid_rand)) { in lwsgs_handler_forgot_pw_form() 471 sha256_to_lwsgw_hash(sid_rand, &hash); in lwsgs_handler_forgot_pw_form() 538 unsigned char sid_rand[32]; in lwsgs_handler_register_form() local 599 if (lws_get_random(vhd->context, sid_rand, sizeof(sid_rand)) != in lwsgs_handler_register_form() 600 sizeof(sid_rand)) { in lwsgs_handler_register_form() 604 sha256_to_lwsgw_hash(sid_rand, &hash); in lwsgs_handler_register_form()
|