Searched refs:crypt_ftr (Results 1 – 2 of 2) sorted by relevance
/system/vold/ |
D | Ext4Crypt.cpp | 72 static int put_crypt_ftr_and_key(const crypt_mnt_ftr& crypt_ftr, in put_crypt_ftr_and_key() argument 77 bool success = props.Set<int>(tag::magic, crypt_ftr.magic) in put_crypt_ftr_and_key() 78 && props.Set<int>(tag::major_version, crypt_ftr.major_version) in put_crypt_ftr_and_key() 79 && props.Set<int>(tag::minor_version, crypt_ftr.minor_version) in put_crypt_ftr_and_key() 80 && props.Set<int>(tag::flags, crypt_ftr.flags) in put_crypt_ftr_and_key() 81 && props.Set<int>(tag::crypt_type, crypt_ftr.crypt_type) in put_crypt_ftr_and_key() 83 crypt_ftr.failed_decrypt_count) in put_crypt_ftr_and_key() 85 … std::string(reinterpret_cast<const char*>(crypt_ftr.crypto_type_name))) in put_crypt_ftr_and_key() 87 std::string((const char*) crypt_ftr.master_key, in put_crypt_ftr_and_key() 88 crypt_ftr.keysize)) in put_crypt_ftr_and_key() [all …]
|
D | cryptfs.c | 603 static int put_crypt_ftr_and_key(struct crypt_mnt_ftr *crypt_ftr) in put_crypt_ftr_and_key() argument 634 if ((cnt = write(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr))) != sizeof(struct crypt_mnt_ftr)) { in put_crypt_ftr_and_key() 679 static void upgrade_crypt_ftr(int fd, struct crypt_mnt_ftr *crypt_ftr, off64_t offset) in upgrade_crypt_ftr() argument 681 int orig_major = crypt_ftr->major_version; in upgrade_crypt_ftr() 682 int orig_minor = crypt_ftr->minor_version; in upgrade_crypt_ftr() 684 if ((crypt_ftr->major_version == 1) && (crypt_ftr->minor_version == 0)) { in upgrade_crypt_ftr() 711 crypt_ftr->persist_data_size = CRYPT_PERSIST_DATA_SIZE; in upgrade_crypt_ftr() 712 crypt_ftr->persist_data_offset[0] = pdata_offset; in upgrade_crypt_ftr() 713 crypt_ftr->persist_data_offset[1] = pdata_offset + CRYPT_PERSIST_DATA_SIZE; in upgrade_crypt_ftr() 714 crypt_ftr->minor_version = 1; in upgrade_crypt_ftr() [all …]
|