#include <sys/types.h>
#include <string.h>
#include <unistd.h>
#include "uint_t.h"
#include "curve.h"
#include "logmsg.h"
#include "open.h"
#include "taia.h"
#include "byte.h"
#include "fmt.h"
#include "dns.h"
#include "base32.h"
#include "response.h"
Go to the source code of this file.
|
void | curve_nonce (uint8 nonce[12]) |
|
int | dns_curve_query (const char *buf, const unsigned int len, const unsigned int pos) |
|
int | dns_curve_pubkey (uint8 *pubkey, const char *buf, const unsigned int pos) |
|
int | dns_curve_nonce (uint8 *nonce, const char *buf, const unsigned int pos) |
|
int | dns_curve_cryptobox (uint8 *cryptobox, const char *buf, const unsigned int len, const unsigned int pos) |
|
int | dns_curve_txtquery (const char *buf, const unsigned int len, const unsigned int pos) |
|
int | dns_curve_txtqname (uint8 *base32box, const char *buf, const unsigned int len) |
|
int | dns_curve_txtpubkey (uint8 *pubkey, const char *buf, const unsigned int pos) |
|
int | dns_curve_txtnonce (uint8 *nonce, const uint8 *base32box) |
|
int | response_stream (const uint8 *secret, const uint8 *nonce) |
|
int | response_alttxt (const uint8 *secret, const uint8 *nonce, const char id[2], const unsigned char *query, const unsigned int len, const int rd) |
|
|
char | curvetxtq [10] = { '\x00','\x00','\x00','\x01','\x00','\x00','\x00','\x00','\x00','\x00' } |
|
char | curvetxtr [14] |
|
char | txtheader [10] |
|
◆ TXT_LABLEN
◆ curve_nonce()
void curve_nonce |
( |
uint8 |
nonce[12] | ) |
|
◆ dns_curve_cryptobox()
int dns_curve_cryptobox |
( |
uint8 * |
cryptobox, |
|
|
const char * |
buf, |
|
|
const unsigned int |
len, |
|
|
const unsigned int |
pos |
|
) |
| |
◆ dns_curve_nonce()
int dns_curve_nonce |
( |
uint8 * |
nonce, |
|
|
const char * |
buf, |
|
|
const unsigned int |
pos |
|
) |
| |
◆ dns_curve_pubkey()
int dns_curve_pubkey |
( |
uint8 * |
pubkey, |
|
|
const char * |
buf, |
|
|
const unsigned int |
pos |
|
) |
| |
◆ dns_curve_query()
int dns_curve_query |
( |
const char * |
buf, |
|
|
const unsigned int |
len, |
|
|
const unsigned int |
pos |
|
) |
| |
◆ dns_curve_txtnonce()
int dns_curve_txtnonce |
( |
uint8 * |
nonce, |
|
|
const uint8 * |
base32box |
|
) |
| |
◆ dns_curve_txtpubkey()
int dns_curve_txtpubkey |
( |
uint8 * |
pubkey, |
|
|
const char * |
buf, |
|
|
const unsigned int |
pos |
|
) |
| |
◆ dns_curve_txtqname()
int dns_curve_txtqname |
( |
uint8 * |
base32box, |
|
|
const char * |
buf, |
|
|
const unsigned int |
len |
|
) |
| |
◆ dns_curve_txtquery()
int dns_curve_txtquery |
( |
const char * |
buf, |
|
|
const unsigned int |
len, |
|
|
const unsigned int |
pos |
|
) |
| |
◆ 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 |
|
) |
| |
◆ response_stream()
int response_stream |
( |
const uint8 * |
secret, |
|
|
const uint8 * |
nonce |
|
) |
| |
◆ curvetxtq
char curvetxtq[10] = { '\x00','\x00','\x00','\x01','\x00','\x00','\x00','\x00','\x00','\x00' } |
◆ curvetxtr
Initial value:= { '\x00','\x10',
'\x00','\x01',
'\xc0','\x0c',
'\x00','\x10',
'\x00','\x01',
'\x00','\x00',
'\x00','\x00' }
Definition at line 170 of file curve.c.
◆ txtheader
Initial value:= { '\x84','\x00',
'\x00','\x01',
'\x00','\x01',
'\x00','\x00',
'\x00','\x00' }
Definition at line 178 of file curve.c.