|
@@ -113,7 +113,7 @@ static inline int crypto_cbc_decrypt_inplace(
|
|
unsigned int bsize = crypto_skcipher_blocksize(tfm);
|
|
unsigned int bsize = crypto_skcipher_blocksize(tfm);
|
|
unsigned int nbytes = walk->nbytes;
|
|
unsigned int nbytes = walk->nbytes;
|
|
u8 *src = walk->src.virt.addr;
|
|
u8 *src = walk->src.virt.addr;
|
|
- u8 last_iv[bsize];
|
|
|
|
|
|
+ u8 last_iv[MAX_CIPHER_BLOCKSIZE];
|
|
|
|
|
|
/* Start of the last block. */
|
|
/* Start of the last block. */
|
|
src += nbytes - (nbytes & (bsize - 1)) - bsize;
|
|
src += nbytes - (nbytes & (bsize - 1)) - bsize;
|