Get rid of compile-warning in aes code.
Thx @Eduline - human development for the report (patch #307). git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5374 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
2882711b7f
commit
0fdfc73cb1
|
@ -131,10 +131,8 @@ void fcrypt_decrypt(unsigned char data[], unsigned int data_len, fcrypt_ctx cx[1
|
|||
|
||||
int fcrypt_end(unsigned char mac[], fcrypt_ctx cx[1])
|
||||
{
|
||||
unsigned int res = cx->mode;
|
||||
|
||||
hmac_sha_end(mac, MAC_LENGTH(cx->mode), cx->auth_ctx);
|
||||
memset(cx, 0, sizeof(fcrypt_ctx)); /* clear the encryption context */
|
||||
return MAC_LENGTH(res); /* return MAC length in bytes */
|
||||
return MAC_LENGTH(cx->mode); /* return MAC length in bytes */
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue