@@ -147,7 +147,7 @@ int fsverity_cmd_sign(const struct fsverity_command *cmd,
goto out_err;
}
- memset(¶ms, 0, sizeof(struct libfsverity_merkle_tree_params));
+ memset(¶ms, 0, sizeof(params));
params.version = 1;
params.hash_algorithm = alg_nr;
params.block_size = block_size;
@@ -162,7 +162,7 @@ int fsverity_cmd_sign(const struct fsverity_command *cmd,
digest_size = libfsverity_digest_size(alg_nr);
- memset(&sig_params, 0, sizeof(struct libfsverity_signature_params));
+ memset(&sig_params, 0, sizeof(sig_params));
sig_params.keyfile = keyfile;
sig_params.certfile = certfile;
if (libfsverity_sign_digest(digest, &sig_params, &sig, &sig_size)) {