Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
\file

Cyptographic algorithm API and utilities
Cryptographic algorithm API and utilities
*/


Expand Down
6 changes: 3 additions & 3 deletions src/methods/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ typedef struct fastd_method_common {
fastd_timeout_t refresh_after; /**< When to try refreshing the session */

uint8_t send_nonce[COMMON_NONCEBYTES]; /**< The next nonce to use */
uint8_t receive_nonce[COMMON_NONCEBYTES]; /**< The hightest nonce received to far for this session */
uint8_t receive_nonce[COMMON_NONCEBYTES]; /**< The highest nonce received so far for this session */

fastd_timeout_t reorder_timeout; /**< How long to packets with a lower sequence number (nonce) than the newest received */
uint64_t receive_reorder_seen; /**< Bitmap specifying which of the 64 sequence numbers (nonces) before \a receive_nonce have bit seen */
fastd_timeout_t reorder_timeout; /**< How long to accept packets with a lower sequence number (nonce) than the newest received */
uint64_t receive_reorder_seen; /**< Bitmap specifying which of the 64 sequence numbers (nonces) before \a receive_nonce have been seen */
} fastd_method_common_t;


Expand Down
2 changes: 1 addition & 1 deletion src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ struct fastd_protocol_peer_state {
aligned_int256_t peer_handshake_key; /**< The peer's ephemeral public key used in the last handshake */
aligned_int256_t sigma; /**< The value of sigma used in the last handshake */
fastd_sha256_t shared_handshake_key; /**< The shared handshake key used in the last handshake */
fastd_sha256_t shared_handshake_key_compat; /**< The shared handshake key used in the last handshake (pre-v11 compatiblity protocol) */
fastd_sha256_t shared_handshake_key_compat; /**< The shared handshake key used in the last handshake (pre-v11 compatibility protocol) */
};


Expand Down
4 changes: 2 additions & 2 deletions src/shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

/** An environment variable */
typedef struct shell_env_entry {
const char *key; /**< The name of the enviroment variable */
const char *key; /**< The name of the environment variable */
char *value; /**< The value of the environment variable */
} shell_env_entry_t;

Expand All @@ -52,7 +52,7 @@ struct fastd_shell_env {
};


/** Allocated a new shell environment */
/** Allocates a new shell environment */
fastd_shell_env_t * fastd_shell_env_alloc(void) {
return fastd_new0(fastd_shell_env_t);
}
Expand Down
2 changes: 1 addition & 1 deletion src/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ void fastd_socket_close(fastd_socket_t *sock) {
}
}

/** Handles an error that occured on a socket */
/** Handles an error that occurred on a socket */
void fastd_socket_error(fastd_socket_t *sock) {
fastd_peer_address_t bound_addr = *sock->bound_addr;
if (!sock->addr->addr.sa.sa_family)
Expand Down