summaryrefslogtreecommitdiff
path: root/sys/dev/pci/ubsec.c
AgeCommit message (Collapse)Author
2000-09-21styleJason Wright
2000-08-19- introduce new function ubsec_mcopy() which copies the header and trailerJason Wright
of one mbuf into another since ubsec doesn't copy data through - get all of the offsets right for the !nicealign case - style fixes Authentication/Encryption on the same packet now appears to work reliably
2000-08-17use destination lengths when trimming the output packet (cut and pasto)Jason Wright
2000-08-17- auth+enc sorta works: fixup all of the offsets for encryption/authenticationJason Wright
- also check for cases that ubsec cannot handle (and should not happen anyway) - actually use the destination length to trim the packet in the output descriptor - don't copy the IV into the packet unless it doesn't already have one (old debugging code...) - style fixes
2000-08-15use pci_mapreg_map, deallocate resources on failure in attachment; jason@ okMichael Shalayeff
2000-08-15Put the bcopy back in place for the decryption CRD_F_EXPLICIT_IV case (missedJason Wright
this yesterday when fixing the encryption side of this case). Only used for old IPSec xforms anyway.
2000-08-15don't forget the initial swizzling with IPAD for inner state (fixesJason Wright
auth-only mode which was broken with new session code).
2000-08-15- Can't avoid one of those bcopy's so easily (only happens with old ESPJason Wright
transforms... those with CRD_F_IV_EXPLICIT, so we can take the function call overhead there). - >> instead of << for coffset (auth+enc still isn't working, but this was an obvious bug). - #ifdef UBSEC_DEBUG out the auth-only debugging code
2000-08-13do iv copying by hand, to avoid bcopy overheadTheo de Raadt
2000-08-13fix session codeTheo de Raadt
2000-08-13not completely working session code from jasonTheo de Raadt
2000-08-13indentTheo de Raadt
2000-08-12mcr aggregation now works, best i have seen yet is 5 (huh?)Theo 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-31since byte order bugs are gone, interrupts work okTheo de Raadt
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-07-20work around broken A0 5805 silicon that fails to set the status result word ↵Theo de Raadt
in the mcr
2000-06-20call crypto_done()Jason Wright
2000-06-19oops, nuke unused variableJason Wright
2000-06-19add authentication-only handling (easy setup).Jason Wright
remove most of the parameters from ubsec_callback() since they can be found later. ok, so ubsec can now authenticate to itself (doesn't like software, tho)
2000-06-18Use the same field data types as the reference code and adjust offsetsJason Wright
appropriately. Byte swap key/iv fields because they are given to us as "network order", but the chip operates as little endian. coffset is in WORDS not bytes
2000-06-14readd queue limiting code that was backed out yesterday. (ip_esp.c changeJason Wright
seems to have fixed this).
2000-06-13backout previous 2 changes... causes panics down the line.Jason Wright
2000-06-13Oops: initialize q to avoid using the unitialized value when the queue fillsJason Wright
2000-06-13put an upperbound on queue lengthJason Wright
2000-06-13correct 5805 testTheo de Raadt
2000-06-12ESP 3des now works, after squishing 4 bugsTheo de Raadt
2000-06-10correct SIMPLEQ bugs, ack interrupt. 8 packets have crypted, but kernelTheo de Raadt
memory got corrupted.
2000-06-10another vaddr used as paddrJason Wright
2000-06-10paddr not vaddr for mcr1Jason Wright
2000-06-03Move everything to where is supposed to be (reg definitions, etc).Jason Wright
Add some of the skip logic.
2000-06-02squeeze basic framework into place. process generates SIMPLEQ of requests,Theo de Raadt
they get fed in, irq recovers old one, feeds new one in, callback schreds and calls back to crypto(9)... mac result buffers and packet offsets need work.
2000-05-18work in progress: driver for BlueSteel (Broadcom) 5[56]01 crypto acceleratorJason Wright