Skip to content

Commit 296225e

Browse files
committed
Update documentation, remove extra semicolumns
1 parent 9c0aea7 commit 296225e

File tree

7 files changed

+14
-8
lines changed

7 files changed

+14
-8
lines changed

src/common/common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
#if defined(__wasm__) && !defined(__wasi__)
88
static int errno;
9-
# define memcpy(A, B, C) __builtin_memcpy((A), (B), (C));
10-
# define memset(A, B, C) __builtin_memset((A), (B), (C));
9+
# define memcpy(A, B, C) __builtin_memcpy((A), (B), (C))
10+
# define memset(A, B, C) __builtin_memset((A), (B), (C))
1111
#else
1212
# include <errno.h>
1313
# include <stdlib.h>

src/include/aegis128l.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ void aegis128l_decrypt_unauthenticated(uint8_t *m, const uint8_t *c, size_t clen
261261
*
262262
* st_: state to initialize
263263
* k: key input buffer (16 bytes)
264+
* npub: nonce input buffer (16 bytes)
264265
*
265266
* - The same key MUST NOT be used both for MAC and encryption.
266267
* - If the key is secret, the MAC is secure against forgery.
@@ -310,7 +311,7 @@ int aegis128l_mac_final(aegis128l_mac_state *st_, uint8_t *mac, size_t maclen);
310311
int aegis128l_mac_verify(aegis128l_mac_state *st_, const uint8_t *mac, size_t maclen);
311312

312313
/*
313-
* Reset an AEGIS_MAC state.
314+
* Reset an AEGIS-MAC state.
314315
*/
315316
void aegis128l_mac_reset(aegis128l_mac_state *st_);
316317

src/include/aegis128x2.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ void aegis128x2_decrypt_unauthenticated(uint8_t *m, const uint8_t *c, size_t cle
261261
*
262262
* st_: state to initialize
263263
* k: key input buffer (16 bytes)
264+
* npub: nonce input buffer (16 bytes)
264265
*
265266
* - The same key MUST NOT be used both for MAC and encryption.
266267
* - If the key is secret, the MAC is secure against forgery.
@@ -310,7 +311,7 @@ int aegis128x2_mac_final(aegis128x2_mac_state *st_, uint8_t *mac, size_t maclen)
310311
int aegis128x2_mac_verify(aegis128x2_mac_state *st_, const uint8_t *mac, size_t maclen);
311312

312313
/*
313-
* Reset an AEGIS_MAC state.
314+
* Reset an AEGIS-MAC state.
314315
*/
315316
void aegis128x2_mac_reset(aegis128x2_mac_state *st_);
316317

src/include/aegis128x4.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ void aegis128x4_decrypt_unauthenticated(uint8_t *m, const uint8_t *c, size_t cle
261261
*
262262
* st_: state to initialize
263263
* k: key input buffer (16 bytes)
264+
* npub: nonce input buffer (16 bytes)
264265
*
265266
* - The same key MUST NOT be used both for MAC and encryption.
266267
* - If the key is secret, the MAC is secure against forgery.
@@ -310,7 +311,7 @@ int aegis128x4_mac_final(aegis128x4_mac_state *st_, uint8_t *mac, size_t maclen)
310311
int aegis128x4_mac_verify(aegis128x4_mac_state *st_, const uint8_t *mac, size_t maclen);
311312

312313
/*
313-
* Reset an AEGIS_MAC state.
314+
* Reset an AEGIS-MAC state.
314315
*/
315316
void aegis128x4_mac_reset(aegis128x4_mac_state *st_);
316317

src/include/aegis256.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ void aegis256_decrypt_unauthenticated(uint8_t *m, const uint8_t *c, size_t clen,
261261
*
262262
* st_: state to initialize
263263
* k: key input buffer (32 bytes)
264+
* npub: nonce input buffer (32 bytes)
264265
*
265266
* - The same key MUST NOT be used both for MAC and encryption.
266267
* - If the key is secret, the MAC is secure against forgery.
@@ -310,7 +311,7 @@ int aegis256_mac_final(aegis256_mac_state *st_, uint8_t *mac, size_t maclen);
310311
int aegis256_mac_verify(aegis256_mac_state *st_, const uint8_t *mac, size_t maclen);
311312

312313
/*
313-
* Reset an AEGIS_MAC state.
314+
* Reset an AEGIS-MAC state.
314315
*/
315316
void aegis256_mac_reset(aegis256_mac_state *st_);
316317

src/include/aegis256x2.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ void aegis256x2_decrypt_unauthenticated(uint8_t *m, const uint8_t *c, size_t cle
261261
*
262262
* st_: state to initialize
263263
* k: key input buffer (32 bytes)
264+
* npub: nonce input buffer (32 bytes)
264265
*
265266
* - The same key MUST NOT be used both for MAC and encryption.
266267
* - If the key is secret, the MAC is secure against forgery.
@@ -310,7 +311,7 @@ int aegis256x2_mac_final(aegis256x2_mac_state *st_, uint8_t *mac, size_t maclen)
310311
int aegis256x2_mac_verify(aegis256x2_mac_state *st_, const uint8_t *mac, size_t maclen);
311312

312313
/*
313-
* Reset an AEGIS_MAC state.
314+
* Reset an AEGIS-MAC state.
314315
*/
315316
void aegis256x2_mac_reset(aegis256x2_mac_state *st_);
316317

src/include/aegis256x4.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ void aegis256x4_decrypt_unauthenticated(uint8_t *m, const uint8_t *c, size_t cle
261261
*
262262
* st_: state to initialize
263263
* k: key input buffer (32 bytes)
264+
* npub: nonce input buffer (32 bytes)
264265
*
265266
* - The same key MUST NOT be used both for MAC and encryption.
266267
* - If the key is secret, the MAC is secure against forgery.
@@ -310,7 +311,7 @@ int aegis256x4_mac_final(aegis256x4_mac_state *st_, uint8_t *mac, size_t maclen)
310311
int aegis256x4_mac_verify(aegis256x4_mac_state *st_, const uint8_t *mac, size_t maclen);
311312

312313
/*
313-
* Reset an AEGIS_MAC state.
314+
* Reset an AEGIS-MAC state.
314315
*/
315316
void aegis256x4_mac_reset(aegis256x4_mac_state *st_);
316317

0 commit comments

Comments
 (0)