EpiRootkit
By STDBOOL
Loading...
Searching...
No Matches
passwd.h
Go to the documentation of this file.
1#ifndef PASSWD_H
2#define PASSWD_H
3
4#include <linux/err.h>
5#include <linux/kernel.h>
6#include <linux/slab.h>
7#include <linux/string.h>
8#include <linux/types.h>
9
10#include "crypto.h"
11
12#define PASSWD_HASH_SIZE SHA256_DIGEST_SIZE
13
15
16int passwd_load(void);
17int passwd_verify(const char *password);
18int passwd_set(const char *new_password);
19
20#endif /* PASSWD_H */
u8 access_code_hash[SHA256_DIGEST_SIZE]
Definition passwd.c:7
int passwd_load(void)
Definition passwd.c:22
int passwd_set(const char *new_password)
Set a new password by updating the stored hash.
Definition passwd.c:73
int passwd_verify(const char *password)
Verify the provided password against the stored hash.
Definition passwd.c:57
#define PASSWD_HASH_SIZE
Definition passwd.h:12