mbedtls: Change the last argument of cipher_[de|en]crypt_cbc to size_t

to avoid their prototype different from ssh_cipher_struct

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Change-Id: I6cba2d4fea131f13d028226023da692494caa87d
(cherry picked from commit 50934a542d)
This commit is contained in:
Xiang Xiao
2021-05-05 09:15:38 -07:00
committed by Jakub Jelen
parent 7609ac60a1
commit c954ff4b2c

View File

@@ -687,7 +687,7 @@ static void cipher_encrypt(struct ssh_cipher_struct *cipher,
}
static void cipher_encrypt_cbc(struct ssh_cipher_struct *cipher, void *in, void *out,
unsigned long len)
size_t len)
{
size_t outlen = 0;
int rc = 0;
@@ -745,7 +745,7 @@ static void cipher_decrypt(struct ssh_cipher_struct *cipher,
}
static void cipher_decrypt_cbc(struct ssh_cipher_struct *cipher, void *in, void *out,
unsigned long len)
size_t len)
{
size_t outlen = 0;
int rc = 0;