Pawel Jakub Dawidek
f34a967b01
Use newly added functions to simplify the code.
2006-06-04 22:17:25 +00:00
Pawel Jakub Dawidek
1dc8d404ae
Use defines from cryptodev.h.
2006-06-04 15:00:52 +00:00
Pawel Jakub Dawidek
082a4bab02
- Remove HMAC_BLOCK_LEN, it serves no purpose.
...
- Use defines of used algorithm instead of HMAC_BLOCK_LEN.
2006-06-04 14:49:34 +00:00
Pawel Jakub Dawidek
9a2f606177
Add support for the CRD_F_KEY_EXPLICIT flag for both encryption and
...
authentication operations.
Unfortunately I've no hardware, so I only compiled-tested it.
2006-06-04 14:14:35 +00:00
Pawel Jakub Dawidek
411da41e91
Fix HMACs handling with uio's by not using crp_mac for storing calculated
...
HMAC. crp_mac is going to be removed.
2006-05-22 16:18:21 +00:00
Pawel Jakub Dawidek
af65c53afd
Honor cri_mlen value.
...
Reviewed by: sam
Tested on: hifn(4), ubsec(4)
Compile-tested: safe(4)
2006-05-17 18:34:26 +00:00
Poul-Henning Kamp
c40da00ca3
Since DELAY() was moved, most <machine/clock.h> #includes have been
...
unnecessary.
2006-05-16 14:37:58 +00:00
Pawel Jakub Dawidek
2c87962602
safe(4) doesn't support explicitly provided keys. Return an error instead
...
of encrypting/decrypting data with a wrong key.
2006-04-10 18:49:46 +00:00
Warner Losh
d2b677bb1a
Use BUS_PROBE_DEFAULT in preference to 0 and BUS_PROBE_LOW_PRIORITY in
...
preference to some random negative number to allow other drivers a
bite at the apple.
2005-03-01 08:58:06 +00:00
Poul-Henning Kamp
fe12f24bb0
Add missing <sys/module.h> includes
2004-05-30 20:08:47 +00:00
Nate Lawson
5f96beb9e0
Convert callers to the new bus_alloc_resource_any(9) API.
...
Submitted by: Mark Santcroos <marks@ripe.net>
Reviewed by: imp, dfr, bde
2004-03-17 17:50:55 +00:00
Peter Wemm
668329e94b
Compile on amd64. (pointer/int mismatches and printf int vs long )
2004-02-05 01:35:33 +00:00
Warner Losh
90cf0136c4
Prefer new location of pci include files (which have only been in the
...
tree for two or more years now), except in a few places where there's
code to be compatible with older versions of FreeBSD.
2003-08-22 07:08:17 +00:00
Sam Leffler
c06eb4e293
Change instances of callout_init that specify MPSAFE behaviour to
...
use CALLOUT_MPSAFE instead of "1" for the second parameter. This
does not change the behaviour; it just makes the intent more clear.
2003-08-19 17:51:11 +00:00
Sam Leffler
900017e84b
o add missing {}'s that to safe_dmamap_uniform that caused extraneous copies
...
for partly-aligned operations through /dev/crypto (unlikely)
o add missing case in iov code that never showed up because of the above bug
Submitted by: "Jason L. Wright" <jason@thought.net>
MFC after: 3 days
2003-08-13 20:42:53 +00:00
Sam Leffler
b7e3f244f8
SafeNet crypto driver (supports only RNG and symmetric ops; no PK support yet)
...
Sponsored by: Global Technology Associates, Inc.
MFC after: 1 day
2003-07-21 21:46:07 +00:00