History log of /netbsd/common/lib/libc/hash/sha2/sha2.c (Results 1 – 25 of 25)
Revision Date Author Comments
# a5fd8ea8 28-Oct-2021 christos <christos@NetBSD.org>

Fix build with -Werror=array-parameter (Etienne Brateau)


# 609a6a1e 09-Jun-2013 christos <christos@NetBSD.org>

no need for the local defs of he enc functions; compat_defs.h provides them.


# c6ef2d1d 09-Jun-2013 christos <christos@NetBSD.org>

Use be{32,64}enc, suggested by joerg.


# bc3d935a 07-Jun-2013 christos <christos@NetBSD.org>

PR/47908: Gary Grebus: SHA256_Transform and SHA512_Transform are called
by openssl with unaligned buffers. All other Transforms can handle unaligned
buffers so make these handle them too.
XXX[1]: any

PR/47908: Gary Grebus: SHA256_Transform and SHA512_Transform are called
by openssl with unaligned buffers. All other Transforms can handle unaligned
buffers so make these handle them too.
XXX[1]: any better fixes are welcome
XXX[2]: pullup-5, pullup-6

show more ...


# 85b087f1 24-Jan-2010 joerg <joerg@NetBSD.org>

Fix unaligned access in *_Final for SHA224/SHA256/SHA384.
Remaining part of PR 42273. Tested by snj.


# e51ee4c4 06-Nov-2009 joerg <joerg@NetBSD.org>

Fix unaligned access as reported in PR port-sparc/42273


# b1aca4e8 21-Aug-2009 skrll <skrll@NetBSD.org>

Don't define weak aliases if _STANDALONE.


# faf14618 25-Jun-2009 joerg <joerg@NetBSD.org>

Fix initialisation of SHA224.


# ab353978 19-Jun-2009 tsutsui <tsutsui@NetBSD.org>

- move #include <sys/param.h> inside #if defined(_KERNEL) section
where it's actually required
- add XXX comments that notes <sys/param.h> is required for vax memset(9)


# b1946a6b 18-Jun-2009 he <he@NetBSD.org>

Back out the addition of memset.c to the vax libkern, and instead do
as tsutsui@ suggested, and include <sys/param.h> in sha2.c instead.
On the vax, this causes <machine/macros.h> to be included, and

Back out the addition of memset.c to the vax libkern, and instead do
as tsutsui@ suggested, and include <sys/param.h> in sha2.c instead.
On the vax, this causes <machine/macros.h> to be included, and it contains
that machine's memset() macro+inline.

show more ...


# cd4c43c9 14-Jun-2009 martin <martin@NetBSD.org>

Fix copy&paste errors


# 94cd590d 11-Jun-2009 joerg <joerg@NetBSD.org>

Provide fallback definitions of be[32|64]toh and htobe[32|64] for
systems without sys/endian.h.


# 13573b19 11-Jun-2009 christos <christos@NetBSD.org>

use memcpy for bitcount writes to the buffer to avoid type punning issues.


# 46f23ced 11-Jun-2009 christos <christos@NetBSD.org>

- fix sha224 functions that used sha256 ctx, and add casts.
- fix sha224 function lengths.
- wrap long lines
- use NULL
- fix whitespace
- put all 224 functions together in the same spirit as 384


# 02c42980 11-Jun-2009 joerg <joerg@NetBSD.org>

KNF


# 8c33577a 11-Jun-2009 joerg <joerg@NetBSD.org>

De-uglify:
- drop useless asserts
- use uintXX_t directly
- use NULL


# c8f28eff 11-Jun-2009 joerg <joerg@NetBSD.org>

Simplify by using sys/endian.h functions. Fixes Big Endian case for SHA2.


# 09d5d441 26-May-2009 joerg <joerg@NetBSD.org>

Add SHA224 implementation to libc.
Make libcrypto use the SHA2 implementation of libc.
Bump minor versions of libc and libcrypto.


# cf01a0f8 16-Feb-2008 apb <apb@NetBSD.org>

C99 is no longer "very recent". Adjust a comment accordingly, and
start using uintNN_t instead of u_intNN_t in the definitions of
sha2_{byte,word32,word64}.


# de07feb2 18-Jul-2007 drochner <drochner@NetBSD.org>

cast to void* to avoid a fatal warning


# 17c77a58 18-Jul-2007 joerg <joerg@NetBSD.org>

Fix SIGBUS issues on strict alignment issues. Use le32dec in RMD160
as the data pointer to RMD160_Update doesn't have to be aligned.
In SHA256_Update and SHA512_Update, only operate directly on the p

Fix SIGBUS issues on strict alignment issues. Use le32dec in RMD160
as the data pointer to RMD160_Update doesn't have to be aligned.
In SHA256_Update and SHA512_Update, only operate directly on the passed
in data if no left-over in the context exists and the data is correctly
aligned. The problem was exposed by the audit-packages rewrite in C
and reported for the libnbcompat version in PR pkg/36662.

show more ...


# ace49726 18-Feb-2007 christos <christos@NetBSD.org>

Make SHA512_Last static since it is not part of the API. Suggested by
Matthias Scheler


# 5feb51ff 17-Feb-2007 christos <christos@NetBSD.org>

make SHA512_Last weak.


# 80b96f1a 01-Nov-2006 he <he@NetBSD.org>

Add include of <sys/param.h>, to allow vax kernels to build again.
For vax, this causes <machine/macros.h> to be included and the
redefine of memset() to take effect.


# 77c9e419 27-Oct-2006 christos <christos@NetBSD.org>

this is shared with the kernel now.