Home
last modified time | relevance | path

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

/system/vold/
Dcryptfs.cpp119 static int put_crypt_ftr_and_key(struct crypt_mnt_ftr* crypt_ftr);
504 static void set_ftr_sha(struct crypt_mnt_ftr* crypt_ftr) { in set_ftr_sha() argument
507 memset(crypt_ftr->sha256, 0, sizeof(crypt_ftr->sha256)); in set_ftr_sha()
508 SHA256_Update(&c, crypt_ftr, sizeof(*crypt_ftr)); in set_ftr_sha()
509 SHA256_Final(crypt_ftr->sha256, &c); in set_ftr_sha()
515 static int put_crypt_ftr_and_key(struct crypt_mnt_ftr* crypt_ftr) { in put_crypt_ftr_and_key() argument
526 set_ftr_sha(crypt_ftr); in put_crypt_ftr_and_key()
547 … if ((cnt = write(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr))) != sizeof(struct crypt_mnt_ftr)) { in put_crypt_ftr_and_key()
569 static bool check_ftr_sha(const struct crypt_mnt_ftr* crypt_ftr) { in check_ftr_sha() argument
571 memcpy(&copy, crypt_ftr, sizeof(copy)); in check_ftr_sha()
[all …]