Noise-C
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
Data Structures | Functions
names.h File Reference

Mapping algorithm names to/from identifiers. More...

#include <noise/protocol/constants.h>
#include <stddef.h>

Go to the source code of this file.

Data Structures

struct  NoiseProtocolId
 Noise protocol name broken out into separate identifier fields. More...
 

Functions

const char * noise_id_to_name (int category, int id)
 Maps an algorithm identifier to the corresponding name. More...
 
int noise_name_to_id (int category, const char *name, size_t name_len)
 Maps an algorithm name to the corresponding identifier. More...
 
int noise_protocol_id_to_name (char *name, size_t name_len, const NoiseProtocolId *id)
 Formats a protocol name from a set of identifiers for the algorithms that make up the name. More...
 
int noise_protocol_name_to_id (NoiseProtocolId *id, const char *name, size_t name_len)
 Parses a protocol name into a set of identifiers for the algorithms that are indicated by the name. More...
 

Detailed Description

Mapping algorithm names to/from identifiers.

Definition in file names.h.