Print this page
6436 156 lint errors in common/crypto/edonr/edonr.c
*** 21,34 ****
* CDDL HEADER END
*
* Copyright (C) 2009, 2010, Jorn Amundsen <jorn.amundsen@ntnu.no>
* Tweaked Edon-R implementation for SUPERCOP, based on NIST API.
*
- * $Id: edonr.c 517 2013-02-17 20:34:39Z joern $
*/
/*
* Portions copyright (c) 2013, Saso Kiselkov, All rights reserved
*/
/* determine where we can get bcopy/bzero declarations */
#ifdef _KERNEL
#include <sys/systm.h>
--- 21,34 ----
* CDDL HEADER END
*
* Copyright (C) 2009, 2010, Jorn Amundsen <jorn.amundsen@ntnu.no>
* Tweaked Edon-R implementation for SUPERCOP, based on NIST API.
*
*/
/*
* Portions copyright (c) 2013, Saso Kiselkov, All rights reserved
+ * Copyright 2016 Gary Mills
*/
/* determine where we can get bcopy/bzero declarations */
#ifdef _KERNEL
#include <sys/systm.h>
*** 657,666 ****
--- 657,667 ----
}
switch (state->hashbitlen) {
case 224: {
#if defined(MACHINE_IS_BIG_ENDIAN)
+ /* LINTED: pointer cast may result in improper alignment */
uint32_t *d32 = (uint32_t *)hashval;
uint32_t *s32 = hashState224(state)->DoublePipe + 9;
int j;
for (j = 0; j < EdonR224_DIGEST_SIZE >> 2; j++)
*** 671,680 ****
--- 672,682 ----
#endif
break;
}
case 256: {
#if defined(MACHINE_IS_BIG_ENDIAN)
+ /* LINTED: pointer cast may result in improper alignment */
uint32_t *d32 = (uint32_t *)hashval;
uint32_t *s32 = hashState224(state)->DoublePipe + 8;
int j;
for (j = 0; j < EdonR256_DIGEST_SIZE >> 2; j++)
*** 685,694 ****
--- 687,697 ----
#endif
break;
}
case 384: {
#if defined(MACHINE_IS_BIG_ENDIAN)
+ /* LINTED: pointer cast may result in improper alignment */
uint64_t *d64 = (uint64_t *)hashval;
uint64_t *s64 = hashState384(state)->DoublePipe + 10;
int j;
for (j = 0; j < EdonR384_DIGEST_SIZE >> 3; j++)
*** 699,708 ****
--- 702,712 ----
#endif
break;
}
case 512: {
#if defined(MACHINE_IS_BIG_ENDIAN)
+ /* LINTED: pointer cast may result in improper alignment */
uint64_t *d64 = (uint64_t *)hashval;
uint64_t *s64 = hashState512(state)->DoublePipe + 8;
int j;
for (j = 0; j < EdonR512_DIGEST_SIZE >> 3; j++)