8 Commits

Author SHA1 Message Date
Guru Prasad Srinivasa
e51ebc0b1a Added function crash_prog() to userland/libc 2016-02-29 20:11:28 -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
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
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
cafa9f5690 Initial Spring 2016 commit. 2015-12-23 00:50:04 +00:00