|
Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Galois embedded crypto iplementation. More...
#include "modules/datalink/gec/gec.h"
Include dependency graph for gec.c:Go to the source code of this file.
Functions | |
| void | gec_sts_init (struct gec_sts_ctx *sts) |
| void | gec_clear_sts (struct gec_sts_ctx *sts) |
| void | gec_generate_ephemeral_keys (struct gec_privkey *sk) |
| Generate private and public key pairs for future use. | |
| void | gec_derive_key_material (struct gec_sts_ctx *ctx, uint8_t *z) |
| Derive key material for both sender and receiver. | |
| uint32_t | gec_bytes_to_counter (uint8_t *bytes) |
| Convert from network byte order (big endian) to the machine byte order. | |
| void | gec_counter_to_bytes (uint32_t n, uint8_t *bytes) |
| Convert counter to bytes in network byte order. | |
Galois embedded crypto iplementation.
Definition in file gec.c.
Convert from network byte order (big endian) to the machine byte order.
Definition at line 117 of file gec.c.
References foo.
Referenced by gec_decrypt_message().
Here is the caller graph for this function:| void gec_clear_sts | ( | struct gec_sts_ctx * | sts | ) |
Definition at line 54 of file gec.c.
References ERROR_NONE, foo, RESPONDER, sts, and WAIT_MSG1.
Referenced by gec_sts_init().
Here is the caller graph for this function:Convert counter to bytes in network byte order.
Definition at line 142 of file gec.c.
References foo.
Referenced by gec_encrypt_message().
Here is the caller graph for this function:| void gec_derive_key_material | ( | struct gec_sts_ctx * | ctx, |
| uint8_t * | z | ||
| ) |
Derive key material for both sender and receiver.
Definition at line 91 of file gec.c.
References foo, PPRZ_KEY_LEN, and PPRZ_NONCE_LEN.
Referenced by gec_process_msg1().
Here is the caller graph for this function:| void gec_generate_ephemeral_keys | ( | struct gec_privkey * | sk | ) |
Generate private and public key pairs for future use.
Definition at line 73 of file gec.c.
References foo, PPRZ_KEY_LEN, and rng_wait_and_get().
Referenced by gec_process_msg1(), and gec_sts_init().
Here is the call graph for this function:
Here is the caller graph for this function:| void gec_sts_init | ( | struct gec_sts_ctx * | sts | ) |
Definition at line 33 of file gec.c.
References foo, gec_clear_sts(), gec_generate_ephemeral_keys(), PPRZ_KEY_LEN, and sts.
Referenced by gec_dl_init().
Here is the call graph for this function:
Here is the caller graph for this function: