#
303975 |
|
11-Aug-2016 |
gjb |
Copy stable/11@r303970 to releng/11.0 as part of the 11.0-RELEASE cycle.
Prune svn:mergeinfo from the new branch, and rename it to RC1.
Update __FreeBSD_version.
Use the quarterly branch for the default FreeBSD.conf pkg(8) repo and the dvd1.iso packages population.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
302408 |
|
08-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
#
292782 |
|
27-Dec-2015 |
allanjude |
Replace sys/crypto/sha2/sha2.c with lib/libmd/sha512c.c
cperciva's libmd implementation is 5-30% faster
The same was done for SHA256 previously in r263218
cperciva's implementation was lacking SHA-384 which I implemented, validated against OpenSSL and the NIST documentation
Extend sbin/md5 to create sha384(1)
Chase dependancies on sys/crypto/sha2/sha2.{c,h} and replace them with sha512{c.c,.h}
Reviewed by: cperciva, des, delphij Approved by: secteam, bapt (mentor) MFC after: 2 weeks Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D3929
|
#
172836 |
|
20-Oct-2007 |
julian |
Rename the kthread_xxx (e.g. kthread_create()) calls to kproc_xxx as they actually make whole processes. Thos makes way for us to add REAL kthread_create() and friends that actually make theads. it turns out that most of these calls actually end up being moved back to the thread version when it's added. but we need to make this cosmetic change first.
I'd LOVE to do this rename in 7.0 so that we can eventually MFC the new kthread_xxx() calls.
|
#
160964 |
|
04-Aug-2006 |
yar |
Commit the results of the typo hunt by Darren Pilgrim. This change affects documentation and comments only, no real code involved.
PR: misc/101245 Submitted by: Darren Pilgrim <darren pilgrim bitfreak org> Tested by: md5(1) MFC after: 1 week
|
#
151897 |
|
31-Oct-2005 |
rwatson |
Normalize a significant number of kernel malloc type names:
- Prefer '_' to ' ', as it results in more easily parsed results in memory monitoring tools such as vmstat.
- Remove punctuation that is incompatible with using memory type names as file names, such as '/' characters.
- Disambiguate some collisions by adding subsystem prefixes to some memory types.
- Generally prefer lower case to upper case.
- If the same type is defined in multiple architecture directories, attempt to use the same name in additional cases.
Not all instances were caught in this change, so more work is required to finish this conversion. Similar changes are required for UMA zone names.
|
#
143418 |
|
11-Mar-2005 |
ume |
stop including rijndael-api-fst.h from rijndael.h. this is required to integrate opencrypto into crypto.
|
#
139778 |
|
06-Jan-2005 |
imp |
/* -> /*- for copyright notices, minor format tweaks as necessary
|
#
126674 |
|
05-Mar-2004 |
jhb |
kthread_exit() no longer requires Giant, so don't force callers to acquire Giant just to call kthread_exit().
Requested by: many
|
#
125591 |
|
08-Feb-2004 |
phk |
Polish the work/state engine in preparation for HW-crypto support.
|
#
115504 |
|
31-May-2003 |
phk |
Remove unused variable.
Found by: FlexeLint
|
#
114715 |
|
05-May-2003 |
phk |
Use a dedicated malloc(9) bucket for sector storage.
|
#
114250 |
|
29-Apr-2003 |
phk |
Typo in last commit: Do not press xZZ to leave vi(1).
|
#
114249 |
|
29-Apr-2003 |
phk |
When a bio comes back from below with a zero error code, check that it wrote the full length. The only case where this should be able to happen is if we try to read/write past the end and the request is truncated. We obviously should never try to do that, so this code should never activate.
|
#
114153 |
|
28-Apr-2003 |
phk |
Rename g_bde_get_sector() to g_bde_get_keysector() and pick up the offset from the work packet.
|
#
114152 |
|
28-Apr-2003 |
phk |
Only attempt total cache-purge once in case of failure.
|
#
114150 |
|
28-Apr-2003 |
phk |
Better criteria for skipping disk reading BIO_READ work packets.
|
#
114148 |
|
28-Apr-2003 |
phk |
Explicitly set the sector state to JUNK if we encounter a read-error.
|
#
114088 |
|
26-Apr-2003 |
phk |
Bail as soon as the first write request has failed, there is no point in trying the second write if the first one went nowhere.
|
#
114041 |
|
25-Apr-2003 |
phk |
Do an explicit retry after we have dumped the cache, rather than a (potential) tail recursion.
|
#
114040 |
|
25-Apr-2003 |
phk |
If on a BIO_READ request, we failed to allocate the bio for reading our key-sector, we would end up returning the read without an error, despite the fact that the data was not correctly decrypted.
This would result in data corruption on read, but intact data still on the media.
|
#
114038 |
|
25-Apr-2003 |
phk |
Fix a problem and slightly improve the ENOMEM handling:
Give up the entire bio as soon as we detect a problem.
When we detect a problem, give up the bio by contributing the remainder with ENOMEM, rather than kicking the bio back right away.
If we failed on a non-first iteration we previously could end up modifying fields in the bio after we delivered it. This could account for memory corruption (none directly reported) on machines with GBDE.
|
#
114035 |
|
25-Apr-2003 |
phk |
Don't count a sector in the cache unless we manage to create it.
|
#
114034 |
|
25-Apr-2003 |
phk |
Rename g_bde_release_sector() to g_bde_release_keysector() and pick up the sector from the work item.
|
#
114033 |
|
25-Apr-2003 |
phk |
Rename g_bde_read_sector() to g_bde_read_keysector() pick up the offset in the work structure.
|
#
112367 |
|
18-Mar-2003 |
phk |
Including <sys/stdint.h> is (almost?) universally only to be able to use %j in printfs, so put a newsted include in <sys/systm.h> where the printf prototype lives and save everybody else the trouble.
|
#
110541 |
|
08-Feb-2003 |
phk |
Move the g_stat struct to its own .h file, we will export it to other code.
Insted of embedding a struct g_stat in consumers and providers, merely include a pointer.
Remove a couple of <sys/time.h> includes now unneeded.
Add a special allocator for struct g_stat. This allocator will allocate entire pages and hand out g_stat functions from there. The "id" field indicates free/used status.
Add "/dev/geom.stats" device driver whic exports the pages from the allocator to userland with mmap(2) in read-only mode.
This mmap(2) interface should be considered a non-public interface and the functions in libgeom (not yet committed) should be used to access the statistics data.
|
#
108558 |
|
02-Jan-2003 |
phk |
Optimize the size of the work-items by letting the mapping function decide the largest size which stays inside the zone and does not collide with a lock sector.
|
#
108052 |
|
18-Dec-2002 |
phk |
Fix two blunders in the mapping functions which can lead to corrupt data, 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>
|
#
106407 |
|
04-Nov-2002 |
phk |
Run a revision on the GBDE encryption facility.
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.
|
#
105520 |
|
20-Oct-2002 |
phk |
Be consistent about functions being static.
Spotted by: FlexeLint
|
#
105464 |
|
19-Oct-2002 |
phk |
Add Geom Based Disk Encryption to the tree.
This is an encryption module designed for to secure denial of access to the contents of "cold disks" with or without destruction activation.
Major features:
* Based on AES, MD5 and ARC4 algorithms. * Four cryptographic barriers: 1) Pass-phrase encrypts the master key. 2) Pass-phrase + Lock data locates master key. 3) 128 bit key derived from 2048 bit master key protects sector key. 3) 128 bit random single-use sector keys protect data payload. * Up to four different changeable pass-phrases. * Blackening feature for provable destruction of master key material. * Isotropic disk contents offers no information about sector contents. * Configurable destination sector range allows steganographic deployment.
This commit adds the kernel part, separate commits will follow for the userland utility and documentation.
This software was developed for the FreeBSD Project by Poul-Henning Kamp and NAI Labs, the Security Research Division of Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the DARPA CHATS research program.
Many thanks to Robert Watson, CBOSS Principal Investigator for making this possible.
Sponsored by: DARPA & NAI Labs.
|