Home | History | Annotate | Download | only in vold

Lines Matching refs:master_key

667 void convert_key_to_hex_ascii(unsigned char *master_key, unsigned int keysize,
675 nibble = (master_key[i] >> 4) & 0xf;
678 nibble = master_key[i] & 0xf;
687 static int load_crypto_mapping_table(struct crypt_mnt_ftr *crypt_ftr, unsigned char *master_key,
711 convert_key_to_hex_ascii(master_key, crypt_ftr->keysize, master_key_ascii);
767 static int create_crypto_blk_dev(struct crypt_mnt_ftr *crypt_ftr, unsigned char *master_key,
815 load_count = load_crypto_mapping_table(crypt_ftr, master_key, real_blk_name, name,
980 ret = decrypt_master_key_aux(passwd, crypt_ftr->salt, crypt_ftr->master_key, decrypted_master_key, kdf,
989 static int create_encrypted_random_key(char *passwd, unsigned char *master_key, unsigned char *salt,
1003 return encrypt_master_key(passwd, salt, key_buf, master_key, crypt_ftr);
1285 rc = encrypt_master_key(passwd, crypt_ftr.salt, saved_master_key, crypt_ftr.master_key,
1766 if (create_encrypted_random_key(passwd, crypt_ftr.master_key, crypt_ftr.salt, &crypt_ftr)) {
1936 encrypt_master_key(newpw, crypt_ftr.salt, saved_master_key, crypt_ftr.master_key, &crypt_ftr);