1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-09 15:41:10 +03:00

CVE-2023-6918: kdf: Reformat

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Jakub Jelen
2023-12-15 10:30:09 +01:00
committed by Andreas Schneider
parent a8b9d13687
commit a16f34c57a

View File

@@ -115,8 +115,10 @@ static void ssh_mac_final(unsigned char *md, ssh_mac_ctx ctx)
}
int sshkdf_derive_key(struct ssh_crypto_struct *crypto,
unsigned char *key, size_t key_len,
uint8_t key_type, unsigned char *output,
unsigned char *key,
size_t key_len,
uint8_t key_type,
unsigned char *output,
size_t requested_len)
{
/* Can't use VLAs with Visual Studio, so allocate the biggest