[makerom] Fixed size limitation on NCCH encryption.

This commit is contained in:
jakcron
2015-11-20 03:10:00 +08:00
parent 2dd838b693
commit 7e04a8249e
8 changed files with 36 additions and 28 deletions
+3 -3
View File
@@ -839,14 +839,14 @@ int aes_crypt_cbc( aes_context *ctx,
*/
int aes_crypt_cfb128( aes_context *ctx,
int mode,
size_t length,
uint64_t length,
size_t *iv_off,
unsigned char iv[16],
const unsigned char *input,
unsigned char *output )
{
int c;
size_t n = *iv_off;
size_t n = *iv_off;
if( mode == AES_DECRYPT )
{
@@ -886,7 +886,7 @@ int aes_crypt_cfb128( aes_context *ctx,
* AES-CTR buffer encryption/decryption
*/
int aes_crypt_ctr( aes_context *ctx,
size_t length,
uint64_t length,
size_t *nc_off,
unsigned char nonce_counter[16],
unsigned char stream_block[16],
+3 -3
View File
@@ -116,7 +116,7 @@ int aes_crypt_ecb( aes_context *ctx,
*/
int aes_crypt_cbc( aes_context *ctx,
int mode,
size_t length,
uint64_t length,
unsigned char iv[16],
const unsigned char *input,
unsigned char *output );
@@ -141,7 +141,7 @@ int aes_crypt_cbc( aes_context *ctx,
*/
int aes_crypt_cfb128( aes_context *ctx,
int mode,
size_t length,
uint64_t length,
size_t *iv_off,
unsigned char iv[16],
const unsigned char *input,
@@ -169,7 +169,7 @@ int aes_crypt_cfb128( aes_context *ctx,
* \return 0 if successful
*/
int aes_crypt_ctr( aes_context *ctx,
size_t length,
uint64_t length,
size_t *nc_off,
unsigned char nonce_counter[16],
unsigned char stream_block[16],