13 Commits
Author SHA1 Message Date
Geoffrey Challen e318e3171e Revert "Merging in 1.0.2."
This reverts commit 50cf3276e7.
2017-01-09 22:52:13 -05:00
Geoffrey Challen 50cf3276e7 Merging in 2.0.2. 2017-01-09 22:40:23 -05:00
Scott Haseley 153c0267b6 Changes to userland progress to tweak progress output for test161. We needed
more periodic progress in some cases due to the large slow down that happens
when swapping is implemented (ASST3.3).
2016-04-27 18:46:44 -04:00
Scott Haseley b488b7dcea Added a test.h file for userland.
Currently, this file has tsay() and nsay(), which are atomic vararg print operations
that are loud or quiet (respectively) during automated testing. These are used
throughout userland when output might get intermingled.
2016-04-06 13:29:48 -04:00
Guru Prasad Srinivasa 2cb47cb4c8 Removed all instances of crash_prog()
crash_prog was introduced to force-crash a userspace program
since _exit may not yet be implemented. However, the new versions
of OS161 already have the exact same logic as crash_prog in stdlib/exit.
2016-03-07 10:55:20 -05:00
Guru Prasad Srinivasa b65a333d34 Merge branch 'master' of gitlab.ops-class.org:staff/os161 2016-03-01 02:50:11 -05:00
Guru Prasad Srinivasa e51ebc0b1a Added function crash_prog() to userland/libc 2016-02-29 20:11:28 -05:00
Scott Haseley e7ec655415 Removed printsf, an unused secure testing printf variant. This variant does not apply now that each test has its own secret.
Fixed unused variable in libtest161 in kernel compiles.
2016-02-29 16:43:35 -05:00
Scott Haseley 1b99c0e18f Refactored ksecprintf -> secprintf. Secure code is now all in common libtest161.
This library gets linked in by default in userland, and the common files are
included in the kernel.
2016-02-23 15:31:37 -05:00
Scott Haseley a97b1c80b2 Added sha256 hash function and hmac functions (with and without salt) to the kernel
and userspace.

In userspace, this is accessed through #include <secure.h>
In the kernel, this is access through #include <kern/secure.h>

There is a unit test for this (hm1) that computes the hmac and compares it to
the known value.  The salted vesion tested offline.

-----

Also, fixed usespace compile issue with not changing KERNEL_SECRET => SECRET.
2016-02-01 01:35:53 -05:00
Geoffrey Challen b66416e24f Automation testing tools. 2016-01-11 16:08:40 -05:00
Geoffrey Challen 036cae3982 Secret printing in libraries and shell and silencing randcall. 2016-01-01 11:47:43 -05:00
Geoffrey Challen cafa9f5690 Initial Spring 2016 commit. 2015-12-23 00:50:04 +00:00