summaryrefslogtreecommitdiffstats
path: root/sys/dev/safe/safe.c
Commit message (Collapse)AuthorAgeFilesLines
* Overhaul driver/subsystem api's:sam2007-03-211-28/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o make all crypto drivers have a device_t; pseudo drivers like the s/w crypto driver synthesize one o change the api between the crypto subsystem and drivers to use kobj; cryptodev_if.m defines this api o use the fact that all crypto drivers now have a device_t to add support for specifying which of several potential devices to use when doing crypto operations o add new ioctls that allow user apps to select a specific crypto device to use (previous ioctls maintained for compatibility) o overhaul crypto subsystem code to eliminate lots of cruft and hide implementation details from drivers o bring in numerous fixes from Michale Richardson/hifn; mostly for 795x parts o add an optional mechanism for mmap'ing the hifn 795x public key h/w to user space for use by openssl (not enabled by default) o update crypto test tools to use new ioctl's and add cmd line options to specify a device to use for tests These changes will also enable much future work on improving the core crypto subsystem; including proper load balancing and interposing code between the core and drivers to dispatch small operations to the s/w driver as appropriate. These changes were instigated by the work of Michael Richardson. Reviewed by: pjd Approved by: re
* o break newbus api: add a new argument of type driver_filter_t topiso2007-02-231-1/+1
| | | | | | | | | | | | | bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Reviewed by: many Approved by: re@
* Use newly added functions to simplify the code.pjd2006-06-041-37/+15
|
* Use defines from cryptodev.h.pjd2006-06-041-2/+2
|
* - Remove HMAC_BLOCK_LEN, it serves no purpose.pjd2006-06-041-4/+6
| | | | - Use defines of used algorithm instead of HMAC_BLOCK_LEN.
* Add support for the CRD_F_KEY_EXPLICIT flag for both encryption andpjd2006-06-041-65/+75
| | | | | | authentication operations. Unfortunately I've no hardware, so I only compiled-tested it.
* Fix HMACs handling with uio's by not using crp_mac for storing calculatedpjd2006-05-221-4/+5
| | | | HMAC. crp_mac is going to be removed.
* Honor cri_mlen value.pjd2006-05-171-2/+12
| | | | | | Reviewed by: sam Tested on: hifn(4), ubsec(4) Compile-tested: safe(4)
* Since DELAY() was moved, most <machine/clock.h> #includes have beenphk2006-05-161-1/+0
| | | | unnecessary.
* safe(4) doesn't support explicitly provided keys. Return an error insteadpjd2006-04-101-0/+7
| | | | of encrypting/decrypting data with a wrong key.
* Use BUS_PROBE_DEFAULT in preference to 0 and BUS_PROBE_LOW_PRIORITY inimp2005-03-011-1/+1
| | | | | preference to some random negative number to allow other drivers a bite at the apple.
* Add missing <sys/module.h> includesphk2004-05-301-0/+1
|
* Convert callers to the new bus_alloc_resource_any(9) API.njl2004-03-171-4/+4
| | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
* Compile on amd64. (pointer/int mismatches and printf int vs long )peter2004-02-051-5/+5
|
* Prefer new location of pci include files (which have only been in theimp2003-08-221-2/+2
| | | | | tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD.
* Change instances of callout_init that specify MPSAFE behaviour tosam2003-08-191-2/+1
| | | | | use CALLOUT_MPSAFE instead of "1" for the second parameter. This does not change the behaviour; it just makes the intent more clear.
* o add missing {}'s that to safe_dmamap_uniform that caused extraneous copiessam2003-08-131-2/+4
| | | | | | | | 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
* SafeNet crypto driver (supports only RNG and symmetric ops; no PK support yet)sam2003-07-211-0/+2246
Sponsored by: Global Technology Associates, Inc. MFC after: 1 day
OpenPOWER on IntegriCloud