1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-22 14:39:24 -05:00

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.
This commit is contained in:
Simon Tatham 2021-11-21 11:46:00 +00:00
parent 60377a09b4
commit 1847ab282d

View File

@ -908,12 +908,12 @@ strbuf *ssh_hash_final_wrapper(ssh_hash *h)
#undef ssh_hash_final #undef ssh_hash_final
#define ssh_hash_final ssh_hash_final_wrapper #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", fatal_error("ssh_cipher_setiv: needs exactly %d bytes",
ssh_cipher_alg(c)->blksize); ssh_cipher_alg(c)->blksize);
ssh_cipher_setiv(c, key.ptr); ssh_cipher_setiv(c, iv.ptr);
} }
#undef ssh_cipher_setiv #undef ssh_cipher_setiv
#define ssh_cipher_setiv ssh_cipher_setiv_wrapper #define ssh_cipher_setiv ssh_cipher_setiv_wrapper