On 2/28/20 4:28 PM, Jes Sorensen wrote: > From: Jes Sorensen <jsorensen@xxxxxx> > > Hi, > > Here is a reworked version of the patches to split fsverity-utils into > a shared library, based on the feedback for the original version. Note > this doesn't yet address setting the soname, and doesn't have the > client (rpm) changes yet, so there is more work to do. > > Comments appreciated. Hi, Any thoughts on this patchset? Thanks, Jes > Cheers, > Jes > > Jes Sorensen (6): > Build basic shared library framework > Change compute_file_measurement() to take a file descriptor as > argument > Move fsverity_descriptor definition to libfsverity.h > Move hash algorithm code to shared library > Create libfsverity_compute_digest() and adapt cmd_sign to use it > Introduce libfsverity_sign_digest() > > Makefile | 18 +- > cmd_enable.c | 11 +- > cmd_measure.c | 4 +- > cmd_sign.c | 526 ++++---------------------------------------------- > fsverity.c | 15 ++ > hash_algs.c | 26 +-- > hash_algs.h | 27 --- > libfsverity.h | 99 ++++++++++ > libverity.c | 526 ++++++++++++++++++++++++++++++++++++++++++++++++++ > util.h | 2 + > 10 files changed, 707 insertions(+), 547 deletions(-) > create mode 100644 libfsverity.h > create mode 100644 libverity.c >