"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/crypto.c" between
dnsmasq-2.82.tar.xz and dnsmasq-2.83.tar.xz

About: Dnsmasq is a lightweight caching DNS forwarder and DHCP server.

crypto.c  (dnsmasq-2.82.tar.xz):crypto.c  (dnsmasq-2.83.tar.xz)
skipping to change at line 28 skipping to change at line 28
#ifdef HAVE_DNSSEC #ifdef HAVE_DNSSEC
#include <nettle/rsa.h> #include <nettle/rsa.h>
#include <nettle/ecdsa.h> #include <nettle/ecdsa.h>
#include <nettle/ecc-curve.h> #include <nettle/ecc-curve.h>
#include <nettle/eddsa.h> #include <nettle/eddsa.h>
#if NETTLE_VERSION_MAJOR == 3 && NETTLE_VERSION_MINOR >= 6 #if NETTLE_VERSION_MAJOR == 3 && NETTLE_VERSION_MINOR >= 6
# include <nettle/gostdsa.h> # include <nettle/gostdsa.h>
#endif #endif
#endif
#if defined(HAVE_DNSSEC) || defined(HAVE_NETTLEHASH)
#include <nettle/nettle-meta.h> #include <nettle/nettle-meta.h>
#include <nettle/bignum.h> #include <nettle/bignum.h>
/* Implement a "hash-function" to the nettle API, which simply returns /* Implement a "hash-function" to the nettle API, which simply returns
the input data, concatenated into a single, statically maintained, buffer. the input data, concatenated into a single, statically maintained, buffer.
Used for the EdDSA sigs, which operate on the whole message, rather Used for the EdDSA sigs, which operate on the whole message, rather
than a digest. */ than a digest. */
struct null_hash_digest struct null_hash_digest
skipping to change at line 170 skipping to change at line 173
} }
*ctxp = ctx; *ctxp = ctx;
*digestp = digest; *digestp = digest;
hash->init(ctx); hash->init(ctx);
return 1; return 1;
} }
#endif
#ifdef HAVE_DNSSEC
static int dnsmasq_rsa_verify(struct blockdata *key_data, unsigned int key_len, unsigned char *sig, size_t sig_len, static int dnsmasq_rsa_verify(struct blockdata *key_data, unsigned int key_len, unsigned char *sig, size_t sig_len,
unsigned char *digest, size_t digest_len, int algo) unsigned char *digest, size_t digest_len, int algo)
{ {
unsigned char *p; unsigned char *p;
size_t exp_len; size_t exp_len;
static struct rsa_public_key *key = NULL; static struct rsa_public_key *key = NULL;
static mpz_t sig_mpz; static mpz_t sig_mpz;
(void)digest_len; (void)digest_len;
 End of changes. 2 change blocks. 
0 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)