aboutsummaryrefslogtreecommitdiffstats
path: root/librecrypt_add_algorithm.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-09-25 23:43:29 +0200
committerMattias Andrée <m@maandree.se>2026-09-25 23:43:29 +0200
commit1f168b80a2c7cf0b58c50400ffaff067b144da77 (patch)
treee91ac536cb19d32dbbf82c2083832c2758ddb3b3 /librecrypt_add_algorithm.c
parentAdd tests (diff)
downloadlibrecrypt-1f168b80a2c7cf0b58c50400ffaff067b144da77.tar.gz
librecrypt-1f168b80a2c7cf0b58c50400ffaff067b144da77.tar.bz2
librecrypt-1f168b80a2c7cf0b58c50400ffaff067b144da77.tar.xz
Fix typos
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'librecrypt_add_algorithm.c')
-rw-r--r--librecrypt_add_algorithm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/librecrypt_add_algorithm.c b/librecrypt_add_algorithm.c
index 24a17c7..4556c9b 100644
--- a/librecrypt_add_algorithm.c
+++ b/librecrypt_add_algorithm.c
@@ -129,7 +129,7 @@ librecrypt_add_algorithm(char *out_buffer, size_t size, const char *augend,
phrase = NULL;
phraselen = 0u;
} else {
- /* Measure old ASCII hash; `strlen(augent)` will be `prefix1 + len` */
+ /* Measure old ASCII hash; `strlen(augend)` will be `prefix1 + len` */
len = strlen(&augend[prefix1]);
/* Get encoding information */
@@ -154,7 +154,7 @@ librecrypt_add_algorithm(char *out_buffer, size_t size, const char *augend,
abort(); /* $covered$ (impossible) */
}
- /* Chain the hash algorithms: write `augent` */
+ /* Chain the hash algorithms: write `augend` */
min = MIN(prefix1, size);
if (out_buffer != augend && min)
memmove(out_buffer, augend, min);