Searched refs:encrypted_key (Results 1 – 9 of 9) sorted by relevance
/systemd-251/src/cryptsetup/cryptsetup-tokens/ |
D | luks2-pkcs11.c | 19 void *encrypted_key; member 90 data->encrypted_key, in luks2_pkcs11_callback() 109 void *encrypted_key, in acquire_luks2_key_by_pin() argument 119 .encrypted_key = encrypted_key, in acquire_luks2_key_by_pin() 124 assert(encrypted_key); in acquire_luks2_key_by_pin() 142 void *encrypted_key, in acquire_luks2_key_systemd() argument 149 .encrypted_key = encrypted_key, in acquire_luks2_key_systemd() 155 assert(encrypted_key); in acquire_luks2_key_systemd() 189 _cleanup_free_ void *encrypted_key = NULL; in acquire_luks2_key() local 196 r = parse_luks2_pkcs11_data(cd, json, &pkcs11_uri, &encrypted_key, &encrypted_key_size); in acquire_luks2_key() [all …]
|
/systemd-251/src/home/ |
D | homectl-pkcs11.c | 17 const void *encrypted_key, size_t encrypted_key_size, in add_pkcs11_encrypted_key() argument 26 assert(encrypted_key); in add_pkcs11_encrypted_key() 43 … JSON_BUILD_PAIR("data", JSON_BUILD_BASE64(encrypted_key, encrypted_key_size)), in add_pkcs11_encrypted_key() 160 _cleanup_(erase_and_freep) void *decrypted_key = NULL, *encrypted_key = NULL; in identity_add_pkcs11_key_data() 191 …r = rsa_encrypt_bytes(pkey, decrypted_key, decrypted_key_size, &encrypted_key, &encrypted_key_size… in identity_add_pkcs11_key_data() 204 encrypted_key, encrypted_key_size, in identity_add_pkcs11_key_data()
|
D | homework-pkcs11.c | 95 …r = pkcs11_token_decrypt_data(m, session, object, data->encrypted_key->data, data->encrypted_key->… in pkcs11_callback()
|
D | homework.c | 130 .encrypted_key = h->pkcs11_encrypted_key + n, in user_record_authenticate() 133 r = pkcs11_find_token(data.encrypted_key->uri, pkcs11_callback, &data); in user_record_authenticate() 160 … r = test_password_one(data.encrypted_key->hashed_password, data.decrypted_password); in user_record_authenticate() 164 …red PKCS#11 security token %s does not decrypt encrypted key correctly.", data.encrypted_key->uri); in user_record_authenticate() 166 …"Decrypted password from PKCS#11 security token %s unlocks user record.", data.encrypted_key->uri); in user_record_authenticate() 1183 .encrypted_key = h->pkcs11_encrypted_key + n, in user_record_compile_effective_passwords() 1186 r = pkcs11_find_token(data.encrypted_key->uri, pkcs11_callback, &data); in user_record_compile_effective_passwords() 1192 r = test_password_one(data.encrypted_key->hashed_password, data.decrypted_password); in user_record_compile_effective_passwords()
|
D | homework-pkcs11.h | 12 Pkcs11EncryptedKey *encrypted_key; member
|
/systemd-251/src/cryptenroll/ |
D | cryptenroll-pkcs11.c | 22 _cleanup_free_ void *encrypted_key = NULL; in enroll_pkcs11() local 57 …r = rsa_encrypt_bytes(pkey, decrypted_key, decrypted_key_size, &encrypted_key, &encrypted_key_size… in enroll_pkcs11() 89 … JSON_BUILD_PAIR("pkcs11-key", JSON_BUILD_BASE64(encrypted_key, encrypted_key_size)))); in enroll_pkcs11()
|
/systemd-251/src/cryptsetup/ |
D | cryptsetup-pkcs11.c | 57 data.encrypted_key = (void*) key_data; in decrypt_pkcs11_key() 74 (char**) &data.encrypted_key, &data.encrypted_key_size); in decrypt_pkcs11_key()
|
/systemd-251/src/shared/ |
D | pkcs11-util.h | 56 void *encrypted_key; member
|
D | pkcs11-util.c | 1191 free(data->encrypted_key); in pkcs11_crypt_device_callback_data_release() 1243 data->encrypted_key, in pkcs11_crypt_device_callback()
|