Added ksecprintf for securely printing messages from the kernel.

If SECRET_TESTING is defined, the function will compute and print
a salt value and the hmac/sha256 hash of the message, which can be
verified from the test161 server.
This commit is contained in:
Scott Haseley
2016-02-11 01:30:33 -05:00
parent 5521823176
commit 01f2d3ea2c
3 changed files with 43 additions and 42 deletions

View File

@@ -45,6 +45,6 @@
*/
#undef SECRET_TESTING
#define SECRET 0
#define SECRET ""
#endif /* _SECRET_H_ */