common/cnxk: add hash generation API