Commit Graph

15 Commits

Author SHA1 Message Date
jhb
bee88d82bb Add a new COP_F_CIPHER_FIRST flag for struct crypt_op.
This requests that the cipher be performed before rather than after
the HMAC when both are specified for a single operation.

Reviewed by:	cem
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D11757
2017-09-22 00:21:58 +00:00
kevlo
ce202b136b Fix a typo (opencrypto -> crypto) and remove useless comment. 2015-12-15 06:01:02 +00:00
brueffer
b61c6e4e79 Fix various mdoc issues.
Found with:	mandoc -Tlint
2014-12-21 09:53:29 +00:00
jmg
c3ff54cc39 Add some new modes to OpenCrypto. These modes are AES-ICM (can be used
for counter mode), and AES-GCM.  Both of these modes have been added to
the aesni module.

Included is a set of tests to validate that the software and aesni
module calculate the correct values.  These use the NIST KAT test
vectors.  To run the test, you will need to install a soon to be
committed port, nist-kat that will install the vectors.  Using a port
is necessary as the test vectors are around 25MB.

All the man pages were updated.  I have added a new man page, crypto.7,
which includes a description of how to use each mode.  All the new modes
and some other AES modes are present.  It would be good for someone
else to go through and document the other modes.

A new ioctl was added to support AEAD modes which AES-GCM is one of them.
Without this ioctl, it is not possible to test AEAD modes from userland.

Add a timing safe bcmp for use to compare MACs.  Previously we were using
bcmp which could leak timing info and result in the ability to forge
messages.

Add a minor optimization to the aesni module so that single segment
mbufs don't get copied and instead are updated in place.  The aesni
module needs to be updated to support blocked IO so segmented mbufs
don't have to be copied.

We require that the IV be specified for all calls for both GCM and ICM.
This is to ensure proper use of these functions.

Obtained from:	p4: //depot/projects/opencrypto
Relnotes:	yes
Sponsored by:	FreeBSD Foundation
Sponsored by:	NetGate
2014-12-12 19:56:36 +00:00
jmg
c2802cb2fc remove link to the missing AMD Geode LX SB man page... we can add it
back once someone cares enough to write one..
2014-03-13 16:19:36 +00:00
brueffer
099486b19e Xref aesni(4). 2010-09-09 21:39:06 +00:00
brueffer
b34ba23107 Xref glxsb(4).
MFC after:	3 days
2009-03-03 07:58:01 +00:00
gnn
b6432cbc60 Update to include the Camellia algorithm which is in the code but
which was accidentally left undocumented in the manual page.
2008-06-16 14:33:54 +00:00
bz
e911ed379e Remove the last entries to fast_ipsec.
Merge in parts of the old fast_ipsec.4 man page to ipsec.4 and
start updating ipsec.4 man page.

Reviewed by:	brueffer, sam (slightly earlier versions), bmah
Approved by:	re (bmah)
2007-08-02 08:04:48 +00:00
brueffer
567d471732 Xref padlock(4), also fast_ipsec(4) and geli(8) as consumers of this device.
MFC after:	3 days
2005-12-10 10:51:55 +00:00
sam
65c2110193 Splice in cryptodev (this man page originated on openbsd where there is
no cryptodev module.)  Should probably create a separate cryptodev man
page (or a link to this one) but for now add enough so folks understand
the relationship between the two.

Prodded by:	phk
2004-01-16 17:21:02 +00:00
brueffer
c5d76657b8 Add reference to safe.4
MFC after:	5 days
2003-12-27 15:00:07 +00:00
schweikh
fec6546e12 english(4) police. 2002-12-27 12:15:40 +00:00
ru
90d96c8e32 mdoc(7) police: overhaul.
Approved by:	re
2002-12-10 14:21:55 +00:00
sam
0b72e3a745 manual pages for the new kernel crypto support (need work)
Obtained from:	openbsd
2002-10-04 20:43:30 +00:00