#include <nettle/eddsa.h>
#include <nettle/rsa.h>
#include "rsa.h"
+
+#ifndef HAVE_NETTLE_GET_SECP_256R1
+#define nettle_get_secp_256r1() &nettle_secp_256r1
+#endif
+#ifndef HAVE_NETTLE_GET_SECP_384R1
+#define nettle_get_secp_384r1() &nettle_secp_384r1
+#endif
+#ifndef HAVE_NETTLE_GET_SECP_521R1
+#define nettle_get_secp_521r1() &nettle_secp_521r1
+#endif
+
#endif
/* Take an MPI from a buffer and import it into a GMP mpz_t */
ret = ecdsa_verify(&pubkey.ecc,
SHA1_DIGEST_SIZE, hash, &dsasig) ?
ONAK_E_OK : ONAK_E_BAD_SIGNATURE;
+ break;
case KEYHASH(OPENPGP_PKALGO_ECDSA, OPENPGP_HASH_SHA256):
ret = ecdsa_verify(&pubkey.ecc,
SHA256_DIGEST_SIZE, hash, &dsasig) ?