Logo
Explore Help
Sign In
minhtrannhat/os161
1
0
Fork 0
You've already forked os161
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
os161/userland/include/secure.h

8 lines
120 B
C
Raw Normal View History

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
#ifndef _SECURE_H_
#define _SECURE_H_
// Just include the kernel verison
#include <kern/secure.h>
#endif //_SECURE_H_
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 365ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API