mirror of
https://github.com/xorgy/mediafire-fuse
synced 2026-01-13 13:14:29 -08:00
initial commit - import mediafire-shell sources
This commit is contained in:
21
keys.c
Normal file
21
keys.c
Normal file
@@ -0,0 +1,21 @@
|
||||
#include <stdio.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#include "mfshell.h"
|
||||
#include "private.h"
|
||||
|
||||
void
|
||||
_update_secret_key(mfshell_t *mfshell)
|
||||
{
|
||||
uint64_t new_val;
|
||||
|
||||
if(mfshell == NULL) return;
|
||||
|
||||
new_val = ((uint64_t)mfshell->secret_key) * 16807;
|
||||
new_val %= 0x7FFFFFFF;
|
||||
|
||||
mfshell->secret_key = new_val;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user