diff options
| author | Michael Brown | 2022-10-24 17:52:24 +0200 |
|---|---|---|
| committer | Michael Brown | 2022-10-25 14:21:28 +0200 |
| commit | 8e478e648fb68ac6f07e4e5cd80a5c1fefcb1cf5 (patch) | |
| tree | 59d27d4c71ed6c92b24d7fd6e007ed16e6379399 /src/net/tls.c | |
| parent | [crypto] Expose null crypto algorithm methods for reuse (diff) | |
| download | ipxe-8e478e648fb68ac6f07e4e5cd80a5c1fefcb1cf5.tar.gz ipxe-8e478e648fb68ac6f07e4e5cd80a5c1fefcb1cf5.tar.xz ipxe-8e478e648fb68ac6f07e4e5cd80a5c1fefcb1cf5.zip | |
[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 4aa4d9e29..3545f12db 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; |
