diff options
author | Michael Brown <mcb30@ipxe.org> | 2022-10-24 16:52:24 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2022-10-25 13:21:28 +0100 |
commit | 8e478e648fb68ac6f07e4e5cd80a5c1fefcb1cf5 (patch) | |
tree | 59d27d4c71ed6c92b24d7fd6e007ed16e6379399 /src/net/peerblk.c | |
parent | 52f72d298abd81a6102ddddf2fff4918e4b077ce (diff) | |
download | ipxe-8e478e648fb68ac6f07e4e5cd80a5c1fefcb1cf5.tar.gz |
[crypto] Allow initialisation vector length to vary from cipher blocksize
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/peerblk.c')
-rw-r--r-- | src/net/peerblk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/peerblk.c b/src/net/peerblk.c index f8994f42c..bbd5f16ed 100644 --- a/src/net/peerblk.c +++ b/src/net/peerblk.c @@ -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; } |