Home
last modified time | relevance | path

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

/system/vold/
Dcryptfs.c145 static int put_crypt_ftr_and_key(char *real_blk_name, struct crypt_mnt_ftr *crypt_ftr, in put_crypt_ftr_and_key() argument
191 if ((cnt = write(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr))) != sizeof(struct crypt_mnt_ftr)) { in put_crypt_ftr_and_key()
197 if (crypt_ftr->keysize != KEY_LEN_BYTES) { in put_crypt_ftr_and_key()
199 crypt_ftr->keysize*8, fname); in put_crypt_ftr_and_key()
203 if ( (cnt = write(fd, key, crypt_ftr->keysize)) != crypt_ftr->keysize) { in put_crypt_ftr_and_key()
213 off += crypt_ftr->keysize; in put_crypt_ftr_and_key()
244 static int get_crypt_ftr_and_key(char *real_blk_name, struct crypt_mnt_ftr *crypt_ftr, in get_crypt_ftr_and_key() argument
297 if ( (cnt = read(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr))) != sizeof(struct crypt_mnt_ftr)) { in get_crypt_ftr_and_key()
302 if (crypt_ftr->magic != CRYPT_MNT_MAGIC) { in get_crypt_ftr_and_key()
307 if (crypt_ftr->major_version != 1) { in get_crypt_ftr_and_key()
[all …]
Dcryptfs.h64 struct crypt_mnt_ftr crypt_ftr; member