Workarounds for bugs in raw-sha256-ng. Until we get better fixes, we decrease
max. length to 55 and introduce a workaround for cmp_all().