[Bug default/19067] Add an 'abihash' utility that computes a stable hash of a library ABI

andrew.c.morrow at gmail dot com sourceware-bugzilla@sourceware.org
Thu Jan 1 00:00:00 GMT 2015


https://sourceware.org/bugzilla/show_bug.cgi?id=19067

--- Comment #2 from andrew.c.morrow at gmail dot com ---
I think it would be OK.

It would cause a little impedance mismatch for my particular use case, where
SCons I think does want an MD5 sum. But since the hashes are being used for
indexing into a cache, I could probably just chop off the extra bytes and
pretend it was md5. I'm also not totally clear on whether SCons really actually
cares if the signature is any particular number of bytes. It might just work
fine to just use the full sha1 result. I'd hope it would work?

I suppose another option would be to have abihash take flags, like --md5 or
--sha1. Then a FIPS build could just error on the attempt to use a forbidden
hash.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libabigail mailing list