Home
last modified time | relevance | path

Searched refs:signature_size (Results 1 – 10 of 10) sorted by relevance

/systemd-251/src/home/
Duser-record-sign.c37 size_t signature_size = 0, key_size = 0; in user_record_sign() local
58 if (EVP_DigestSign(md_ctx, NULL, &signature_size, (uint8_t*) text, strlen(text)) <= 0) in user_record_sign()
61 signature = malloc(signature_size); in user_record_sign()
65 if (EVP_DigestSign(md_ctx, signature, &signature_size, (uint8_t*) text, strlen(text)) <= 0) in user_record_sign()
80 … JSON_BUILD_OBJECT(JSON_BUILD_PAIR("data", JSON_BUILD_BASE64(signature, signature_size)), in user_record_sign()
132 size_t signature_size = 0; in user_record_verify() local
142 r = json_variant_unbase64(data, &signature, &signature_size); in user_record_verify()
153 … if (EVP_DigestVerify(md_ctx, signature, signature_size, (uint8_t*) text, strlen(text)) <= 0) { in user_record_verify()
/systemd-251/src/resolve/
Dtest-dnssec.c161 rrsig->rrsig.signature_size = sizeof(signature_blob); in TEST()
162 rrsig->rrsig.signature = memdup(signature_blob, rrsig->rrsig.signature_size); in TEST()
253 rrsig->rrsig.signature_size = sizeof(signature_blob); in TEST()
254 rrsig->rrsig.signature = memdup(signature_blob, rrsig->rrsig.signature_size); in TEST()
344 rrsig->rrsig.signature_size = sizeof(signature_blob); in TEST()
345 rrsig->rrsig.signature = memdup(signature_blob, rrsig->rrsig.signature_size); in TEST()
439 rrsig->rrsig.signature_size = sizeof(signature_blob); in TEST()
440 rrsig->rrsig.signature = memdup(signature_blob, rrsig->rrsig.signature_size); in TEST()
504 rrsig->rrsig.signature_size = sizeof(signature_blob); in TEST()
505 rrsig->rrsig.signature = memdup(signature_blob, rrsig->rrsig.signature_size); in TEST()
[all …]
Dresolved-dns-dnssec.c95 const void *signature, size_t signature_size, in dnssec_rsa_verify_raw() argument
127 assert((size_t) RSA_size(rpubkey) == signature_size); in dnssec_rsa_verify_raw()
149 r = EVP_PKEY_verify(ctx, signature, signature_size, data, data_size); in dnssec_rsa_verify_raw()
162 ge = gcry_mpi_scan(&s, GCRYMPI_FMT_USG, signature, signature_size, NULL); in dnssec_rsa_verify_raw()
288 rrsig->rrsig.signature, rrsig->rrsig.signature_size, in dnssec_rsa_verify()
477 if (rrsig->rrsig.signature_size != key_size * 2) in dnssec_ecdsa_verify()
495 const uint8_t *signature, size_t signature_size, in dnssec_eddsa_verify_raw() argument
506 assert(signature_size == key_size * 2); in dnssec_eddsa_verify_raw()
508 uint8_t *q = newa(uint8_t, signature_size + 1); in dnssec_eddsa_verify_raw()
510 memcpy(q+1, signature, signature_size); in dnssec_eddsa_verify_raw()
[all …]
Dresolved-dns-rr.c1033 rr->rrsig.signature, rr->rrsig.signature_size, in dns_resource_record_to_string()
1422 siphash24_compress_safe(rr->rrsig.signature, rr->rrsig.signature_size, state); in dns_resource_record_hash_func()
1601 copy->rrsig.signature = memdup(rr->rrsig.signature, rr->rrsig.signature_size); in dns_resource_record_copy()
1604 copy->rrsig.signature_size = rr->rrsig.signature_size; in dns_resource_record_copy()
Dresolved-dns-rr.h196 size_t signature_size; member
Dresolved-dns-packet.c1103 r = dns_packet_append_blob(p, rr->rrsig.signature, rr->rrsig.signature_size, NULL); in dns_packet_append_rr()
1996 &rr->rrsig.signature, &rr->rrsig.signature_size, in dns_packet_read_rr()
1999 if (rr->rrsig.signature_size <= 0) in dns_packet_read_rr()
/systemd-251/src/import/
Dpull-common.c383 const void *signature, size_t signature_size) { in verify_gpg() argument
392 assert(signature || signature_size == 0); in verify_gpg()
398 if (signature_size > 0) { in verify_gpg()
405 r = loop_write(sig_file, signature, signature_size, false); in verify_gpg()
496 if (signature_size > 0) in verify_gpg()
/systemd-251/test/units/
Dtestsuite-50.sh122 signature_size=4
124 dd if=/dev/zero of="${image}.gpt" bs=512 count=$((8192+root_size*2+verity_size*2+signature_size*2))
133 signature_size="$((signature_size * 2))KiB"
168 truncate -s "${signature_size}" "${image}.verity-sig"
182 echo -e "size=${signature_size}, type=${signature_guid}" | sfdisk "${image}.gpt" --append
/systemd-251/src/shared/
Dcryptsetup-util.h20 …r *volume_key, size_t volume_key_size, const char *signature, size_t signature_size, uint32_t flag…
Dcryptsetup-util.c14 …r *volume_key, size_t volume_key_size, const char *signature, size_t signature_size, uint32_t flag…