Home
last modified time | relevance | path

Searched refs:hash_spec (Results 1 – 3 of 3) sorted by relevance

/openbmc/qemu/tests/unit/
H A Dtest-crypto-block.c417 char *offset = hdr->hash_spec + strlen(hdr->hash_spec); in luks_bad_null_term_hash_spec()
418 memset(offset, ' ', sizeof(hdr->hash_spec) - (offset - hdr->hash_spec)); in luks_bad_null_term_hash_spec()
503 memcpy(hdr->hash_spec, "", 1); in luks_bad_hash_spec_empty()
510 memcpy(hdr->hash_spec, "sha2566", 8); in luks_bad_hash_spec_unknown()
/openbmc/qemu/crypto/
H A Dblock-luks-priv.h113 char hash_spec[QCRYPTO_BLOCK_LUKS_HASH_SPEC_LEN]; member
H A Dblock-luks.c506 if (!memchr(luks->header.hash_spec, '\0', in qcrypto_block_luks_check_header()
507 sizeof(luks->header.hash_spec))) { in qcrypto_block_luks_check_header()
649 qcrypto_block_luks_hash_name_lookup(luks->header.hash_spec, in qcrypto_block_luks_parse_header()
1429 strcpy(luks->header.hash_spec, hash_alg); in qcrypto_block_luks_create()