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/tls.c | |
parent | 52f72d298abd81a6102ddddf2fff4918e4b077ce (diff) | |
download | ipxe-8e478e648fb68ac6f07e4e5cd80a5c1fefcb1cf5.zip ipxe-8e478e648fb68ac6f07e4e5cd80a5c1fefcb1cf5.tar.gz ipxe-8e478e648fb68ac6f07e4e5cd80a5c1fefcb1cf5.tar.bz2 |
[crypto] Allow initialisation vector length to vary from cipher blocksize
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/tls.c')
-rw-r--r-- | src/net/tls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/tls.c b/src/net/tls.c index 4aa4d9e..3545f12 100644 --- a/src/net/tls.c +++ b/src/net/tls.c @@ -717,14 +717,14 @@ static int tls_generate_keys ( struct tls_connection *tls ) { /* TX initialisation vector */ cipher_setiv ( tx_cipherspec->suite->cipher, - tx_cipherspec->cipher_ctx, key ); + tx_cipherspec->cipher_ctx, key, iv_size ); DBGC ( tls, "TLS %p TX IV:\n", tls ); DBGC_HD ( tls, key, iv_size ); key += iv_size; /* RX initialisation vector */ cipher_setiv ( rx_cipherspec->suite->cipher, - rx_cipherspec->cipher_ctx, key ); + rx_cipherspec->cipher_ctx, key, iv_size ); DBGC ( tls, "TLS %p RX IV:\n", tls ); DBGC_HD ( tls, key, iv_size ); key += iv_size; |