Lines Matching full:passwd
61 static unsigned char* get_tmp_passwd(const char* passwd)
65 if(passwd) {
69 passwd_len = (strlen(passwd) > MAX_PASSWORD_LEN) ? MAX_PASSWORD_LEN : strlen(passwd);
70 memcpy(tmp_passwd, passwd, passwd_len);
72 SLOGE("%s: Failed to allocate memory for tmp passwd \n", __func__);
111 static unsigned int set_key(const char* passwd, const char* enc_mode, int operation)
116 unsigned char* tmp_passwd = get_tmp_passwd(passwd);
138 unsigned int set_hw_device_encryption_key(const char* passwd, const char* enc_mode)
141 return set_key(passwd, enc_mode, SET_HW_DISK_ENC_KEY);