summaryrefslogtreecommitdiff
path: root/sys/dev/pci/safe.c
AgeCommit message (Collapse)Author
2009-09-13M_DUP_PKTHDR() define -> m_dup_pkthdr() function to properly dealKenneth R Westerback
with m_tag_copy_chain() failures. Use m_defrag() to eliminate hand rolled defragging of mbufs and some uses of M_DUP_PKTHDR(). Original diff from thib@, claudio@'s feedback integrated by me. Tests kevlo@ claudio@, "reads ok" blambert@ ok thib@ claudio@, "m_defrag() bits ok" kettenis@
2009-06-25Change safe_rng_read() from __inline to static __inline likeJonathan Gray
the original FreeBSD code for consistent behaviour between c89/c99 compilers.
2008-10-15Second pass of simple timeout_add -> timeout_add_sec conversionsBret Lambert
This should take care of the simpler ones (i.e., timeout values of integer multiples of hz). ok krw@, art@
2008-06-09rename arc4random_bytes => arc4random_buf to match libc's nicer name;Damien Miller
ok deraadt@
2007-09-18arc4random_bytes() is the preferred interface for generating nonces;Damien Miller
"looks ok" markus@
2007-02-28of ofTheo de Raadt
2006-06-29do not check for master/io/mem enables; ok kettenisTheo de Raadt
2006-03-12make SAFE_DEBUG compile clean; ssehic@gmailTheo de Raadt
2006-02-06typos from alexey dobriyan;Jason McIntyre
2005-12-17Replace 'while (j>=0)' constructs with safer, more KNF friendly for()Kenneth R Westerback
loops because j is unsigned. Comments from Marco Hyman and Andreas Gunnarson fixed my first version. Spotted by lint. 'go for it' deraadt@ for initial version.
2005-11-09fix comments, splimp -> splnetBrad Smith
2005-08-09do not set PCI_COMMAND_MASTER_ENABLE explicitly as it's already set in ↵Michael Shalayeff
pcisubmatch(); kettenis@ testing; brad@ ok
2004-05-07Replace RSA-derived md5 code with code derived from Colin Plumb's PD version.Todd C. Miller
This moves md5.c out of libkern and into sys/crypto where it belongs (as requested by markus@). Note that md5.c is still mandatory (dev/rnd.c uses it). Verified with IPsec + hmac-md5 and tcp md5sig. OK henning@ and hshoexer@
2004-05-04Remove useless ``elm'' argument from the SIMPLEQ_REMOVE_HEAD macro.Alexander Yurchenko
This matches our SLIST behaviour and NetBSD's SIMPLEQ as well. ok millert krw deraadt
2004-02-03advertise features of our crypto chips better; ok tdevalTheo de Raadt
jason is being a slacker
2004-01-09remove uvm_extern.hBrad Smith
tested on alpha, i386, powerpc, sparc64, m68k. ok miod@
2003-08-22need to flip the operands wordwise for big endian machines. modexp worksJason Wright
on ppc now.
2003-08-20How about we NOT stomp all over memory past the end of the result buffer.Jason Wright
(Now modexp runs for non-1k/2k operations)
2003-08-20- The safenet chip really likes it's big nums to be written to differentJason Wright
parts of memory... picky picky ;) - zero the bignum memory after copying out the result (one less copy of sensitive material floating around...)... Why don't vendors provide a bit you can toggle that does this? - Oh, and modexp now works.
2003-08-20most of the infrastructure to support public key operation. This is justJason Wright
a snapshot of work in progress (doesn't work correctly yet).
2003-08-14add more delays during initJason Wright
2003-08-14remove magic swapping constants in favor of the #defines I added a fewJason Wright
minutes ago (could have sworn I hit ^X^S).
2003-08-14- remove some uneeded junk (mainly leftovers from ubsec cut/paste)Jason Wright
- fix interrupt printing - make shared structure entries volatile to ensure ordering - swap the key, iv, and mackey arguments appropriately - treat particle descriptor as two 32 elements (necessary for swabbing) - set the endian control byte correctly and flip off swabbing on the packet data (now works on macppc)
2003-08-12- Don't need the bus_dma callback cruft as we have everything necessary in theJason Wright
map structure. - pull in some of sam's debugging stuff so that #define SAFE_DEBUG will compile - set the dst <- src when uio && nicealign && uniform
2003-08-12cleaning: remove sc_flags and FBSDID junkJason Wright
also: let safe_uniform() check all of the elements
2003-08-12safenet 1141 driver from freebsd (sam at errno):Jason Wright
this is a completely hacked up version, complaints should be to me not sam =)