Home
last modified time | relevance | path

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

/system/vold/
DExt4Crypt.cpp189 crypt_mnt_ftr ftr; in e4crypt_enable() local
190 if (cryptfs_create_default_ftr(&ftr, key_length)) { in e4crypt_enable()
196 ftr.persist_data_offset[0] = 0; in e4crypt_enable()
197 ftr.persist_data_offset[1] = 0; in e4crypt_enable()
198 ftr.persist_data_size = 0; in e4crypt_enable()
200 if (put_crypt_ftr_and_key(ftr, key_props)) { in e4crypt_enable()
211 if (memcmp(&ftr, &ftr2, sizeof(ftr)) != 0) { in e4crypt_enable()
231 crypt_mnt_ftr ftr; in e4crypt_change_password() local
232 if (get_crypt_ftr_and_key(ftr, key_props)) { in e4crypt_change_password()
246 if (cryptfs_set_password(&ftr, password, master_key)) { in e4crypt_change_password()
[all …]
Dcryptfs.c185 static int keymaster_create_key(struct crypt_mnt_ftr *ftr) in keymaster_create_key() argument
259 memcpy(ftr->keymaster_blob, key, key_size); in keymaster_create_key()
260 ftr->keymaster_blob_size = key_size; in keymaster_create_key()
272 static int keymaster_sign_object(struct crypt_mnt_ftr *ftr, in keymaster_sign_object() argument
305 switch (ftr->kdf_type) { in keymaster_sign_object()
317 SLOGE("Unknown KDF type %d", ftr->kdf_type); in keymaster_sign_object()
329 ftr->keymaster_blob, in keymaster_sign_object()
330 ftr->keymaster_blob_size, in keymaster_sign_object()
337 keymaster_key_blob_t key = { ftr->keymaster_blob, ftr->keymaster_blob_size }; in keymaster_sign_object()
467 static void get_device_scrypt_params(struct crypt_mnt_ftr *ftr) { in get_device_scrypt_params() argument
[all …]
Dcryptfs.h236 int cryptfs_create_default_ftr(struct crypt_mnt_ftr* ftr, int key_length);
237 int cryptfs_get_master_key(struct crypt_mnt_ftr* ftr, const char* password,
239 int cryptfs_set_password(struct crypt_mnt_ftr* ftr, const char* password,