Searched refs:ivsz (Results 1 – 1 of 1) sorted by relevance
/systemd-251/src/shared/ |
D | creds-util.c | 502 int ksz, bsz, ivsz, tsz, added, r; in encrypt_credential_and_warn() local 637 ivsz = EVP_CIPHER_iv_length(cc); in encrypt_credential_and_warn() 638 if (ivsz > 0) { in encrypt_credential_and_warn() 639 assert((size_t) ivsz <= CREDENTIAL_FIELD_SIZE_MAX); in encrypt_credential_and_warn() 641 iv = malloc(ivsz); in encrypt_credential_and_warn() 645 r = genuine_random_bytes(iv, ivsz, RANDOM_BLOCK); in encrypt_credential_and_warn() 663 ALIGN8(offsetof(struct encrypted_credential_header, iv) + ivsz) + in encrypt_credential_and_warn() 678 h->iv_size = htole32(ivsz); in encrypt_credential_and_warn() 679 memcpy(h->iv, iv, ivsz); in encrypt_credential_and_warn() 681 p = ALIGN8(offsetof(struct encrypted_credential_header, iv) + ivsz); in encrypt_credential_and_warn()
|