• Matt Turner's avatar
    util: Fix SHA1 implementation on big endian · 53267430
    Matt Turner authored
    The code defines a macro blk0(i) based on the preprocessor condition
    BYTE_ORDER == LITTLE_ENDIAN. If true, blk0(i) is defined as a byte swap
    operation. Unfortunately, if the preprocessor macros used in the test
    are no defined, then the comparison becomes 0 == 0 and it evaluates as
    Fixes: d1efa09d ("util: import sha1 implementation from OpenBSD")
    Reviewed-by: default avatarEmil Velikov <emil.velikov@collabora.com>
Last commit
Last update
README Loading commit data...
sha1.c Loading commit data...
sha1.h Loading commit data...