From 1847ab282d384a069dc5afa5aedbdca148897cca Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 21 Nov 2021 11:46:00 +0000 Subject: [PATCH] testcrypt: fix param name in ssh_cipher_setiv_wrapper. Spotted in passing that a cut-and-paste error made the parameter name 'key' rather than 'iv'. Harmless, but wrong. --- testcrypt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testcrypt.c b/testcrypt.c index 3bdaa518..456cd831 100644 --- a/testcrypt.c +++ b/testcrypt.c @@ -908,12 +908,12 @@ strbuf *ssh_hash_final_wrapper(ssh_hash *h) #undef ssh_hash_final #define ssh_hash_final ssh_hash_final_wrapper -void ssh_cipher_setiv_wrapper(ssh_cipher *c, ptrlen key) +void ssh_cipher_setiv_wrapper(ssh_cipher *c, ptrlen iv) { - if (key.len != ssh_cipher_alg(c)->blksize) + if (iv.len != ssh_cipher_alg(c)->blksize) fatal_error("ssh_cipher_setiv: needs exactly %d bytes", ssh_cipher_alg(c)->blksize); - ssh_cipher_setiv(c, key.ptr); + ssh_cipher_setiv(c, iv.ptr); } #undef ssh_cipher_setiv #define ssh_cipher_setiv ssh_cipher_setiv_wrapper