initial commit - import mediafire-shell sources

This commit is contained in:
josch
2014-09-15 20:00:05 +02:00
commit ad1fea5a78
56 changed files with 8147 additions and 0 deletions

21
keys.c Normal file
View 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;
}