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
This commit is contained in:
parent
63da447932
commit
19166a6288
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue