nettle  3.7.3
About: Nettle is a low-level cryptographic library.
  Fossies Dox: nettle-3.7.3.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

sexp2rsa.c File Reference
#include <string.h>
#include "rsa.h"
#include "bignum.h"
#include "sexp.h"
Include dependency graph for sexp2rsa.c:

Go to the source code of this file.

Macros

#define GET(x, l, v)
 

Functions

int nettle_rsa_keypair_from_sexp_alist (struct rsa_public_key *pub, struct rsa_private_key *priv, unsigned limit, struct sexp_iterator *i)
 
int nettle_rsa_keypair_from_sexp (struct rsa_public_key *pub, struct rsa_private_key *priv, unsigned limit, size_t length, const uint8_t *expr)
 

Macro Definition Documentation

◆ GET

#define GET (   x,
  l,
  v 
)
Value:
do { \
if (!nettle_mpz_set_sexp((x), (l), (v)) \
|| mpz_sgn(x) <= 0) \
return 0; \
} while(0)
int nettle_mpz_set_sexp(mpz_t x, unsigned limit, struct sexp_iterator *i)
Definition: sexp2bignum.c:40
#define x
#define v
int mpz_sgn(const mpz_t u)
Definition: mini-gmp.c:1847

Definition at line 43 of file sexp2rsa.c.

Function Documentation

◆ nettle_rsa_keypair_from_sexp()

int nettle_rsa_keypair_from_sexp ( struct rsa_public_key pub,
struct rsa_private_key priv,
unsigned  limit,
size_t  length,
const uint8_t *  expr 
)

◆ nettle_rsa_keypair_from_sexp_alist()

int nettle_rsa_keypair_from_sexp_alist ( struct rsa_public_key pub,
struct rsa_private_key priv,
unsigned  limit,
struct sexp_iterator i 
)