[crypto] Allow initialisation vector length to vary from cipher blocksize
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
+2
-1
@@ -1033,7 +1033,8 @@ static int peerblk_parse_iv ( struct peerdist_block *peerblk, size_t buf_len,
|
||||
}
|
||||
|
||||
/* Set initialisation vector */
|
||||
cipher_setiv ( peerblk->cipher, peerblk->cipherctx, msg->msg.iv.data );
|
||||
cipher_setiv ( peerblk->cipher, peerblk->cipherctx, msg->msg.iv.data,
|
||||
blksize );
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user