summaryrefslogtreecommitdiff
path: root/sys/dev/pci/ubsecvar.h
AgeCommit message (Collapse)Author
2002-07-03But when denormalizing we need the normalized length, too as well as the ↵Jason Wright
destination length.
2002-05-15Rework MODEXP:Jason Wright
5805 (and 5601) require the modulus and base to be normalized to the right of one of several different register lengths. The result is also normalized to the same length. Provide functions for shifting the bits back and forth as appropriate. Note: for consistencies sake the exponent is NOT normalized.
2002-05-13add and use three more flags:Jason Wright
RNG: chip has usable rng (5805/5820/5821) HWNORM: chip will automagically normalize bignums (5820/5821) BIGKEY: chip supports "large keys" (5820/5821)
2002-05-06basic infrastructure for handling RSA with CRT parameters. Just need toJason Wright
figure out how p, q, dp, dq, and pinv fit into the context.
2002-05-06- Only copy the significant bits of the result out (and make sure the bufferJason Wright
is long enough to handle it) and bzero the rest. - Increase key buffer sizes to 2048 bits.
2002-05-02Don't refer to the parameters directly by number, use macro's so it can beJason Wright
changed later if necessary. Also, don't bother bzero'n the mcr, all of the fields are initialized anyway
2002-04-261024 bit maxJason Wright
2002-04-26register as supporting modular exponentiationJason Wright
still contains much debugging code and isn't quite done, but its a start
2002-04-08Credit DARPA/USAF appropriately.Jason Wright
2002-01-28First round of post-bus_dma cleanups:Jason Wright
- remove the packl/packp arrays and rework handling appropriately - destination map may or may not exist, cope. - remove a redundant bus_dmamap_sync() in _process (real sync is in _feed) - remove long deprecated q_{src,dst}pkt stuff from queue structure
2002-01-28Quick (and a little dirty) conversion to bus_dma(9).Jason Wright
2002-01-19From Patrik Lindergren (patrik@ipunplugged.com):Jason Wright
* make the driver big-endian aware * handling for DMA errors * move some allocations to attach From me: whitespace clean up and vtophys removal (almost works on sparc64)
2001-07-02- More vtophys death: packet buffer lists are is bus_dma(9) memory as isJason Wright
the mac buffer - also, reenable aggregation code (accidentally removed)
2001-06-29move definitions around a bit and define a few more constantsJason Wright
2001-06-29allocate contexts during attach since we can't mess with them duringJason Wright
interrupts (the space allocation is wasteful, but more data will be moved into the allocation soon).
2001-06-08Put back bus_dmaification of context's (seems to have been fixed byJason Wright
recent changes to cryptosoft.c). So, mcr and pktbuf handling to go...
2001-05-30Un-bus_dma(9) mcr1 context and mcr operations (causes problems under load).Jason Wright
Reimplement mcr2 bus_dma handling.
2001-05-23bus_dmaify mcr handling (just leaves buffer lists and mac buffer to go...)Jason Wright
2001-05-22- Don't poll the rng more than 100 times a secondJason Wright
- bus_dmaify mcr2 operations (rng) - start bus_dma of mcr1 operations (context; mcr and pktbufs to go) ... more to come ...
2001-05-14use real uioTheo de Raadt
2001-05-13initial cut at /dev/crypto support. takes original mbuf "try, and discardTheo de Raadt
if we fail" semantics and extends to two varients of data movement: mbuf, or an iovec style block.
2001-05-13Initial support for Broadcom 5820, which is very much like the 5805 exceptJason Wright
that the packet context structure for ipsec has changed (added two fields and, annoyingly, rearranged several of them). The MCR2 operations (only RNG is used at this point) are supported, too.
2001-01-29- add infrastructure for dealing with the key generator (MCR2)Jason Wright
- add support for the onboard rng using that structure - add a interrupt status mask (differs for 5501 and 5601) - reorganize slightly to take into account that MCR1 isn't the only reason for interrupts.
2001-01-11oopsTheo de Raadt
2001-01-11move ich to auich at mickey's requestTheo de Raadt
2000-08-13fix session codeTheo de Raadt
2000-08-13not completely working session code from jasonTheo de Raadt
2000-08-11move mcr out of q; and write prelim mcr aggregation code, which does not yetTheo de Raadt
work for some reason or another, so it is currently disabled.
2000-07-29remove the (unused) sc_intrmask, and be more careful about initializingJason Wright
the BS_CTRL register... The BE32 & BE64 bits do NOT do what they imply, so leave the bits set, and add the ones we want. This allows ubsec to interop with our software implementation (at least for encryption). More work to be done in this driver though... Many thanks to Jimmy Ruane at Broadcom for the pointer about BE32 & BE64!
2000-06-19oops, add macbuf to the queue structureJason Wright
2000-06-13put an upperbound on queue lengthJason Wright
2000-06-12ESP 3des now works, after squishing 4 bugsTheo de Raadt
2000-06-03Move everything to where is supposed to be (reg definitions, etc).Jason Wright
Add some of the skip logic.
2000-05-18work in progress: driver for BlueSteel (Broadcom) 5[56]01 crypto acceleratorJason Wright