mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 02:03:37 +08:00
systemd-integritysetup: accept integrity-algorithm=xxhash64
Signed-off-by: Daniel Dawson <danielcdawson@gmail.com>
This commit is contained in:
parent
bfc48578eb
commit
0c96911afb
@ -125,7 +125,7 @@
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>integrity-algorithm=[crc32c|crc32|sha1|sha256|hmac-sha256]</option></term>
|
||||
<term><option>integrity-algorithm=[crc32c|crc32|xxhash64|sha1|sha256|hmac-sha256]</option></term>
|
||||
|
||||
<listitem><para>
|
||||
The algorithm used for integrity checking. The default is crc32c. Must match option used during format.
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
|
||||
static int supported_integrity_algorithm(char *user_supplied) {
|
||||
if (!STR_IN_SET(user_supplied, "crc32", "crc32c", "sha1", "sha256", "hmac-sha256"))
|
||||
if (!STR_IN_SET(user_supplied, "crc32", "crc32c", "xxhash64", "sha1", "sha256", "hmac-sha256"))
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Unsupported integrity algorithm (%s)", user_supplied);
|
||||
return 0;
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ fi
|
||||
# Do one iteration with a separate data device, to test those branches
|
||||
separate_data=1
|
||||
|
||||
for algorithm in crc32c crc32 sha1 sha256
|
||||
for algorithm in crc32c crc32 xxhash64 sha1 sha256
|
||||
do
|
||||
if [ "${separate_data}" -eq 1 ]; then
|
||||
data_option="--data-device=${image_dir}/data"
|
||||
|
Loading…
Reference in New Issue
Block a user