Home
last modified time | relevance | path

Searched refs:MAX_PASSWORD_LEN (Results 1 – 1 of 1) sorted by relevance

/device/moto/shamu/cryptfs_hw/
Dcryptfs_hw.c49 #define MAX_PASSWORD_LEN 32 macro
56 static unsigned char current_passwd[MAX_PASSWORD_LEN];
66 tmp_passwd = (unsigned char*)malloc(MAX_PASSWORD_LEN); in get_tmp_passwd()
68 memset(tmp_passwd, 0, MAX_PASSWORD_LEN); in get_tmp_passwd()
69 passwd_len = (strlen(passwd) > MAX_PASSWORD_LEN) ? MAX_PASSWORD_LEN : strlen(passwd); in get_tmp_passwd()
125 memset(current_passwd, 0, MAX_PASSWORD_LEN); in set_key()
126 memcpy(current_passwd, tmp_passwd, MAX_PASSWORD_LEN); in set_key()