From c3ae1336fbefda2e71c68149d831b576ab001ac9 Mon Sep 17 00:00:00 2001 From: Anderson Toshiyuki Sasaki Date: Fri, 11 Dec 2020 12:21:48 +0100 Subject: packet_crypt: Move secure_memcmp() to a shared source Move the secure_memcmp() function to a shared source to make it available internally for other crypto implementations. Signed-off-by: Anderson Toshiyuki Sasaki Reviewed-by: Jakub Jelen --- include/libssh/crypto.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/libssh') diff --git a/include/libssh/crypto.h b/include/libssh/crypto.h index ede71661..67d98392 100644 --- a/include/libssh/crypto.h +++ b/include/libssh/crypto.h @@ -213,4 +213,6 @@ int sshkdf_derive_key(struct ssh_crypto_struct *crypto, int key_type, unsigned char *output, size_t requested_len); +int secure_memcmp(const void *s1, const void *s2, size_t n); + #endif /* _CRYPTO_H_ */ -- cgit v1.2.3