Searched refs:SALT_LEN (Results 1 – 1 of 1) sorted by relevance
/system/vold/ |
D | cryptfs.cpp | 93 #define SALT_LEN 16 macro 181 unsigned char salt[SALT_LEN]; /* The salt used for this encryption */ 1147 return PKCS5_PBKDF2_HMAC_SHA1(passwd, strlen(passwd), salt, SALT_LEN, HASH_COUNT, in pbkdf2() 1161 crypto_scrypt((const uint8_t*)passwd, strlen(passwd), salt, SALT_LEN, N, r, p, ikey, in scrypt() 1180 rc = crypto_scrypt((const uint8_t*)passwd, strlen(passwd), salt, SALT_LEN, N, r, p, ikey, in scrypt_keymaster() 1193 rc = crypto_scrypt(signature, signature_size, salt, SALT_LEN, N, r, p, ikey, in scrypt_keymaster() 1377 if (android::vold::ReadRandomBytes(SALT_LEN, reinterpret_cast<char*>(salt)) != 0) { in create_encrypted_random_key()
|