Lines Matching refs:volume_key
34 const void *volume_key, in fscrypt_upload_volume_key() argument
44 assert(volume_key); in fscrypt_upload_volume_key()
59 memcpy(key.raw, volume_key, volume_key_size); in fscrypt_upload_volume_key()
287 _cleanup_(erase_and_freep) void *volume_key = NULL; in home_setup_fscrypt()
320 &volume_key, in home_setup_fscrypt()
356 volume_key, in home_setup_fscrypt()
398 const void *volume_key, in fscrypt_slot_set() argument
450 …if (EVP_EncryptUpdate(context, (uint8_t*) encrypted, &encrypted_size_out1, volume_key, volume_key_… in fscrypt_slot_set()
494 _cleanup_(erase_and_freep) void *volume_key = NULL; in home_create_fscrypt()
539 volume_key = malloc(volume_key_size); in home_create_fscrypt()
540 if (!volume_key) in home_create_fscrypt()
543 r = genuine_random_bytes(volume_key, volume_key_size, RANDOM_BLOCK); in home_create_fscrypt()
555 calculate_key_descriptor(volume_key, volume_key_size, policy.master_key_descriptor); in home_create_fscrypt()
557 …r = fscrypt_upload_volume_key(policy.master_key_descriptor, volume_key, volume_key_size, KEY_SPEC_… in home_create_fscrypt()
569 r = fscrypt_slot_set(setup->root_fd, volume_key, volume_key_size, *i, nr); in home_create_fscrypt()
645 _cleanup_(erase_and_freep) void *volume_key = NULL; in home_passwd_fscrypt()
660 &volume_key, in home_passwd_fscrypt()
666 r = fscrypt_slot_set(setup->root_fd, volume_key, volume_key_size, *p, slot); in home_passwd_fscrypt()