Running fipshmac <lib_path>/libkcapi.so.<version> generates different output then what kcapi-hasher -n <name> -L expects.
Now in order to correctly compute library hmac it is necessary to use fipshmac -h sha512 -K "FIPS-FTW-RHT2009" <lib_path>/libkcapi.so.<version>.
This seems to me like a bug and fipshmac should run with -h sha512 -K "FIPS-FTW-RHT2009 as default.