OpenBSD CVS

CVS log for src/sys/crypto/cryptosoft.h


[BACK] Up to [local] / src / sys / crypto

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.16 / (download) - annotate - [select for diffs], Fri Jul 9 15:29:55 2021 UTC (2 years, 10 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, HEAD
Changes since 1.15: +5 -2 lines
Diff to previous 1.15 (colored)

Use SLIST macro for cryptosoft sessions instead of hand rolled list.
OK mpi@ tobhe@

Revision 1.15 / (download) - annotate - [select for diffs], Thu Jul 8 09:22:30 2021 UTC (2 years, 10 months ago) by bluhm
Branch: MAIN
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored)

The properties of the crypto algorithms never change.  Declare them
constant.  Then they are mapped as read only.
OK deraadt@ dlg@

Revision 1.14 / (download) - annotate - [select for diffs], Fri Dec 7 17:03:22 2012 UTC (11 years, 5 months ago) by mikeb
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Fix one of the two issues with ESN support in the GCM case:
supply correct AAD length to the final round of hashing.
While here rename swcr_combined to swcr_authenc.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Sep 22 11:54:23 2010 UTC (13 years, 8 months ago) by mikeb
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (colored)

OCF support for the Galois/Counter Mode (GCM) for AES as
described in FIPS SP 800-38D.

This implementation supports 16 byte authentication tag only,
splitting transformation into two parts: encryption and
authentication.  Encryption is handled by the existing
AES-CTR implementation, while authentication requires new
AES_GMAC hash function.

Additional routine is added to the software crypto driver
to deal with peculiarities of a combined authentication-
encryption transformation.

With suggestions from reyk, naddy and toby.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jan 10 12:43:07 2010 UTC (14 years, 4 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

Fix two bugs in IPsec/HMAC-SHA2:
(1) use correct (message) block size of 128 byte (instead of 64
    bytes) for HMAC-SHA512/384 (RFC4634).
(2) RFC4868 specifies that HMAC-SHA-{256,384,512} is truncated to
    nnn/2 bits, while we still use 96 bits. 96 bits have been
    specified in draft-ietf-ipsec-ciph-sha-256-00 while
    draft-ietf-ipsec-ciph-sha-256-01 changed it to 128 bits.

WARNING: this change makes IPsec with SHA-256 (the default)
incompatible with older OpenBSD versions and other IPsec-implementations
that share this bug.

ok+tests naddy, fries; requested by reyk/deraadt

Revision 1.11 / (download) - annotate - [select for diffs], Mon Sep 10 22:19:42 2007 UTC (16 years, 8 months ago) by henric
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

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

ok deraadt@

Revision 1.1.2.7 / (download) - annotate - [select for diffs], Thu Mar 27 23:53:48 2003 UTC (21 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.1.2.6: +1 -1 lines
Diff to previous 1.1.2.6 (colored) next main 1.2 (colored)

Sync the SMP branch with 3.3

Revision 1.6.4.1 / (download) - annotate - [select for diffs], Tue Jun 11 03:28:34 2002 UTC (21 years, 11 months ago) by art
Branch: UBC
Changes since 1.6: +4 -6 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Sync UBC branch to -current

Revision 1.10 / (download) - annotate - [select for diffs], Mon Apr 22 23:10:09 2002 UTC (22 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: UBC_SYNC_B, UBC_SYNC_A, SMP_SYNC_B, SMP_SYNC_A, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

KNF

Revision 1.1.2.6 / (download) - annotate - [select for diffs], Thu Mar 28 11:43:03 2002 UTC (22 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.1.2.5: +0 -2 lines
Diff to previous 1.1.2.5 (colored)

Merge in -current from about a week ago

Revision 1.9 / (download) - annotate - [select for diffs], Tue Mar 19 23:24:53 2002 UTC (22 years, 2 months ago) by angelos
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.8: +1 -3 lines
Diff to previous 1.8 (colored)

Don't keep the last blocksize-bytes of ciphertext for use as the next
plaintext's IV, in CBC mode. Use arc4random() to acquire fresh IVs per
message instead (particularly useful for IPsec).

This avoids the CBC oracle attack. provos@ ok

Revision 1.1.2.5 / (download) - annotate - [select for diffs], Wed Mar 6 02:07:09 2002 UTC (22 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.1.2.4: +3 -3 lines
Diff to previous 1.1.2.4 (colored)

Merge in trunk

Revision 1.8 / (download) - annotate - [select for diffs], Tue Mar 5 15:59:41 2002 UTC (22 years, 3 months ago) by markus
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

export MD5/SHA1 via /dev/crypto; ok provos@, beck@
tested with cryptosoft and kern.cryptodevallowsoft=1

Revision 1.7 / (download) - annotate - [select for diffs], Sun Feb 24 00:30:00 2002 UTC (22 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

license repair, angelos ok

Revision 1.1.2.4 / (download) - annotate - [select for diffs], Wed Oct 31 03:11:47 2001 UTC (22 years, 7 months ago) by nate
Branch: SMP
Changes since 1.1.2.3: +8 -1 lines
Diff to previous 1.1.2.3 (colored)

Sync the SMP branch to something just after 3.0

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jul 5 08:26:05 2001 UTC (22 years, 11 months ago) by jjbg
Branch: MAIN
CVS Tags: UBC_BASE, OPENBSD_3_0_BASE, OPENBSD_3_0
Branch point for: UBC
Changes since 1.5: +8 -1 lines
Diff to previous 1.5 (colored)

Compression support for IPComp. Include files only. angelos@ ok.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Wed Jul 4 10:40:00 2001 UTC (22 years, 11 months ago) by niklas
Branch: SMP
Changes since 1.1.2.2: +33 -36 lines
Diff to previous 1.1.2.2 (colored)

Merge in -current from two days ago in the SMP branch.
As usual with merges, they do not indicate progress, so do not hold
your breath for working SMP, and do not mail me and ask about the
state of it.  It has not changed.  There is work ongoing, but very, very
slowly.  The commit is done in parts as to not lock up the tree in too
big chunks at a time.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jun 16 22:17:50 2001 UTC (22 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +32 -37 lines
Diff to previous 1.4 (colored)

KNF

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Mon May 14 22:06:52 2001 UTC (23 years ago) by niklas
Branch: SMP
Changes since 1.1.2.1: +3 -1 lines
Diff to previous 1.1.2.1 (colored)

merge in approximately 2.9 into SMP branch

Revision 1.4 / (download) - annotate - [select for diffs], Sun May 13 16:52:33 2001 UTC (23 years ago) by jason
Branch: MAIN
Changes since 1.3: +2 -0 lines
Diff to previous 1.3 (colored)

copyrights and $OpenBSD$ tags

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jul 21 00:02:20 2000 UTC (23 years, 10 months ago) by angelos
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.2: +2 -0 lines
Diff to previous 1.2 (colored)

Fix KPDK mode (based on patch provided by lob@netstream.se)

Revision 1.2 / (download) - annotate - [select for diffs], Sun Apr 23 05:01:53 2000 UTC (24 years, 1 month ago) by angelos
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

Change the type of freesession to take u_int64_t as argument.

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Fri Mar 24 09:09:05 2000 UTC (24 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

Sync with -current

Revision 1.1 / (download) - annotate - [select for diffs], Mon Mar 20 21:31:45 2000 UTC (24 years, 2 months ago) by deraadt
Branch: MAIN
Branch point for: SMP

oh, and we need this

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.