#include <cyfer/cyfer.h>
Go to the source code of this file.
Data Structures | |
| struct | CYFER_KeyEx_t |
| A structure describing supported key-exchange algorithms. More... | |
Defines | |
| #define | CYFER_KEYEX_NONE 0 |
| #define | CYFER_KEYEX_DH 1 |
Typedefs | |
| typedef void | CYFER_KEYEX_CTX |
| Key-exchange algorithm context. | |
Functions | |
| CYFER_KeyEx_t * | CYFER_KeyEx_Get_Supported (void) |
| Returns a list of supported key-exchange algorithms. | |
| int | CYFER_KeyEx_Select (const char *name) |
| Selects key-exchange algorithm to use. | |
| CYFER_KEYEX_CTX * | CYFER_KeyEx_Init (int type) |
| Creates and initializes algorithm context. | |
| void | CYFER_KeyEx_Finish (CYFER_KEYEX_CTX *ctx) |
| Finalizes the algorithm, destroys and frees the context. | |
| void | CYFER_KeyEx_Generate_Key (CYFER_KEYEX_CTX *ctx) |
| Generates new public/private key pair. | |
| void | CYFER_KeyEx_KeySize (CYFER_KEYEX_CTX *ctx, size_t *privlen, size_t *publen) |
| Returns private and public key lengths. | |
| bool | CYFER_KeyEx_Compute_Key (CYFER_KEYEX_CTX *ctx, unsigned char *other, size_t len) |
| Computes shared key. | |
| void | CYFER_KeyEx_Public_Key (CYFER_KEYEX_CTX *ctx, unsigned char *key) |
| Exports public key. | |
| void | CYFER_KeyEx_Shared_Key (CYFER_KEYEX_CTX *ctx, unsigned char *key, size_t len) |
| Returns shared key. | |
|
|
|
|
|
|
|
|
Key-exchange algorithm context.
|
|
||||||||||||||||
|
Computes shared key.
|
|
|
Finalizes the algorithm, destroys and frees the context.
|
|
|
Generates new public/private key pair.
|
|
|
Returns a list of supported key-exchange algorithms.
|
|
|
Creates and initializes algorithm context.
|
|
||||||||||||||||
|
Returns private and public key lengths.
|
|
||||||||||||
|
Exports public key.
|
|
|
Selects key-exchange algorithm to use.
|
|
||||||||||||||||
|
Returns shared key.
|
1.3-rc3