Home
last modified time | relevance | path

Searched refs:salt_size (Results 1 – 16 of 16) sorted by relevance

/systemd-251/src/cryptsetup/
Dcryptsetup-fido2.c38 size_t salt_size; in acquire_fido2_key() local
48 salt_size = key_data_size; in acquire_fido2_key()
62 (char**) &loaded_salt, &salt_size); in acquire_fido2_key()
83 salt, salt_size, in acquire_fido2_key()
135 size_t cid_size = 0, salt_size = 0; in find_fido2_auto_data() local
192 assert(salt_size == 0); in find_fido2_auto_data()
193 r = unbase64mem(json_variant_string(w), SIZE_MAX, &salt, &salt_size); in find_fido2_auto_data()
258 *ret_salt_size = salt_size; in find_fido2_auto_data()
/systemd-251/src/cryptsetup/cryptsetup-tokens/
Dluks2-fido2.c22 size_t cid_size, salt_size, decrypted_key_size; in acquire_luks2_key() local
32 r = parse_luks2_fido2_data(cd, json, &rp_id, &salt, &salt_size, &cid, &cid_size, &required); in acquire_luks2_key()
49 salt, salt_size, in acquire_luks2_key()
83 size_t cid_size = 0, salt_size = 0; in parse_luks2_fido2_data() local
114 r = unbase64mem(json_variant_string(w), SIZE_MAX, &salt, &salt_size); in parse_luks2_fido2_data()
153 *ret_salt_size = salt_size; in parse_luks2_fido2_data()
Dcryptsetup-token-systemd-fido2.c100 size_t cid_size, salt_size; in cryptsetup_token_dump() local
107 r = parse_luks2_fido2_data(cd, json, &rp_id, &salt, &salt_size, &cid, &cid_size, &required); in cryptsetup_token_dump()
115 r = crypt_dump_buffer_to_hex_string(salt, salt_size, &salt_str); in cryptsetup_token_dump()
/systemd-251/src/cryptenroll/
Dcryptenroll-fido2.c22 size_t cid_size, salt_size, secret_size; in enroll_fido2() local
48 &salt, &salt_size, in enroll_fido2()
82 … JSON_BUILD_PAIR("fido2-salt", JSON_BUILD_BASE64(salt, salt_size)), in enroll_fido2()
/systemd-251/src/home/
Dhomework-fscrypt.c92 const void *salt, size_t salt_size, in fscrypt_slot_try_one() argument
109 assert(salt_size > 0); in fscrypt_slot_try_one()
129 salt, salt_size, in fscrypt_slot_try_one()
195 const void *salt, size_t salt_size, in fscrypt_slot_try_many() argument
203 …r = fscrypt_slot_try_one(*i, salt, salt_size, encrypted, encrypted_size, match_key_descriptor, ret… in fscrypt_slot_try_many()
232 size_t salt_size, encrypted_size; in fscrypt_setup() local
254 r = unbase64mem(value, e - value, &salt, &salt_size); in fscrypt_setup()
265 salt, salt_size, in fscrypt_setup()
Dhomectl-fido2.c128 size_t cid_size, salt_size, secret_size; in identity_add_fido2_parameters() local
171 &salt, &salt_size, in identity_add_fido2_parameters()
190 salt_size, in identity_add_fido2_parameters()
Dhomework-fido2.c59 salt->salt, salt->salt_size, in fido2_use_token()
/systemd-251/src/shared/
Dlibfido2-util.c202 size_t salt_size, in fido2_use_hmac_hash_specific_token() argument
262 r = sym_fido_assert_set_hmac_salt(a, salt, salt_size); in fido2_use_hmac_hash_specific_token()
471 size_t salt_size, in fido2_use_hmac_hash() argument
488 …return fido2_use_hmac_hash_specific_token(device, rp_id, salt, salt_size, cid, cid_size, pins, req… in fido2_use_hmac_hash()
523 …r = fido2_use_hmac_hash_specific_token(path, rp_id, salt, salt_size, cid, cid_size, pins, required… in fido2_use_hmac_hash()
Dlibfido2-util.h94 size_t salt_size,
Duser-record.h199 size_t salt_size; member
Duser-record.c856 k->salt_size = 0; in dispatch_fido2_hmac_salt_value()
869 k->salt_size = l; in dispatch_fido2_hmac_salt_value()
/systemd-251/src/resolve/
Dresolved-dns-dnssec.c1528 if (EVP_DigestUpdate(ctx, nsec3->nsec3.salt, nsec3->nsec3.salt_size) <= 0) in dnssec_nsec3_hash()
1540 if (EVP_DigestUpdate(ctx, nsec3->nsec3.salt, nsec3->nsec3.salt_size) <= 0) in dnssec_nsec3_hash()
1568 gcry_md_write(md, nsec3->nsec3.salt, nsec3->nsec3.salt_size); in dnssec_nsec3_hash()
1580 gcry_md_write(md, nsec3->nsec3.salt, nsec3->nsec3.salt_size); in dnssec_nsec3_hash()
1640 if (rr->nsec3.salt_size != nsec3->nsec3.salt_size) in nsec3_is_good()
1642 if (memcmp_safe(rr->nsec3.salt, nsec3->nsec3.salt, rr->nsec3.salt_size) != 0) in nsec3_is_good()
Dresolved-dns-rr.c1057 if (rr->nsec3.salt_size > 0) { in dns_resource_record_to_string()
1058 salt = hexmem(rr->nsec3.salt, rr->nsec3.salt_size); in dns_resource_record_to_string()
1076 rr->nsec3.salt_size > 0 ? salt : "-", in dns_resource_record_to_string()
1443 siphash24_compress_safe(rr->nsec3.salt, rr->nsec3.salt_size, state); in dns_resource_record_hash_func()
1632 copy->nsec3.salt = memdup(rr->nsec3.salt, rr->nsec3.salt_size); in dns_resource_record_copy()
1635 copy->nsec3.salt_size = rr->nsec3.salt_size; in dns_resource_record_copy()
Dresolved-dns-rr.h226 size_t salt_size; member
Dresolved-dns-packet.c1130 r = dns_packet_append_uint8(p, rr->nsec3.salt_size, NULL); in dns_packet_append_rr()
1134 r = dns_packet_append_blob(p, rr->nsec3.salt, rr->nsec3.salt_size, NULL); in dns_packet_append_rr()
2047 r = dns_packet_read_memdup(p, size, &rr->nsec3.salt, &rr->nsec3.salt_size, NULL); in dns_packet_read_rr()
Dtest-dnssec.c772 rr->nsec3.salt_size = sizeof(salt); in TEST()