Lines Matching refs:volume_key_size

35                 size_t volume_key_size,  in fscrypt_upload_volume_key()  argument
45 assert(volume_key_size > 0); in fscrypt_upload_volume_key()
47 if (volume_key_size > sizeof(key.raw)) in fscrypt_upload_volume_key()
57 .size = volume_key_size, in fscrypt_upload_volume_key()
59 memcpy(key.raw, volume_key, volume_key_size); in fscrypt_upload_volume_key()
289 size_t volume_key_size = 0; in home_setup_fscrypt() local
321 &volume_key_size); in home_setup_fscrypt()
357 volume_key_size, in home_setup_fscrypt()
399 size_t volume_key_size, in fscrypt_slot_set() argument
445 encrypted_size = volume_key_size + EVP_CIPHER_key_length(cc) * 2; in fscrypt_slot_set()
450 …cryptUpdate(context, (uint8_t*) encrypted, &encrypted_size_out1, volume_key, volume_key_size) != 1) in fscrypt_slot_set()
497 size_t volume_key_size = 512 / 8; in home_create_fscrypt() local
539 volume_key = malloc(volume_key_size); in home_create_fscrypt()
543 r = genuine_random_bytes(volume_key, volume_key_size, RANDOM_BLOCK); in home_create_fscrypt()
547 log_info("Generated volume key of size %zu.", volume_key_size); 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()
647 size_t volume_key_size = 0; in home_passwd_fscrypt() local
661 &volume_key_size); in home_passwd_fscrypt()
666 r = fscrypt_slot_set(setup->root_fd, volume_key, volume_key_size, *p, slot); in home_passwd_fscrypt()