Commit Graph

14 Commits

Author SHA1 Message Date
Kevin Lo
71d96c11f0 Fix a typo (opencrypto -> crypto) and remove useless comment. 2015-12-15 06:01:02 +00:00
Christian Brueffer
0b3504fd3b Fix various mdoc issues.
Found with:	mandoc -Tlint
2014-12-21 09:53:29 +00:00
John-Mark Gurney
08fca7a56b 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
John-Mark Gurney
7f13f912da 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
Christian Brueffer
f0a7fc8b30 Xref aesni(4). 2010-09-09 21:39:06 +00:00
Christian Brueffer
004da5adcb Xref glxsb(4).
MFC after:	3 days
2009-03-03 07:58:01 +00:00
George V. Neville-Neil
d55f384033 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
Bjoern A. Zeeb
e0c9263157 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
Christian Brueffer
57a650d7e5 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 Leffler
4acf93a2f3 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
Christian Brueffer
ce2524aca4 Add reference to safe.4
MFC after:	5 days
2003-12-27 15:00:07 +00:00
Jens Schweikhardt
57bd0fc6e8 english(4) police. 2002-12-27 12:15:40 +00:00
Ruslan Ermilov
a2931c092e mdoc(7) police: overhaul.
Approved by:	re
2002-12-10 14:21:55 +00:00
Sam Leffler
f4bf433552 manual pages for the new kernel crypto support (need work)
Obtained from:	openbsd
2002-10-04 20:43:30 +00:00