static void query_device(void)
{
- struct crypt_options co = {. icb = &cmd_icb };
+ struct crypt_options co = {.icb = &cmd_icb };
co.name = CDEVICE_WRONG;
EQ_(crypt_query_device(&co), 0);
static void remove_device(void)
{
int fd;
- struct crypt_options co = {. icb = &cmd_icb };
+ struct crypt_options co = {.icb = &cmd_icb };
co.name = CDEVICE_WRONG;
EQ_(crypt_remove_device(&co), -ENODEV);
}
OK_(crypt_init(&cd, DEVICE_2));
OK_(crypt_format(cd, CRYPT_LUKS1, cipher, cipher_mode, NULL, key, key_size, ¶ms));
+
+ params.hash = "md5";
+ FAIL_(crypt_format(cd, CRYPT_LUKS1, cipher, cipher_mode, NULL, key, key_size, ¶ms),
+ "MD5 unsupported, too short");
crypt_free(cd);
}