aboutsummaryrefslogtreecommitdiff
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'tMaxim Sobolev2005-11-301-1/+1
| | | | | | | | | have any use of it. Suggested by: pjd Notes: svn path=/head/; revision=152971
* Check for g_read_data(9) errors properly:Maxim Sobolev2005-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 Notes: svn path=/head/; revision=152967
* stop including rijndael-api-fst.h from rijndael.h.Hajimu UMEMOTO2005-03-111-3/+1
| | | | | | | this is required to integrate opencrypto into crypto. Notes: svn path=/head/; revision=143418
* /* -> /*- for copyright notices, minor format tweaks as necessaryWarner Losh2005-01-061-1/+3
| | | | Notes: svn path=/head/; revision=139778
* Tag all geom classes in the tree with a version number.Poul-Henning Kamp2004-08-081-0/+1
| | | | Notes: svn path=/head/; revision=133318
* Use default method initialization on geoms.Poul-Henning Kamp2004-08-081-4/+4
| | | | Notes: svn path=/head/; revision=133314
* Remove the absolute count g_access_abs() function since experience hasPoul-Henning Kamp2004-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. Notes: svn path=/head/; revision=125755
* Use __FBSDID().David E. O'Brien2003-06-111-2/+3
| | | | | | | Approved by: phk Notes: svn path=/head/; revision=116196
* Remove unused variable.Poul-Henning Kamp2003-05-311-4/+0
| | | | | | | Found by: FlexeLint Notes: svn path=/head/; revision=115507
* Remove the G_CLASS_INITIALIZER, we do not need it anymore.Poul-Henning Kamp2003-05-311-1/+0
| | | | Notes: svn path=/head/; revision=115468
* Avoid double-free panic.Poul-Henning Kamp2003-05-051-1/+0
| | | | | | | Tripped up: DougB Notes: svn path=/head/; revision=114736
* remove unused variables.Poul-Henning Kamp2003-05-031-2/+0
| | | | | | | Spotted by: dougb Notes: svn path=/head/; revision=114566
* Use g_wither_geom() and plug memory leaks.Poul-Henning Kamp2003-05-021-4/+4
| | | | Notes: svn path=/head/; revision=114532
* Back out all the stuff that didn't belong in the last commit.Poul-Henning Kamp2003-05-021-4/+4
| | | | Notes: svn path=/head/; revision=114511
* Use g_slice_spoiled() rather than g_std_spoiled().Poul-Henning Kamp2003-05-021-4/+4
| | | | | | | Remember to free the buffer we got from g_read_data(). Notes: svn path=/head/; revision=114508
* style improvement.Poul-Henning Kamp2003-05-021-3/+2
| | | | Notes: svn path=/head/; revision=114491
* Time has run from the "run GEOM in userland" harness, and the new regressionPoul-Henning Kamp2003-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. Notes: svn path=/head/; revision=113432
* Remove all references to BIO_SETATTR. We will not be using it.Poul-Henning Kamp2003-04-031-1/+0
| | | | Notes: svn path=/head/; revision=113032
* Premptively change initializations of struct g_class to use C99Poul-Henning Kamp2003-03-241-3/+2
| | | | | | | | sparse struct initializations before we extend the struct with new OAM related member functions. Notes: svn path=/head/; revision=112552
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-3/+3
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-211-3/+3
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* Constification and some s/int/u_int/ changes.Poul-Henning Kamp2002-12-161-3/+3
| | | | Notes: svn path=/head/; revision=107953
* Now that the sectorsize and mediasize are properties of the provider,Poul-Henning Kamp2002-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. Notes: svn path=/head/; revision=105551
* Retire g_io_fail() and let g_io_deliver() take an error argument instead.Poul-Henning Kamp2002-09-301-5/+4
| | | | | | | Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=104195
* Style, whitespace and lint fixes.Poul-Henning Kamp2002-09-281-4/+4
| | | | | | | Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=104087
* Add the new g_slice_config() call, which can add/delete/change a slice,Poul-Henning Kamp2002-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. Notes: svn path=/head/; revision=104064
* Add checks for g_clone_bio() returning NULL, it will be possible RSN.Poul-Henning Kamp2002-09-271-0/+12
| | | | | | | Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=104057
* Add two new submodes to the AES encryption method.Poul-Henning Kamp2002-06-281-11/+121
| | | | | | | | | This method is now suitable for encrypting swap spaces. Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=98987
* Improve some on the naming.Poul-Henning Kamp2002-06-091-5/+5
| | | | | | | Submitted by: iedowse Notes: svn path=/head/; revision=98066
* Add a proof-of-concept encryption class.Poul-Henning Kamp2002-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. Notes: svn path=/head/; revision=97318