NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/45863: vax does not boot -current
The following reply was made to PR kern/45863; it has been noted by GNATS.
From: Chuck Silvers <chuq%chuq.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: kern-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
netbsd-bugs%netbsd.org@localhost
Subject: Re: kern/45863: vax does not boot -current
Date: Sat, 21 Jan 2012 09:28:01 -0800
this is a gcc bug. here's a hack to work around it.
-Chuck
--- src/sys/crypto/nist_ctr_drbg/nist_ctr_drbg.c 19 Nov 2011 22:51:22
-0000 1.1
+++ src/sys/crypto/nist_ctr_drbg/nist_ctr_drbg.c 21 Jan 2012 17:26:22
-0000
@@ -262,6 +262,8 @@ nist_ctr_drbg_df_bcc_final(NIST_CTR_DRBG
}
}
+static void *vaxhack;
+
static int
nist_ctr_drbg_block_cipher_df(const char *input_string[], unsigned int L[],
int input_string_count,
@@ -293,6 +295,8 @@ nist_ctr_drbg_block_cipher_df(const char
for (j = 0; j < NIST_BLOCK_SEEDLEN / NIST_BLOCK_OUTLEN; ++j) {
/* [9.2] temp = temp || BCC(K, (IV || S)) */
+ vaxhack = &nist_cipher_df_encrypted_iv[j][0];
+
/* Since we have precomputed BCC(K, IV), we start with that...
*/
memcpy(&temp[0], &nist_cipher_df_encrypted_iv[j][0],
NIST_BLOCK_OUTLEN_BYTES);
Home |
Main Index |
Thread Index |
Old Index