Lines Matching refs:tmp_passwd
64 unsigned char * tmp_passwd = NULL; in get_tmp_passwd() local
66 tmp_passwd = (unsigned char*)malloc(MAX_PASSWORD_LEN); in get_tmp_passwd()
67 if(tmp_passwd) { in get_tmp_passwd()
68 memset(tmp_passwd, 0, MAX_PASSWORD_LEN); in get_tmp_passwd()
70 memcpy(tmp_passwd, passwd, passwd_len); in get_tmp_passwd()
77 return tmp_passwd; in get_tmp_passwd()
116 unsigned char* tmp_passwd = get_tmp_passwd(passwd); in set_key() local
117 if(tmp_passwd) { in set_key()
120 err = qseecom_update_key(QSEECOM_DISK_ENCRYPTION, current_passwd, tmp_passwd); in set_key()
122 err = qseecom_create_key(QSEECOM_DISK_ENCRYPTION, tmp_passwd); in set_key()
126 memcpy(current_passwd, tmp_passwd, MAX_PASSWORD_LEN); in set_key()
132 free(tmp_passwd); in set_key()