mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
Fix compiler warnings
This commit is contained in:
parent
6fbe78bc37
commit
041a42e886
@ -30,7 +30,7 @@
|
||||
* may use your version of this file under either the MPL or the
|
||||
* GPL.
|
||||
*
|
||||
* $Id: rijndael.c,v 1.12 2002/09/09 03:56:24 wtc%netscape.com Exp $
|
||||
* $Id: rijndael.c,v 1.13 2002/09/14 06:42:39 jpierre%netscape.com Exp $
|
||||
*/
|
||||
|
||||
#include "prinit.h"
|
||||
@ -839,7 +839,7 @@ static SECStatus
|
||||
rijndael_encryptECB(AESContext *cx, unsigned char *output,
|
||||
unsigned int *outputLen, unsigned int maxOutputLen,
|
||||
const unsigned char *input, unsigned int inputLen,
|
||||
int blocksize)
|
||||
unsigned int blocksize)
|
||||
{
|
||||
SECStatus rv;
|
||||
AESBlockFunc *encryptor;
|
||||
@ -861,9 +861,9 @@ static SECStatus
|
||||
rijndael_encryptCBC(AESContext *cx, unsigned char *output,
|
||||
unsigned int *outputLen, unsigned int maxOutputLen,
|
||||
const unsigned char *input, unsigned int inputLen,
|
||||
int blocksize)
|
||||
unsigned int blocksize)
|
||||
{
|
||||
int j;
|
||||
unsigned int j;
|
||||
SECStatus rv;
|
||||
AESBlockFunc *encryptor;
|
||||
unsigned char *lastblock;
|
||||
@ -897,7 +897,7 @@ static SECStatus
|
||||
rijndael_decryptECB(AESContext *cx, unsigned char *output,
|
||||
unsigned int *outputLen, unsigned int maxOutputLen,
|
||||
const unsigned char *input, unsigned int inputLen,
|
||||
int blocksize)
|
||||
unsigned int blocksize)
|
||||
{
|
||||
SECStatus rv;
|
||||
AESBlockFunc *decryptor;
|
||||
@ -919,13 +919,13 @@ static SECStatus
|
||||
rijndael_decryptCBC(AESContext *cx, unsigned char *output,
|
||||
unsigned int *outputLen, unsigned int maxOutputLen,
|
||||
const unsigned char *input, unsigned int inputLen,
|
||||
int blocksize)
|
||||
unsigned int blocksize)
|
||||
{
|
||||
SECStatus rv;
|
||||
AESBlockFunc *decryptor;
|
||||
const unsigned char *in;
|
||||
unsigned char *out;
|
||||
int j;
|
||||
unsigned int j;
|
||||
unsigned char newIV[RIJNDAEL_MAX_BLOCKSIZE];
|
||||
|
||||
if (!inputLen)
|
||||
|
@ -30,7 +30,7 @@
|
||||
* may use your version of this file under either the MPL or the
|
||||
* GPL.
|
||||
*
|
||||
* $Id: rijndael.h,v 1.5 2002/09/09 03:56:25 wtc%netscape.com Exp $
|
||||
* $Id: rijndael.h,v 1.6 2002/09/14 06:42:39 jpierre%netscape.com Exp $
|
||||
*/
|
||||
|
||||
#ifndef _RIJNDAEL_H_
|
||||
@ -42,7 +42,7 @@
|
||||
typedef SECStatus AESFunc(AESContext *cx, unsigned char *output,
|
||||
unsigned int *outputLen, unsigned int maxOutputLen,
|
||||
const unsigned char *input, unsigned int inputLen,
|
||||
int blocksize);
|
||||
unsigned int blocksize);
|
||||
|
||||
typedef SECStatus AESBlockFunc(AESContext *cx,
|
||||
unsigned char *output,
|
||||
|
Loading…
Reference in New Issue
Block a user