Home
last modified time | relevance | path

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

/system/vold/
Dcryptfs.cpp297 static int put_crypt_ftr_and_key(struct crypt_mnt_ftr* crypt_ftr);
575 static void set_ftr_sha(struct crypt_mnt_ftr* crypt_ftr) { in set_ftr_sha() argument
578 memset(crypt_ftr->sha256, 0, sizeof(crypt_ftr->sha256)); in set_ftr_sha()
579 SHA256_Update(&c, crypt_ftr, sizeof(*crypt_ftr)); in set_ftr_sha()
580 SHA256_Final(crypt_ftr->sha256, &c); in set_ftr_sha()
586 static int put_crypt_ftr_and_key(struct crypt_mnt_ftr* crypt_ftr) { in put_crypt_ftr_and_key() argument
597 set_ftr_sha(crypt_ftr); in put_crypt_ftr_and_key()
618 … if ((cnt = write(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr))) != sizeof(struct crypt_mnt_ftr)) { in put_crypt_ftr_and_key()
640 static bool check_ftr_sha(const struct crypt_mnt_ftr* crypt_ftr) { in check_ftr_sha() argument
642 memcpy(&copy, crypt_ftr, sizeof(copy)); in check_ftr_sha()
[all …]