Changeset View
Changeset View
Standalone View
Standalone View
digest-openssl.c
Show All 26 Lines | |||||
#include <openssl/evp.h> | #include <openssl/evp.h> | ||||
#include "openbsd-compat/openssl-compat.h" | #include "openbsd-compat/openssl-compat.h" | ||||
#include "sshbuf.h" | #include "sshbuf.h" | ||||
#include "digest.h" | #include "digest.h" | ||||
#include "ssherr.h" | #include "ssherr.h" | ||||
#ifndef HAVE_EVP_RIPEMD160 | |||||
# define EVP_ripemd160 NULL | |||||
#endif /* HAVE_EVP_RIPEMD160 */ | |||||
#ifndef HAVE_EVP_SHA256 | #ifndef HAVE_EVP_SHA256 | ||||
# define EVP_sha256 NULL | # define EVP_sha256 NULL | ||||
#endif | |||||
#ifndef HAVE_EVP_SHA384 | |||||
# define EVP_sha384 NULL | # define EVP_sha384 NULL | ||||
#endif | |||||
#ifndef HAVE_EVP_SHA512 | |||||
# define EVP_sha512 NULL | # define EVP_sha512 NULL | ||||
#endif /* HAVE_EVP_SHA256 */ | #endif | ||||
struct ssh_digest_ctx { | struct ssh_digest_ctx { | ||||
int alg; | int alg; | ||||
EVP_MD_CTX *mdctx; | EVP_MD_CTX *mdctx; | ||||
}; | }; | ||||
struct ssh_digest { | struct ssh_digest { | ||||
int id; | int id; | ||||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |