djbdnscurve6 46
djbdnscurve6
Loading...
Searching...
No Matches
curve.h File Reference
#include "uint_t.h"
#include "crypto_box.h"
Include dependency graph for curve.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define crypto_scalarmult_base   crypto_scalarmult_curve25519_base
#define crypto_box_keypair   crypto_box_curve25519xsalsa20poly1305_keypair
#define crypto_box_beforenm   crypto_box_curve25519xsalsa20poly1305_beforenm
#define crypto_box_afternm   crypto_box_curve25519xsalsa20poly1305_afternm
#define crypto_box_open_afternm   crypto_box_curve25519xsalsa20poly1305_open_afternm

Functions

void curve_nonce (uint8[12])
int dns_curve_query (const char *, const unsigned int, const unsigned int)
int dns_curve_pubkey (uint8 *, const char *, const unsigned int)
int dns_curve_nonce (uint8 *, const char *, const unsigned int)
int dns_curve_cryptobox (uint8 *, const char *, const unsigned int, const unsigned int)
int dns_curve_txtquery (const char *, unsigned int, unsigned int)
int dns_curve_txtqname (uint8 *, const char *, const unsigned int)
int dns_curve_txtpubkey (uint8 *, const char *, const unsigned int)
int dns_curve_txtnonce (uint8 *, const unsigned char *)
int response_stream (const uint8 *, const uint8 *)
int response_alttxt (const uint8 *, const uint8 *, const char[2], const unsigned char *, const unsigned int, const int)
void surf (void)
void dns_random_init (const char[12])
unsigned int dns_random (unsigned int)
void randombytes (uint8 *, unsigned long long)
int crypto_random_init (void)

Variables

int flagcurved

Macro Definition Documentation

◆ crypto_box_afternm

#define crypto_box_afternm   crypto_box_curve25519xsalsa20poly1305_afternm

Definition at line 14 of file curve.h.

◆ crypto_box_beforenm

#define crypto_box_beforenm   crypto_box_curve25519xsalsa20poly1305_beforenm

Definition at line 12 of file curve.h.

◆ crypto_box_keypair

#define crypto_box_keypair   crypto_box_curve25519xsalsa20poly1305_keypair

Definition at line 11 of file curve.h.

◆ crypto_box_open_afternm

#define crypto_box_open_afternm   crypto_box_curve25519xsalsa20poly1305_open_afternm

Definition at line 15 of file curve.h.

◆ crypto_scalarmult_base

#define crypto_scalarmult_base   crypto_scalarmult_curve25519_base

Definition at line 10 of file curve.h.

Function Documentation

◆ crypto_random_init()

int crypto_random_init ( void )

Definition at line 90 of file dns_random.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ curve_nonce()

void curve_nonce ( uint8 nonce[12])

Definition at line 17 of file curve.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dns_curve_cryptobox()

int dns_curve_cryptobox ( uint8 * cryptobox,
const char * buf,
const unsigned int len,
const unsigned int pos )

Definition at line 53 of file curve.c.

◆ dns_curve_nonce()

int dns_curve_nonce ( uint8 * nonce,
const char * buf,
const unsigned int pos )

Definition at line 47 of file curve.c.

◆ dns_curve_pubkey()

int dns_curve_pubkey ( uint8 * pubkey,
const char * buf,
const unsigned int pos )

Definition at line 41 of file curve.c.

◆ dns_curve_query()

int dns_curve_query ( const char * buf,
const unsigned int len,
const unsigned int pos )

Definition at line 33 of file curve.c.

◆ dns_curve_txtnonce()

int dns_curve_txtnonce ( uint8 * ,
const unsigned char *  )

◆ dns_curve_txtpubkey()

int dns_curve_txtpubkey ( uint8 * pubkey,
const char * buf,
const unsigned int pos )

Definition at line 128 of file curve.c.

Here is the call graph for this function:

◆ dns_curve_txtqname()

int dns_curve_txtqname ( uint8 * base32box,
const char * buf,
const unsigned int len )

Definition at line 101 of file curve.c.

Here is the call graph for this function:

◆ dns_curve_txtquery()

int dns_curve_txtquery ( const char * buf,
unsigned int len,
unsigned int pos )

Definition at line 78 of file curve.c.

◆ dns_random()

unsigned int dns_random ( unsigned int n)

Definition at line 56 of file dns_random.c.

◆ dns_random_init()

void dns_random_init ( const char [12])

◆ randombytes()

void randombytes ( uint8 * x,
unsigned long long xlen )

Definition at line 73 of file dns_random.c.

Here is the caller graph for this function:

◆ response_alttxt()

int response_alttxt ( const uint8 * secret,
const uint8 * nonce,
const char id[2],
const unsigned char * query,
const unsigned int len,
const int rd )

Definition at line 195 of file curve.c.

Here is the call graph for this function:

◆ response_stream()

int response_stream ( const uint8 * secret,
const uint8 * nonce )

Definition at line 152 of file curve.c.

Here is the call graph for this function:

◆ surf()

void surf ( void )

Definition at line 18 of file dns_random.c.

Here is the caller graph for this function:

Variable Documentation

◆ flagcurved

int flagcurved
extern

Definition at line 17 of file rbldns.c.