Searched refs:crypt_ftr (Results 1 – 1 of 1) sorted by relevance
119 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() argument507 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() argument526 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() argument571 memcpy(©, crypt_ftr, sizeof(copy)); in check_ftr_sha()[all …]