summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_aes.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't pass error value pointer to g_read_data(9) at all if we don'tsobomax2005-11-301-1/+1
| | | | | | have any use of it. Suggested by: pjd
* Check for g_read_data(9) errors properly:sobomax2005-11-301-1/+1
| | | | | | | | | | o The only indication of error condition is NULL value returned by the function; o value pointed to by error argument is undefined in the case when operation completes successfully. Discussed with: phk
* stop including rijndael-api-fst.h from rijndael.h.ume2005-03-111-3/+1
| | | | this is required to integrate opencrypto into crypto.
* /* -> /*- for copyright notices, minor format tweaks as necessaryimp2005-01-061-1/+3
|
* Tag all geom classes in the tree with a version number.phk2004-08-081-0/+1
|
* Use default method initialization on geoms.phk2004-08-081-4/+4
|
* Remove the absolute count g_access_abs() function since experience hasphk2004-02-121-3/+3
| | | | | | | | | | | | shown that it is not useful. Rename the relative count g_access_rel() function to g_access(), only the name has changed. Change all g_access_rel() calls in our CVS tree to call g_access() instead. Add an #ifndef BURN_BRIDGES #define of g_access_rel() for source code compatibility.
* Use __FBSDID().obrien2003-06-111-2/+3
| | | | Approved by: phk
* Remove unused variable.phk2003-05-311-4/+0
| | | | Found by: FlexeLint
* Remove the G_CLASS_INITIALIZER, we do not need it anymore.phk2003-05-311-1/+0
|
* Avoid double-free panic.phk2003-05-051-1/+0
| | | | Tripped up: DougB
* remove unused variables.phk2003-05-031-2/+0
| | | | Spotted by: dougb
* Use g_wither_geom() and plug memory leaks.phk2003-05-021-4/+4
|
* Back out all the stuff that didn't belong in the last commit.phk2003-05-021-4/+4
|
* Use g_slice_spoiled() rather than g_std_spoiled().phk2003-05-021-4/+4
| | | | Remember to free the buffer we got from g_read_data().
* style improvement.phk2003-05-021-3/+2
|
* Time has run from the "run GEOM in userland" harness, and the new regressionphk2003-04-131-8/+0
| | | | | | | test is built to test GEOM as running in the kernel. This commit is basically "unifdef -D_KERNEL" to remove the mainly #include related code to support the userland-harness.
* Remove all references to BIO_SETATTR. We will not be using it.phk2003-04-031-1/+0
|
* Premptively change initializations of struct g_class to use C99phk2003-03-241-3/+2
| | | | | sparse struct initializations before we extend the struct with new OAM related member functions.
* Back out M_* changes, per decision of the TRB.imp2003-02-191-3/+3
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-3/+3
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Constification and some s/int/u_int/ changes.phk2002-12-161-3/+3
|
* Now that the sectorsize and mediasize are properties of the provider,phk2002-10-201-10/+3
| | | | | | | | | | | don't take the detour over the I/O path to discover them using getattr(), we can just pick them out directly. Do note though, that for now they are only valid after the first open of the underlying disk device due compatibility with the old disk_create() API. This will change in the future so they will always be valid. Sponsored by: DARPA & NAI Labs.
* Retire g_io_fail() and let g_io_deliver() take an error argument instead.phk2002-09-301-5/+4
| | | | Sponsored by: DARPA & NAI Labs.
* Style, whitespace and lint fixes.phk2002-09-281-4/+4
| | | | Sponsored by: DARPA & NAI Labs.
* Add the new g_slice_config() call, which can add/delete/change a slice,phk2002-09-271-0/+4
| | | | | | | | | with support for trying, doing and forcing. This will eventually replace g_slice_addslice() which gets changed from grabbing topology to requing it in this commit as well. Sponsored by: DARPA & NAI Labs.
* Add checks for g_clone_bio() returning NULL, it will be possible RSN.phk2002-09-271-0/+12
| | | | Sponsored by: DARPA & NAI Labs.
* Add two new submodes to the AES encryption method.phk2002-06-281-11/+121
| | | | | | This method is now suitable for encrypting swap spaces. Sponsored by: DARPA & NAI Labs.
* Improve some on the naming.phk2002-06-091-5/+5
| | | | Submitted by: iedowse
* Add a proof-of-concept encryption class.phk2002-05-261-0/+274
"The only hard problem in cryptography is key-management." All sectors are encrypted with AES in CBC mode using a constant key, currently compiled in and all zero. To activate this module, write the magic header on the partition: echo "<<FreeBSD-GEOM-AES>>" | dd conv=sync of=/dev/md98 The encrypted device will be one sector shorter and have ".aes" appended to its name. Sponsored by: DARPA & NAI Labs.
OpenPOWER on IntegriCloud