Searched refs:master_key (Results 1 – 3 of 3) sorted by relevance
/system/keymaster/key_blob_utils/ |
D | ocb_utils.cpp | 70 const KeymasterKeyBlob& master_key, in InitializeKeyWrappingContext() argument 102 AES_set_encrypt_key(master_key.key_material, master_key.key_material_size * 8, &aes_key)) in InitializeKeyWrappingContext() 119 const KeymasterKeyBlob& master_key, in OcbEncryptKey() argument 132 InitializeKeyWrappingContext(hw_enforced, sw_enforced, hidden, master_key, &ctx); in OcbEncryptKey() 155 const KeymasterKeyBlob& master_key, in OcbDecryptKey() argument 168 InitializeKeyWrappingContext(hw_enforced, sw_enforced, hidden, master_key, &ctx); in OcbDecryptKey()
|
/system/keymaster/include/keymaster/key_blob_utils/ |
D | ocb_utils.h | 37 const KeymasterKeyBlob& master_key, 43 const KeymasterKeyBlob& master_key,
|
/system/vold/ |
D | cryptfs.cpp | 180 unsigned char master_key[MAX_KEY_LEN]; /* The encrypted key for decrypting the filesystem */ member 1029 static void convert_key_to_hex_ascii(const unsigned char* master_key, unsigned int keysize, in convert_key_to_hex_ascii() argument 1036 nibble = (master_key[i] >> 4) & 0xf; in convert_key_to_hex_ascii() 1039 nibble = master_key[i] & 0xf; in convert_key_to_hex_ascii() 1078 static int create_crypto_blk_dev(struct crypt_mnt_ftr* crypt_ftr, const unsigned char* master_key, in create_crypto_blk_dev() argument 1086 convert_key_to_hex_ascii(master_key, crypt_ftr->keysize, master_key_ascii); in create_crypto_blk_dev() 1359 ret = decrypt_master_key_aux(passwd, crypt_ftr->salt, crypt_ftr->master_key, crypt_ftr->keysize, in decrypt_master_key() 1369 static int create_encrypted_random_key(const char* passwd, unsigned char* master_key, in create_encrypted_random_key() argument 1382 return encrypt_master_key(passwd, salt, key_buf, master_key, crypt_ftr); in create_encrypted_random_key() 1829 crypt_ftr->master_key, crypt_ftr); in test_mount_encrypted_fs() [all …]
|