X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Fverity%2Fverity.h;h=afc411e796ff5a29947a5a4339d2717ce2cff7f7;hb=420ad62f0bb77970a6ba234bde9e1405f7df7789;hp=0b7f0cca0bdaded90d7da6b804f205cbdafb3031;hpb=6cd353b6260d3be1b8093534d74ce74f82f0040a;p=platform%2Fupstream%2Fcryptsetup.git diff --git a/lib/verity/verity.h b/lib/verity/verity.h index 0b7f0cc..afc411e 100644 --- a/lib/verity/verity.h +++ b/lib/verity/verity.h @@ -1,7 +1,7 @@ /* * dm-verity volume handling * - * Copyright (C) 2012-2020 Red Hat, Inc. All rights reserved. + * Copyright (C) 2012-2023 Red Hat, Inc. All rights reserved. * * This file is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -71,6 +71,17 @@ uint64_t VERITY_hash_offset_block(struct crypt_params_verity *params); uint64_t VERITY_hash_blocks(struct crypt_device *cd, struct crypt_params_verity *params); -int VERITY_UUID_generate(struct crypt_device *cd, char **uuid_string); +uint64_t VERITY_FEC_blocks(struct crypt_device *cd, + struct device *fec_device, + struct crypt_params_verity *params); +uint64_t VERITY_FEC_RS_blocks(uint64_t blocks, uint32_t roots); + +int VERITY_UUID_generate(char **uuid_string); + +int VERITY_dump(struct crypt_device *cd, + struct crypt_params_verity *verity_hdr, + const char *root_hash, + unsigned int root_hash_size, + struct device *fec_device); #endif