History log of /openbsd-current/sys/crypto/sha1.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.11 28-Dec-2014 tedu

convert bcopy to memcpy in md5 and sha1. also be consistent about clearing
context and making digest required to Final.


# 1.10 16-Nov-2014 tedu

Defining the interface in terms of char * means most callers are
required to cast their pointers, which is ugly and possibly error
prone. accidentally casting an int to a pointer, for example, instead
of the address of the int. implicit void * casting is safer.

This updates the kernel hash interfaces to use void *. Similar changes
are possible for userland. I think it's safe, but there may be some
peculiar source compatbility issues there, so let's just do the kernel
first.
ok dlg millert


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.9 11-Jan-2011 deraadt

in SHA1Final(), explicitly clear the local buffer
ok mikeb


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.8 10-Sep-2007 henric

Make the hmac ipad/opad globals "const" and fixup the crypto functions
to match.

ok deraadt@


Revision tags: OPENBSD_4_2_BASE
# 1.7 20-Jul-2007 otto

unbreak landisk kernel sha1 by working around a compiler bug;
also brings kernel sha1 more in line with userland;
discussed with miod@ and millert@;


# 1.6 10-Apr-2007 miod

``it's'' -> ``its'' when the grammar gods require this change.


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE SMP_SYNC_A SMP_SYNC_B
# 1.5 28-Apr-2004 hshoexer

Some KNF, made bit count u_int64_t instead of u_int32_t (similar to libc).
Added constants for buffer lengths.

ok millert@


# 1.4 31-Mar-2004 brad

remove sparc64/gcc2 workaround.

ok millert@ deraadt@ jason@


Revision tags: OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE UBC_SYNC_A
# 1.3 08-Jan-2003 millert

Move the rounds into separate functions on sparc64 so gcc's optimizer
doesn't blow up. This is a hack but is better than compiling sha1.c
with -O0 on sparc64. From NetBSD (mrg).
deraadt@ OK


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE UBC_BASE UBC_SYNC_B
# 1.2 04-Jun-2000 deraadt

branches: 1.2.8;
better indent for easier searching


Revision tags: OPENBSD_2_7_BASE
# 1.1 28-Feb-2000 deraadt

branches: 1.1.2;
move crypto code