Module Name: src
Committed By: macallan
Date: Mon Nov 21 23:48:52 UTC 2011
Modified Files:
src/sys/crypto/nist_ctr_drbg: nist_ctr_drbg.h
Log Message:
NIST_CTR_DRBG.V is accessed as (unsigned long *) so we need to make sure
it's aligned accordingly or we go boom on sparc64
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/crypto/nist_ctr_drbg/nist_ctr_drbg.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/crypto/nist_ctr_drbg/nist_ctr_drbg.h
diff -u src/sys/crypto/nist_ctr_drbg/nist_ctr_drbg.h:1.1 src/sys/crypto/nist_ctr_drbg/nist_ctr_drbg.h:1.2
--- src/sys/crypto/nist_ctr_drbg/nist_ctr_drbg.h:1.1 Sat Nov 19 22:51:22 2011
+++ src/sys/crypto/nist_ctr_drbg/nist_ctr_drbg.h Mon Nov 21 23:48:52 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: nist_ctr_drbg.h,v 1.1 2011/11/19 22:51:22 tls Exp $ */
+/* $NetBSD: nist_ctr_drbg.h,v 1.2 2011/11/21 23:48:52 macallan Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
typedef struct {
unsigned int reseed_counter;
NIST_Key ctx;
- unsigned int V[NIST_BLOCK_OUTLEN_INTS];
+ unsigned int V[NIST_BLOCK_OUTLEN_INTS] __attribute__ ((aligned(8)));
} NIST_CTR_DRBG;
int nist_ctr_initialize(void);