146 Commits

Author SHA1 Message Date
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
dc49fc79a4 Disable secret for base. 2016-01-31 10:06:08 -05:00
Geoffrey Challen
716d33964b Secret testing with multiplier working. 2016-01-31 09:53:13 -05:00
Geoffrey Challen
59d447acf6 Merge branch 'master' of gitlab.ops-class.org:staff/os161 2016-01-22 11:19:00 -05:00
Geoffrey Challen
6c7e083827 Rename to allow complete test directory overwrite. 2016-01-22 11:18:13 -05:00
Scott Haseley
0ab862abfa 1) Moved tprintf and related functions to their own file in common/libc/printf/tprintf.c.
This file is included by both libc and hostcompat.

2) Changed printf -> tprintf in all testbin programs
2016-01-15 13:33:11 -05:00
Geoffrey Challen
98ff530afb Add shll testing tool. 2016-01-12 14:38:22 -05:00
Geoffrey Challen
002459aa19 Adding fileonlytest. 2016-01-11 21:09:40 -05:00
Geoffrey Challen
ac37b61ba1 Adding fileonlytest. 2016-01-11 21:09:22 -05:00
Geoffrey Challen
9f2567ebbe Adding reader-writer lock primitives. 2016-01-11 21:06:49 -05:00
Geoffrey Challen
a6878c822b Trying to get closer to the original OS/161 sources. 2016-01-11 20:54:52 -05:00
Geoffrey Challen
202cc3eab4 Accidentally checked in patch. 2016-01-11 20:08:39 -05:00
Geoffrey Challen
b66416e24f Automation testing tools. 2016-01-11 16:08:40 -05:00
Geoffrey Challen
5f05f192de Fix sprintf shell prompt. 2016-01-08 15:51:06 -05:00
Geoffrey Challen
036cae3982 Secret printing in libraries and shell and silencing randcall. 2016-01-01 11:47:43 -05:00
Geoffrey Challen
a2b15b77aa Finally getting a good mix of threads in stoplight. 2015-12-31 23:36:47 -05:00
Geoffrey Challen
569f4f604d Better stoplight picture. 2015-12-31 20:54:33 -05:00
Geoffrey Challen
bd0a8dacf6 Better stoplight picture. 2015-12-31 20:54:11 -05:00
Geoffrey Challen
de166aa6a0 Trying without so much yielding. 2015-12-31 20:13:11 -05:00
Geoffrey Challen
183a162e6c Done for now. Testing yield before exit. 2015-12-31 20:08:53 -05:00
Geoffrey Challen
5a61d1d0df Another fix. 2015-12-31 20:01:19 -05:00
Geoffrey Challen
64cd81e9b1 More synchproblem driver fixes. 2015-12-31 19:56:40 -05:00
Geoffrey Challen
015b989a66 Fixing synchronization tests. 2015-12-31 19:38:38 -05:00
Geoffrey Challen
26612b6142 Refactor test code. 2015-12-31 19:26:33 -05:00
Geoffrey Challen
3b2267123d Synchronization driver problem changes. 2015-12-31 14:53:16 -05:00
Geoffrey Challen
2e721daedf Small change to configuration file. 2015-12-31 14:31:22 -05:00
Geoffrey Challen
f818d0bd30 Synchronization problem stubs and drivers. 2015-12-31 14:28:15 -05:00
Geoffrey Challen
1b63251154 RW test stub. 2015-12-31 13:56:21 -05:00
Geoffrey Challen
89ba79cdb4 Fix to sy4. 2015-12-31 12:50:54 -05:00
Geoffrey Challen
5271fc50c7 Moving the secret inside the tests, not in a library function. 2015-12-31 12:03:41 -05:00
Geoffrey Challen
ff1d44b505 Reset KERNEL_SECRET. 2015-12-31 11:48:02 -05:00
Geoffrey Challen
e7a585a298 Synchronization testing changes. Tests now know when they succeed or fail and are ready for automation. 2015-12-31 11:44:46 -05:00
Geoffrey Challen
54c11ab660 Kernel secret for automated testing. 2015-12-31 11:44:25 -05:00
Geoffrey Challen
e45ad208b2 Formatting fixes. 2015-12-31 11:44:08 -05:00
Geoffrey Challen
4a432d4172 Factor out kernel prompt. 2015-12-31 11:43:42 -05:00
Geoffrey Challen
d733b140f3 Format fix. 2015-12-31 11:43:01 -05:00
Geoffrey Challen
d97a4ae026 Synchronizing vkprintf with what we need for kprintf pass through. 2015-12-31 11:42:26 -05:00
Geoffrey Challen
c079ae5fce Using banner for overwrites instead of a name. 2015-12-31 11:41:45 -05:00
Geoffrey Challen
a33db5e187 kprintf variants for testing. 2015-12-31 11:41:16 -05:00
Geoffrey Challen
a4ad38f616 Self check added to sy1. 2015-12-30 10:38:18 -06:00
Geoffrey Challen
8bf1a8bebc Our changes to the CV tests. 2015-12-30 10:11:28 -06:00
Geoffrey Challen
8e916c8c65 Our changes to the CV tests. 2015-12-30 10:09:25 -06:00
Geoffrey Challen
ce8a0f09a4 Add helper functions for thread testing. 2015-12-30 09:59:48 -06:00
Geoffrey Challen
0009ee0b80 Factor shell prompt into overwrite file. 2015-12-30 09:41:53 -06:00
Geoffrey Challen
2f5a7b2237 Ensure compile directory stays around. 2015-12-24 12:40:35 -06:00
Geoffrey Challen
cafa9f5690 Initial Spring 2016 commit. 2015-12-23 00:50:04 +00:00