aboutsummaryrefslogtreecommitdiff
path: root/sys/crypto/via
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove redundant check committed by accident.Pawel Jakub Dawidek2006-07-251-2/+0
| | | | Notes: svn path=/head/; revision=160677
* Avoid memory allocations when the given address is already 16 bytes aligned.Pawel Jakub Dawidek2006-07-251-6/+51
| | | | | | | | | | | | | | | | | Such an address can be used directly in padlock's AES. This improves speed of geli(8) significantly: # sysctl kern.geom.zero.clear=0 # geli onetime -s 4096 gzero # dd if=/dev/gzero.eli of=/dev/null bs=1m count=1000 Before: 113MB/s After: 203MB/s BTW. If sector size is set to 128kB, I can read at 276MB/s :) Notes: svn path=/head/; revision=160676
* Modify PADLOCK_ALIGN() macro, so when the given address is already 16 bytesPawel Jakub Dawidek2006-07-251-1/+1
| | | | | | | aligned, it will be used directly, not 'address + 16'. Notes: svn path=/head/; revision=160675
* Style fixes.Pawel Jakub Dawidek2006-07-254-10/+10
| | | | Notes: svn path=/head/; revision=160674
* Implement support for HMAC/SHA1 and HMAC/SHA256 acceleration found inPawel Jakub Dawidek2006-07-224-335/+766
| | | | | | | | | | | | | | new VIA CPUs. For older CPUs HMAC/SHA1 and HMAC/SHA256 (and others) will still be done in software. Move symmetric cryptography (currently only AES-CBC 128/192/256) to padlock_cipher.c file. Move HMAC cryptography to padlock_hash.c file. Hardware from: Centaur Technologies Notes: svn path=/head/; revision=160582
* Correct few bzero()s.Pawel Jakub Dawidek2006-07-221-3/+3
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=160573
* Set ses_ictx and ses_octx to NULL after freeing them, so we won't freePawel Jakub Dawidek2006-07-221-0/+2
| | | | | | | | | | | | them twice. This is possible for example in situation when session is used in authentication context, then freed and then used in encryption context and freed - in encryption context ses_ictx and ses_octx are not touched at newsession time, but padlock_freesession could still try to free them when they are not NULL. Notes: svn path=/head/; revision=160568
* Use the already stored VIA RNG probe informationMichael Reifenberger2006-07-131-16/+5
| | | | | | | | | | | instead of probing again. Adjust style(9) somewhat in probe.c Reviewed by: pjd MFC after: 1 week Notes: svn path=/head/; revision=160325
* Fix gratuitous compiler warning.Pawel Jakub Dawidek2006-06-081-1/+2
| | | | | | | Reported by: Rong-en Fan <grafan@gmail.com> Notes: svn path=/head/; revision=159405
* - Pretend to accelerate various HMAC algorithms, so padlock(4) can be usedPawel Jakub Dawidek2006-06-051-91/+266
| | | | | | | | | | | with fast_ipsec(4) and geli(8) authentication (comming soon). If consumer requests only for HMAC algorithm (without encryption), return EINVAL. - Add support for the CRD_F_KEY_EXPLICIT flag, for both encryption and authentication. Notes: svn path=/head/; revision=159279
* padlock(4) doesn't support explicitly provided keys yet.Pawel Jakub Dawidek2006-04-201-0/+4
| | | | | | | Return an error instead of encrypting/decrypting data with a wrong key. Notes: svn path=/head/; revision=157899
* On padlock initialization, allocate memory with M_WAITOK.Pawel Jakub Dawidek2006-04-121-5/+1
| | | | Notes: svn path=/head/; revision=157684
* Add VIA/ACE "PadLock" support as a crypto(9) driver.Pawel Jakub Dawidek2005-08-181-0/+504
HW donated by: Mike Tancsa <mike@sentex.net> Most of the code obtained from: OpenBSD MFC after: 3 days Notes: svn path=/head/; revision=149211