summaryrefslogtreecommitdiffstats
path: root/sbin/gbde
Commit message (Collapse)AuthorAgeFilesLines
* Use NO_WCAST_ALIGN for sbin/gbde, this is more appropriate to fix thedim2011-12-171-5/+3
| | | | | | alignment warnings than using WARNS=3, and it also works for clang. MFC after: 1 week
* MFtbemd:imp2010-08-231-1/+1
| | | | | Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform.
* Remove dead variable assignmentsuqs2010-06-111-1/+1
| | | | | Found by: clang static analyzer Verified by: md5(1)
* Bump WARNS where possible.uqs2010-02-151-3/+1
| | | | | Checked by: make universe Approved by: ed (co-mentor)
* Remove temporary files when there are no longer needed.pjd2007-04-061-0/+2
|
* Markup fixes.ru2006-09-181-1/+1
|
* Teach gbde(8) to use a key file in addition to a passphrase. Thiscperciva2006-02-082-25/+85
| | | | | | | | makes it practical to use GBDE for "something you have plus something you know" security together with a USB flash drive. Reviewed by: phk MFC after: 7 days
* gbde(8) is also rejndael user.ume2005-03-111-1/+1
| | | | Reported by: phk
* - Fixed description of the "destroy" command options.ru2005-02-122-28/+45
| | | | | - Document the "nuke" command. - Mention which commands correspond to which functions.
* - Sort options.pjd2005-02-031-8/+9
| | | | - Put 'break' into separate line.
* Fix whitespace.pjd2005-02-031-6/+5
|
* - Remove bogus O_CREAT flag. We really don't want to create a file here.pjd2005-02-031-7/+7
| | | | | | | | | | PR: bin/67793 Submitted by: Amir Shalem <amir@boom.org.il> - Sync usage with manual page. Approved by: phk MFC after: 1 week
* Fix a type bug which sometimes wrote unusable lock sectors on the disk.phk2004-09-101-2/+2
|
* Allow to setup GBDE on providers which contain '/' in their names,pjd2004-09-061-2/+0
| | | | | | e.g. mirror/<name>, stripe/<name>. Approved by: phk
* o Fix semantics of comparison function for qsort(3). According to qsort(3)sobomax2004-06-251-2/+6
| | | | | | | | | | | | | | | | manpage: The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second. Therefore, simply returning "arg1 > arg2" is incorrect. Actually it works but for the number of items to be sorted less than 7 due to special case handling in qsort(3); o add missing '\n' to one of usage() calls. Approved by: phk
* Fix typobrueffer2004-05-231-1/+1
| | | | Submitted by: edwin
* Assorted markup, grammar, and spelling fixes.ru2004-05-171-3/+5
|
* Fix the last and most important bit of the test case to test the samephk2004-02-071-2/+8
| | | | | | binary as the rest of it. Add MD5 check that the md(4) device gets set up correctly.
* Don't create a template file if we're not going to let the user edit it.des2004-02-051-19/+28
|
* Fixed some non-critical memory leaks and one temporary file leakpjd2004-02-051-1/+6
| | | | | | (theoretical). Approved by: phk, scottl (mentor)
* Mechanical whitespace cleanup. Also, note that previous commit wasdes2004-02-031-12/+12
| | | | Sponsored by: Teleplan AS
* Remove newline characters from error strings.des2004-02-031-2/+2
|
* Clarify that the encrypted device is called foo.bde and mention thatphk2003-11-271-0/+9
| | | | | | | unmounting it before detaching GBDE is a good idea. Insisted on by: Flemming Jacobsen <fj@batmule.dk> Approveed by: re@
* Make the regression test run also with obj directories.phk2003-10-172-2/+6
|
* Insert an overview of the plans here, in case I get run over by a bus.phk2003-10-131-0/+32
|
* I think it is more correct to use modfind() than kldfind() here.phk2003-10-101-2/+2
|
* Improve regression test with an image file which must work.phk2003-10-072-2/+3316
|
* Autoload kernel module if necessary.phk2003-10-071-0/+9
| | | | Submitted by: mr
* Interior decoration changes.phk2003-10-071-5/+5
|
* Simplify the GEOM OAM api: Drop the request type, and let everythingphk2003-06-011-2/+4
| | | | | | | | hinge on the "verb" parameter which the class gets to interpret as it sees fit. Move the entire request into the kernel and move changed parameters back when done.
* Moved libgeom.so dependencies to where they belong.ru2003-05-171-2/+2
| | | | | Reviewed by: phk Approved by: re (scottl)
* Normalize, fix ``make checkdpadd''.ru2003-04-161-5/+6
|
* Avoid off_t -> integer overflow when sorting the locksector addresses.phk2003-04-141-1/+1
|
* Don't pull in geom_enc.c any more.phk2003-04-031-3/+1
|
* Use new GEOM OAM. Kernels have supported this for a number of days, sophk2003-03-312-40/+29
| | | | people should be OK.
* Remove reference to unavailable paper.phk2003-03-071-5/+0
|
* Fix two unsafe uses of sprintf().tjr2003-02-231-3/+8
|
* Correct some err() format string bugs.tjr2003-02-231-7/+7
|
* Solve another bug in the mapping code: correctly skip lock sectors.phk2002-12-182-1/+7
| | | | | | | | | Make sure sector zero is protected if it contains metadata. Lower WARNS for gbde to 3 on non-i386 archs. rijndael-fst is evil but appearntly does the right thing and passes the test-vectors. MFC Candidate.
* Fix two blunders in the mapping functions which can lead to corrupt data,phk2002-12-181-1/+21
| | | | | | | | for request sizes larger than the sectorsize or for multi-key setups. See warning mailed to current@ for details of recovery. Found by: Marcus Reid <marcus@blazingdot.com>
* Untwist a twisty bit of logic which gcc for some reason cannot seephk2002-12-181-4/+4
| | | | through on ia64.
* A couple of stylistic improvements.phk2002-12-172-5/+6
|
* mdoc(7) police: markup overhaul.ru2002-12-121-23/+37
| | | | Approved by: re
* Synchronize usage() with reality.phk2002-12-011-8/+19
| | | | | | | Semi-automatic handling of /dev prefix for device names. Sponsored by: DARPA & NAI Labs. Approved by: re (blanket)
* De-danglify the manual page.phk2002-12-011-6/+6
| | | | | Submitted by: ceri Approved by: re (blanket)
* o Bring the NOTICE section into the DESCRIPTION section and wrap it inchris2002-11-181-11/+12
| | | | | | | .Bf -emphasis ... .Ef o Grammar/spelling Sponsored by: DARPA, NAI Labs
* Run a revision on the GBDE encryption facility.phk2002-11-043-48/+106
| | | | | | | | | | | | | | | | | | | | Replace ARC4 with SHA2-512. Change lock-structure encoding to use random ordering rather for obscurity. Encrypt lock-structure with AES/256 instead of AES/128. Change kkey derivation to be MD5 hash based. Watch for malloc(M_NOWAIT) failures and ditch our cache when they happen. Remove clause 3 of the license with NAI Labs consent. Many thanks to "Lucky Green" <shamrock@cypherpunks.to> and "David Wagner" <daw@cs.berkeley.edu>, for code reading, inputs and suggestions. This code has still not been stared at for 10 years by a gang of hard-core cryptographers. Discretion advised. NB: These changes result in the on-disk format changing: dump/restore needed. Sponsored by: DARPA & NAI Labs.
* Initialize the new salt field in the lock sector.phk2002-10-301-2/+3
| | | | Sponsored by: DARPA & NAI Labs
* I overlooked an absolute path.phk2002-10-211-1/+1
| | | | Submitted by: Henric Jungheim <henric@attbi.com>
* o Use .Cm for 'attach', 'detach', 'init', 'setkey', and 'destroy' commandschris2002-10-201-15/+28
| | | | | | | | | o Fix some punctuation and wording o Wording consistency in command-line option documentation o Make use of mdoc's markup a bit more (quoting and the like) Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
OpenPOWER on IntegriCloud