Home
last modified time | relevance | path

Searched refs:volume_key (Results 1 – 17 of 17) sorted by relevance

/systemd-251/src/home/
Dhomework-fscrypt.c34 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()
[all …]
Dhomework-luks.c303 void *volume_key, in luks_try_passwords() argument
318 volume_key, in luks_try_passwords()
803 const void *volume_key, in luks_validate_home_record() argument
870 if (EVP_DecryptInit_ex(context, cc, NULL, volume_key, iv) != 1) in luks_validate_home_record()
924 const void *volume_key, in format_luks_token_text() argument
937 assert(volume_key); in format_luks_token_text()
961 if (EVP_EncryptInit_ex(context, cc, NULL, volume_key, iv) != 1) in format_luks_token_text()
1015 assert(setup->volume_key); in home_store_header_identity_luks()
1034 r = format_luks_token_text(setup->crypt_device, header_home, setup->volume_key, &text); in home_store_header_identity_luks()
1234 _cleanup_(erase_and_freep) void *volume_key = NULL; in home_setup_luks()
[all …]
Dhomework.h30 void *volume_key; member
Dhomework.c431 setup->volume_key = erase_and_free(setup->volume_key); in home_setup_done()
/systemd-251/src/shared/
Dcryptsetup-util.h20 …_by_signed_key)(struct crypt_device *cd, const char *name, const char *volume_key, size_t volume_k…
22 …_by_volume_key)(struct crypt_device *cd, const char *name, const char *volume_key, size_t volume_k…
24 …t char *cipher, const char *cipher_mode, const char *uuid, const char *volume_key, size_t volume_k…
37 …t_add_by_volume_key)(struct crypt_device *cd, int keyslot, const char *volume_key, size_t volume_k…
65 extern int (*sym_crypt_volume_key_get)(struct crypt_device *cd, int keyslot, char *volume_key, size…
Dcryptsetup-util.c14 …_by_signed_key)(struct crypt_device *cd, const char *name, const char *volume_key, size_t volume_k…
16 …_by_volume_key)(struct crypt_device *cd, const char *name, const char *volume_key, size_t volume_k…
18 …t char *cipher, const char *cipher_mode, const char *uuid, const char *volume_key, size_t volume_k…
31 …t_add_by_volume_key)(struct crypt_device *cd, int keyslot, const char *volume_key, size_t volume_k…
51 int (*sym_crypt_volume_key_get)(struct crypt_device *cd, int keyslot, char *volume_key, size_t *vol…
/systemd-251/src/cryptenroll/
Dcryptenroll-recovery.c13 const void *volume_key, in enroll_recovery() argument
23 assert_se(volume_key); in enroll_recovery()
39 volume_key, in enroll_recovery()
Dcryptenroll-fido2.c12 const void *volume_key, in enroll_fido2() argument
28 assert_se(volume_key); in enroll_fido2()
67 volume_key, in enroll_fido2()
Dcryptenroll-pkcs11.c13 const void *volume_key, in enroll_pkcs11() argument
29 assert_se(volume_key); in enroll_pkcs11()
74 volume_key, in enroll_pkcs11()
Dcryptenroll-pkcs11.h10 int enroll_pkcs11(struct crypt_device *cd, const void *volume_key, size_t volume_key_size, const ch…
12 static inline int enroll_pkcs11(struct crypt_device *cd, const void *volume_key, size_t volume_key_… in enroll_pkcs11() argument
Dcryptenroll-fido2.h11 int enroll_fido2(struct crypt_device *cd, const void *volume_key, size_t volume_key_size, const cha…
13 static inline int enroll_fido2(struct crypt_device *cd, const void *volume_key, size_t volume_key_s… in enroll_fido2() argument
Dcryptenroll-tpm2.h10 int enroll_tpm2(struct crypt_device *cd, const void *volume_key, size_t volume_key_size, const char…
12 static inline int enroll_tpm2(struct crypt_device *cd, const void *volume_key, size_t volume_key_si… in enroll_tpm2() argument
Dcryptenroll-tpm2.c130 const void *volume_key, in enroll_tpm2() argument
148 assert(volume_key); in enroll_tpm2()
196 volume_key, in enroll_tpm2()
Dcryptenroll-password.c13 const void *volume_key, in enroll_password() argument
89 volume_key, in enroll_password()
Dcryptenroll-recovery.h8 int enroll_recovery(struct crypt_device *cd, const void *volume_key, size_t volume_key_size);
Dcryptenroll-password.h8 int enroll_password(struct crypt_device *cd, const void *volume_key, size_t volume_key_size);
/systemd-251/src/partition/
Drepart.c2562 _cleanup_(erase_and_freep) void *volume_key = NULL; in partition_encrypt()
2593 volume_key = malloc(volume_key_size); in partition_encrypt()
2594 if (!volume_key) in partition_encrypt()
2597 r = genuine_random_bytes(volume_key, volume_key_size, RANDOM_BLOCK); in partition_encrypt()
2612 volume_key, in partition_encrypt()
2625 volume_key, in partition_encrypt()
2658 volume_key, in partition_encrypt()
2681 volume_key, in partition_encrypt()