Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Nov 2014 15:38:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 195010] New: sh1 authentication has problem with byte order assumption
Message-ID:  <bug-195010-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195010

            Bug ID: 195010
           Summary: sh1 authentication has problem with byte order
                    assumption
           Product: Base System
           Version: 9.1-RELEASE
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: hsuenju_ko@stratus.com

sys/crypto/sha1.c is missing the include file of sys/endian.h so the check like
the following won't work. And since unsupported is not defined any check of
BYTE_ORDR following this always evaluate to true. See sha1_step and sha1_result
for the reference of BYTE_ORDER. Problem occurs when communicating to non-BSD
system. 

/* sanity check */
#if BYTE_ORDER != BIG_ENDIAN
# if BYTE_ORDER != LITTLE_ENDIAN
#  define unsupported 1
# endif
#endif

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-195010-8>