- Require different input and output buffer in cipher_update()

- Fixed style typos
This commit is contained in:
Paul Bakker 2011-01-20 16:35:05 +00:00
parent 1f14d08cf9
commit a885d6835f

View file

@ -197,8 +197,11 @@ int cipher_update( cipher_context_t *ctx, const unsigned char *input, int ilen,
{
int copy_len = 0;
if( NULL == ctx || NULL == ctx->cipher_info || NULL == olen )
if( NULL == ctx || NULL == ctx->cipher_info || NULL == olen ||
input == output )
{
return 1;
}
*olen = 0;