OpenBSD CVS

CVS log for src/sys/uvm/uvm_swap_encrypt.h


[BACK] Up to [local] / src / sys / uvm

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.12 / (download) - annotate - [select for diffs], Tue May 28 12:31:24 2024 UTC (13 days, 21 hours ago) by jsg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -2 lines
Diff to previous 1.11 (colored)

remove uvm_swpkeyexpire extern for var we never had

Revision 1.11 / (download) - annotate - [select for diffs], Sun May 12 09:27:13 2024 UTC (4 weeks, 2 days ago) by jsg
Branch: MAIN
Changes since 1.10: +1 -2 lines
Diff to previous 1.10 (colored)

remove uvm_swprekeyprint extern for var we never had

Revision 1.10 / (download) - annotate - [select for diffs], Wed May 6 04:00:10 2015 UTC (9 years, 1 month ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.9: +3 -6 lines
Diff to previous 1.9 (colored)

make SWAP_KEY_GET symmetrical with SWAP_KEY_PUT by having it call
a function in uvm_swap_encrypt.c instead of doing stuff inline.

lets me remove an extern from the header too.

ok kettenis@

Revision 1.9 / (download) - annotate - [select for diffs], Mon Mar 23 22:10:04 2009 UTC (15 years, 2 months ago) by oga
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

Whitespace nit in previous.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Mar 23 22:07:41 2009 UTC (15 years, 2 months ago) by oga
Branch: MAIN
Changes since 1.7: +18 -11 lines
Diff to previous 1.7 (colored)

turn a for (i = 0; i < size; i++) arc4random(); loop into arc4random_buf().

Since that function is now so small (2 lines), inline it into it's only user.

Shaves some bytes (104 on amd64).

ok deraadt@, blambert@. djm@ liked an earlier diff.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Fri Mar 28 00:08:48 2003 UTC (21 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.1.2.2: +1 -1 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync the SMP branch with 3.3

Revision 1.5.6.2 / (download) - annotate - [select for diffs], Tue Oct 29 00:36:50 2002 UTC (21 years, 7 months ago) by art
Branch: UBC
Changes since 1.5.6.1: +2 -2 lines
Diff to previous 1.5.6.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

sync to -current

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jul 2 19:38:55 2002 UTC (21 years, 11 months ago) by nate
Branch: MAIN
CVS Tags: UBC_SYNC_B, UBC_SYNC_A, SMP_SYNC_B, SMP_SYNC_A, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

inital -> initial

Revision 1.5.6.1 / (download) - annotate - [select for diffs], Tue Jun 11 03:33:04 2002 UTC (22 years ago) by art
Branch: UBC
Changes since 1.5: +9 -9 lines
Diff to previous 1.5 (colored)

Sync UBC branch to -current

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Thu Mar 28 14:54:27 2002 UTC (22 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.1.2.1: +9 -9 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

Merge in -current from roughly a week ago

Revision 1.6 / (download) - annotate - [select for diffs], Thu Mar 14 01:27:19 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.5: +9 -9 lines
Diff to previous 1.5 (colored)

First round of __P removal in sys

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Mon May 14 22:47:48 2001 UTC (23 years, 1 month ago) by niklas
Branch: SMP
Changes since 1.1: +44 -3 lines
Diff to previous 1.1 (colored)

merge in approximately 2.9 into SMP branch

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jan 29 02:07:50 2001 UTC (23 years, 4 months ago) by niklas
Branch: MAIN
CVS Tags: UBC_BASE, OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9
Branch point for: UBC
Changes since 1.4: +2 -0 lines
Diff to previous 1.4 (colored)

$OpenBSD$

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jun 14 16:51:55 2000 UTC (24 years ago) by provos
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.3: +14 -0 lines
Diff to previous 1.3 (colored)

put in own ctl level for swapencrypt.

Revision 1.3 / (download) - annotate - [select for diffs], Sat May 27 21:06:08 2000 UTC (24 years ago) by provos
Branch: MAIN
Changes since 1.2: +28 -3 lines
Diff to previous 1.2 (colored)

use rijndael instead of blowfish because of faster key setup.
break swap paritions into sections, each section has own
encryption key.  if a section's key becomes unreferenced, erase it.

Revision 1.2 / (download) - annotate - [select for diffs], Fri May 26 15:18:29 2000 UTC (24 years ago) by provos
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

use encrypted blocknumber as IV

Revision 1.1 / (download) - annotate - [select for diffs], Thu Dec 30 18:21:56 1999 UTC (24 years, 5 months ago) by provos
Branch: MAIN
CVS Tags: SMP_BASE, OPENBSD_2_7_BASE, OPENBSD_2_7
Branch point for: SMP

swap encryption for UVM, option UVM_SWAP_ENCRYPT.  needs to be enabled
via sysctl.
Pages are encrypted with the Blowfish encryption algorithm, the key
is initialized randomly on first swap out, ensuring that entropy has
accumulated in the kernel randomness pool.  Eventually, swap encryption
will be decided on a process by process basis, e.g. a process that reads from
a cryptographic filesystem will enable swap encrypt for its pages. okay
art@ and deraadt@.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.