I’m trying to extract and compile the SHA-512 implementation in sphlib. The problem is this part:
void
sph_sha512_close(void *cc, void *dst)
{
sha384_close(cc, dst, 8);
sph_sha512_init(cc);
}
I can not for the life of me find where sha384_close is defined. In fact, a search through the entire project shows no definitions/declarations at all.
Does anyone know where this function is defined?
It appears to be a macro at the bottom of md_helper.c; from sha2.c:
and at the bottom of md_helper:
where
SPH_XCATis just token concatenation ofHASH(=sha384) and_close.