Searched refs:QCryptoBlockLUKSHeader (Results 1 – 3 of 3) sorted by relevance
342 typedef const char *(*LuksHeaderDoBadStuff)(QCryptoBlockLUKSHeader *hdr);351 QCryptoBlockLUKSHeader hdr; in test_luks_bad_header()396 static const char *luks_bad_null_term_cipher_name(QCryptoBlockLUKSHeader *hdr) in luks_bad_null_term_cipher_name()405 static const char *luks_bad_null_term_cipher_mode(QCryptoBlockLUKSHeader *hdr) in luks_bad_null_term_cipher_mode()414 static const char *luks_bad_null_term_hash_spec(QCryptoBlockLUKSHeader *hdr) in luks_bad_null_term_hash_spec()423 static const char *luks_bad_cipher_name_empty(QCryptoBlockLUKSHeader *hdr) in luks_bad_cipher_name_empty()430 static const char *luks_bad_cipher_name_unknown(QCryptoBlockLUKSHeader *hdr) in luks_bad_cipher_name_unknown()437 static const char *luks_bad_cipher_xts_size(QCryptoBlockLUKSHeader *hdr) in luks_bad_cipher_xts_size()444 static const char *luks_bad_cipher_cbc_size(QCryptoBlockLUKSHeader *hdr) in luks_bad_cipher_cbc_size()452 static const char *luks_bad_cipher_mode_empty(QCryptoBlockLUKSHeader *hdr) in luks_bad_cipher_mode_empty()[all …]
46 typedef struct QCryptoBlockLUKSHeader QCryptoBlockLUKSHeader; typedef99 struct QCryptoBlockLUKSHeader { struct139 qcrypto_block_luks_to_disk_endian(QCryptoBlockLUKSHeader *hdr); argument141 qcrypto_block_luks_from_disk_endian(QCryptoBlockLUKSHeader *hdr);
119 QEMU_BUILD_BUG_ON(sizeof(struct QCryptoBlockLUKSHeader) != 592);123 QCryptoBlockLUKSHeader header;241 const QCryptoBlockLUKSHeader *luks_header = (const void *)buf; in qcrypto_block_luks_has_format()243 if (buf_size >= offsetof(QCryptoBlockLUKSHeader, cipher_name) && in qcrypto_block_luks_has_format()364 qcrypto_block_luks_to_disk_endian(QCryptoBlockLUKSHeader *hdr) in qcrypto_block_luks_to_disk_endian()386 qcrypto_block_luks_from_disk_endian(QCryptoBlockLUKSHeader *hdr) in qcrypto_block_luks_from_disk_endian()418 g_autofree QCryptoBlockLUKSHeader *hdr_copy = NULL; in qcrypto_block_luks_store_header()421 hdr_copy = g_new0(QCryptoBlockLUKSHeader, 1); in qcrypto_block_luks_store_header()422 memcpy(hdr_copy, &luks->header, sizeof(QCryptoBlockLUKSHeader)); in qcrypto_block_luks_store_header()