Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Feb 2006 11:48:47 +1100 (EST)
From:      Mark Andrews <Mark_Andrews@isc.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/93776: SHA256_Update / SHA512_Update fail to ensure correct alignment
Message-ID:  <200602240048.k1O0mlN2045848@drugs.dv.isc.org>
Resent-Message-ID: <200602240050.k1O0o5Ut048989@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         93776
>Category:       bin
>Synopsis:       SHA256_Update / SHA512_Update fail to ensure correct alignment
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 24 00:50:04 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Mark Andrews
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
ISC
>Environment:
System: FreeBSD drugs.dv.isc.org 4.11-STABLE FreeBSD 4.11-STABLE #27: Fri Jan 27 22:26:40 EST 2006 marka@drugs.dv.isc.org:/usr/obj/usr/src/sys/DRUGS i386


/*      $FreeBSD: src/sys/crypto/sha2/sha2.c,v 1.2.2.2 2002/03/05 08:36:47 ume Exp $    */

>Description:

	We have incorporated the above revision into BIND 9.4.0. 

	Testing of the DS record with SHA256 (see draft) showed up a
	problem on sparc machines.  data is not always correctly aligned
	to be correctly cast to (sha2_word32*) / (sha2_word64*).

	http://www.ietf.org/internet-drafts/draft-ietf-dnsext-ds-sha256-05.txt

>How-To-Repeat:

>Fix:

	Always copy data to context->buffer before calling SHA256_Transform()
	as context->buffer is correctly aligned.
>Release-Note:
>Audit-Trail:
>Unformatted:



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