Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/crypto/nist_ctr_drbg NIST_CTR_DRBG.V is accessed as (uns...
details: https://anonhg.NetBSD.org/src/rev/0f0fee224cc4
branches: trunk
changeset: 771468:0f0fee224cc4
user: macallan <macallan%NetBSD.org@localhost>
date: Mon Nov 21 23:48:52 2011 +0000
description:
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
diffstat:
sys/crypto/nist_ctr_drbg/nist_ctr_drbg.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 28f786a95609 -r 0f0fee224cc4 sys/crypto/nist_ctr_drbg/nist_ctr_drbg.h
--- a/sys/crypto/nist_ctr_drbg/nist_ctr_drbg.h Mon Nov 21 22:00:42 2011 +0000
+++ b/sys/crypto/nist_ctr_drbg/nist_ctr_drbg.h Mon Nov 21 23:48:52 2011 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index