makerom v0.6

This commit is contained in:
3DSGuy
2014-04-08 13:09:00 +08:00
parent 26772b49c8
commit 9cb89cbe8b
59 changed files with 2935 additions and 2662 deletions
+3 -6
View File
@@ -1,5 +1,4 @@
#ifndef _CTR_CRYPTO_H_
#define _CTR_CRYPTO_H_
#pragma once
#include "polarssl/config.h"
#include "polarssl/aes.h"
@@ -74,7 +73,7 @@ extern "C" {
// SHA
void ctr_sha(void *data, u64 size, u8 *hash, int mode);
// AES
u8* AesKeyScrambler(u8 *KeyX, u8 *KeyY);
u8* AesKeyScrambler(u8 *Key, u8 *KeyX, u8 *KeyY);
void ctr_add_counter(ctr_aes_context* ctx, u32 carry);
void ctr_init_counter(ctr_aes_context* ctx, u8 key[16],u8 ctr[16]);
void ctr_crypt_counter_block(ctr_aes_context* ctx, u8 input[16], u8 output[16]);
@@ -97,6 +96,4 @@ int ctr_sig(void *data, u64 size, u8 *signature, u8 *modulus, u8 *private_exp, u
#ifdef __cplusplus
}
#endif
#endif
#endif