Home
last modified time | relevance | path

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

/system/extras/ext4_utils/
Dext4_crypt.cpp38 #define EXT4_KEY_DESCRIPTOR_SIZE 8 macro
46 uint8_t master_key_descriptor[EXT4_KEY_DESCRIPTOR_SIZE];
74 for (size_t i = 0, j = 0; i < EXT4_KEY_DESCRIPTOR_SIZE; i++) { in policy_to_hex()
130 if (policy_length != EXT4_KEY_DESCRIPTOR_SIZE) { in e4crypt_policy_set()
145 memcpy(eep.master_key_descriptor, policy, EXT4_KEY_DESCRIPTOR_SIZE); in e4crypt_policy_set()
163 if (policy_length != EXT4_KEY_DESCRIPTOR_SIZE) { in e4crypt_policy_get()
191 memcpy(policy, eep.master_key_descriptor, EXT4_KEY_DESCRIPTOR_SIZE); in e4crypt_policy_get()
200 if (policy_length != EXT4_KEY_DESCRIPTOR_SIZE) { in e4crypt_policy_check()
204 char existing_policy[EXT4_KEY_DESCRIPTOR_SIZE]; in e4crypt_policy_check()
205 if (!e4crypt_policy_get(directory, existing_policy, EXT4_KEY_DESCRIPTOR_SIZE, in e4crypt_policy_check()
[all …]
/system/vold/
DExt4Crypt.cpp83 const int EXT4_KEY_DESCRIPTOR_SIZE = 8; variable
119 static_assert(EXT4_KEY_DESCRIPTOR_SIZE <= SHA512_DIGEST_LENGTH, in generate_key_ref()
121 return std::string((char*)key_ref2, EXT4_KEY_DESCRIPTOR_SIZE); in generate_key_ref()