Commit af53fc2b authored by Niels Möller's avatar Niels Möller

(asn1_der_get_bignum): Declare function.

Rev: src/nettle/bignum.h:1.9
parent c87cc07a
...@@ -78,6 +78,7 @@ nettle_mpz_random(mpz_t x, ...@@ -78,6 +78,7 @@ nettle_mpz_random(mpz_t x,
void *ctx, nettle_random_func random, void *ctx, nettle_random_func random,
const mpz_t n); const mpz_t n);
/* sexp parsing */
struct sexp_iterator; struct sexp_iterator;
/* If LIMIT is non-zero, the number must be at most LIMIT bits. /* If LIMIT is non-zero, the number must be at most LIMIT bits.
...@@ -85,4 +86,12 @@ struct sexp_iterator; ...@@ -85,4 +86,12 @@ struct sexp_iterator;
int int
nettle_mpz_set_sexp(mpz_t x, unsigned limit, struct sexp_iterator *i); nettle_mpz_set_sexp(mpz_t x, unsigned limit, struct sexp_iterator *i);
/* der parsing */
struct asn1_der_iterator;
int
asn1_der_get_bignum(struct asn1_der_iterator *iterator,
mpz_t x, unsigned limit);
#endif /* NETTLE_BIGNUM_H_INCLUDED */ #endif /* NETTLE_BIGNUM_H_INCLUDED */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment