aboutsummaryrefslogtreecommitdiff
path: root/sbin/gbde
Commit message (Collapse)AuthorAgeFilesLines
* Add the Clang specific -Wmissing-variable-declarations to WARNS=6.Ed Schouten2013-04-191-0/+1
| | | | | | | | | | | | | | | | This compiler flag enforces that that people either mark variables static or use an external declarations for the variable, similar to how -Wmissing-prototypes works for functions. Due to the fact that Yacc/Lex generate code that cannot trivially be changed to not warn because of this (lots of yy* variables), add a NO_WMISSING_VARIABLE_DECLARATIONS that can be used to turn off this specific compiler warning. Announced on: toolchain@ Notes: svn path=/head/; revision=249657
* Use NO_WCAST_ALIGN for sbin/gbde, this is more appropriate to fix theDimitry Andric2011-12-171-5/+3
| | | | | | | | | alignment warnings than using WARNS=3, and it also works for clang. MFC after: 1 week Notes: svn path=/head/; revision=228610
* MFtbemd:Warner Losh2010-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. Notes: svn path=/head/; revision=211725
* Remove dead variable assignmentsUlrich Spörlein2010-06-111-1/+1
| | | | | | | | Found by: clang static analyzer Verified by: md5(1) Notes: svn path=/head/; revision=209052
* Bump WARNS where possible.Ulrich Spörlein2010-02-151-3/+1
| | | | | | | | Checked by: make universe Approved by: ed (co-mentor) Notes: svn path=/head/; revision=203916
* Remove temporary files when there are no longer needed.Pawel Jakub Dawidek2007-04-061-0/+2
| | | | Notes: svn path=/head/; revision=168420
* Markup fixes.Ruslan Ermilov2006-09-181-1/+1
| | | | Notes: svn path=/head/; revision=162395
* Teach gbde(8) to use a key file in addition to a passphrase. ThisColin Percival2006-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 Notes: svn path=/head/; revision=155453
* gbde(8) is also rejndael user.Hajimu UMEMOTO2005-03-111-1/+1
| | | | | | | Reported by: phk Notes: svn path=/head/; revision=143431
* - Fixed description of the "destroy" command options.Ruslan Ermilov2005-02-122-28/+45
| | | | | | | | - Document the "nuke" command. - Mention which commands correspond to which functions. Notes: svn path=/head/; revision=141769
* - Sort options.Pawel Jakub Dawidek2005-02-031-8/+9
| | | | | | | - Put 'break' into separate line. Notes: svn path=/head/; revision=141216
* Fix whitespace.Pawel Jakub Dawidek2005-02-031-6/+5
| | | | Notes: svn path=/head/; revision=141214
* - Remove bogus O_CREAT flag. We really don't want to create a file here.Pawel Jakub Dawidek2005-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 Notes: svn path=/head/; revision=141198
* Fix a type bug which sometimes wrote unusable lock sectors on the disk.Poul-Henning Kamp2004-09-101-2/+2
| | | | Notes: svn path=/head/; revision=135035
* Allow to setup GBDE on providers which contain '/' in their names,Pawel Jakub Dawidek2004-09-061-2/+0
| | | | | | | | | e.g. mirror/<name>, stripe/<name>. Approved by: phk Notes: svn path=/head/; revision=134841
* o Fix semantics of comparison function for qsort(3). According to qsort(3)Maxim Sobolev2004-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 Notes: svn path=/head/; revision=131101
* Fix typoChristian Brueffer2004-05-231-1/+1
| | | | | | | Submitted by: edwin Notes: svn path=/head/; revision=129603
* Assorted markup, grammar, and spelling fixes.Ruslan Ermilov2004-05-171-3/+5
| | | | Notes: svn path=/head/; revision=129327
* Fix the last and most important bit of the test case to test the samePoul-Henning Kamp2004-02-071-2/+8
| | | | | | | | | binary as the rest of it. Add MD5 check that the md(4) device gets set up correctly. Notes: svn path=/head/; revision=125578
* Don't create a template file if we're not going to let the user edit it.Dag-Erling Smørgrav2004-02-051-19/+28
| | | | Notes: svn path=/head/; revision=125477
* Fixed some non-critical memory leaks and one temporary file leakPawel Jakub Dawidek2004-02-051-1/+6
| | | | | | | | | (theoretical). Approved by: phk, scottl (mentor) Notes: svn path=/head/; revision=125473
* Mechanical whitespace cleanup. Also, note that previous commit wasDag-Erling Smørgrav2004-02-031-12/+12
| | | | | | | Sponsored by: Teleplan AS Notes: svn path=/head/; revision=125387
* Remove newline characters from error strings.Dag-Erling Smørgrav2004-02-031-2/+2
| | | | Notes: svn path=/head/; revision=125386
* Clarify that the encrypted device is called foo.bde and mention thatPoul-Henning Kamp2003-11-271-0/+9
| | | | | | | | | | unmounting it before detaching GBDE is a good idea. Insisted on by: Flemming Jacobsen <fj@batmule.dk> Approveed by: re@ Notes: svn path=/head/; revision=123017
* Make the regression test run also with obj directories.Poul-Henning Kamp2003-10-172-2/+6
| | | | Notes: svn path=/head/; revision=121169
* Insert an overview of the plans here, in case I get run over by a bus.Poul-Henning Kamp2003-10-131-0/+32
| | | | Notes: svn path=/head/; revision=121073
* I think it is more correct to use modfind() than kldfind() here.Poul-Henning Kamp2003-10-101-2/+2
| | | | Notes: svn path=/head/; revision=120969
* Improve regression test with an image file which must work.Poul-Henning Kamp2003-10-072-2/+3316
| | | | Notes: svn path=/head/; revision=120878
* Autoload kernel module if necessary.Poul-Henning Kamp2003-10-071-0/+9
| | | | | | | Submitted by: mr Notes: svn path=/head/; revision=120877
* Interior decoration changes.Poul-Henning Kamp2003-10-071-5/+5
| | | | Notes: svn path=/head/; revision=120876
* Simplify the GEOM OAM api: Drop the request type, and let everythingPoul-Henning Kamp2003-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. Notes: svn path=/head/; revision=115624
* Moved libgeom.so dependencies to where they belong.Ruslan Ermilov2003-05-171-2/+2
| | | | | | | | Reviewed by: phk Approved by: re (scottl) Notes: svn path=/head/; revision=115104
* Normalize, fix ``make checkdpadd''.Ruslan Ermilov2003-04-161-5/+6
| | | | Notes: svn path=/head/; revision=113558
* Avoid off_t -> integer overflow when sorting the locksector addresses.Poul-Henning Kamp2003-04-141-1/+1
| | | | Notes: svn path=/head/; revision=113466
* Don't pull in geom_enc.c any more.Poul-Henning Kamp2003-04-031-3/+1
| | | | Notes: svn path=/head/; revision=113014
* Use new GEOM OAM. Kernels have supported this for a number of days, soPoul-Henning Kamp2003-03-312-40/+29
| | | | | | | people should be OK. Notes: svn path=/head/; revision=112877
* Remove reference to unavailable paper.Poul-Henning Kamp2003-03-071-5/+0
| | | | Notes: svn path=/head/; revision=111961
* Fix two unsafe uses of sprintf().Tim J. Robbins2003-02-231-3/+8
| | | | Notes: svn path=/head/; revision=111298
* Correct some err() format string bugs.Tim J. Robbins2003-02-231-7/+7
| | | | Notes: svn path=/head/; revision=111296
* Solve another bug in the mapping code: correctly skip lock sectors.Poul-Henning Kamp2002-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. Notes: svn path=/head/; revision=108060
* Fix two blunders in the mapping functions which can lead to corrupt data,Poul-Henning Kamp2002-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> Notes: svn path=/head/; revision=108052
* Untwist a twisty bit of logic which gcc for some reason cannot seePoul-Henning Kamp2002-12-181-4/+4
| | | | | | | through on ia64. Notes: svn path=/head/; revision=108020
* A couple of stylistic improvements.Poul-Henning Kamp2002-12-172-5/+6
| | | | Notes: svn path=/head/; revision=107982
* mdoc(7) police: markup overhaul.Ruslan Ermilov2002-12-121-23/+37
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107773
* Synchronize usage() with reality.Poul-Henning Kamp2002-12-011-8/+19
| | | | | | | | | | Semi-automatic handling of /dev prefix for device names. Sponsored by: DARPA & NAI Labs. Approved by: re (blanket) Notes: svn path=/head/; revision=107455
* De-danglify the manual page.Poul-Henning Kamp2002-12-011-6/+6
| | | | | | | | Submitted by: ceri Approved by: re (blanket) Notes: svn path=/head/; revision=107454
* o Bring the NOTICE section into the DESCRIPTION section and wrap it inChris Costello2002-11-181-11/+12
| | | | | | | | | | .Bf -emphasis ... .Ef o Grammar/spelling Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=107074
* Run a revision on the GBDE encryption facility.Poul-Henning Kamp2002-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. Notes: svn path=/head/; revision=106407
* Initialize the new salt field in the lock sector.Poul-Henning Kamp2002-10-301-2/+3
| | | | | | | Sponsored by: DARPA & NAI Labs Notes: svn path=/head/; revision=106227
* I overlooked an absolute path.Poul-Henning Kamp2002-10-211-1/+1
| | | | | | | Submitted by: Henric Jungheim <henric@attbi.com> Notes: svn path=/head/; revision=105610