The build_mac() function in hs_descriptor.c should be made generic for the entire code base
Move build_mac() out of its file, put it in a common place, rename it with a better name and improve by adding the length of the salt and mac key to the construction so we don't assume fixed size length.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information