summaryrefslogtreecommitdiff
path: root/ot_hex.h
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-10-26 17:13:36 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-10-26 17:13:36 +0100
commit6837c5ac80e3624c6dc3a82d03e50d68b2f5a989 (patch)
treef829fa152980cefec412483b240813432c9406d7 /ot_hex.h
parent6871825565d0ba24436dbd5b92cc09e02f93af6a (diff)
Second run of making variable and function names more readable, urlencoder now matches overall naming scheme
Diffstat (limited to 'ot_hex.h')
-rw-r--r--ot_hex.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ot_hex.h b/ot_hex.h
index 3b45b61..28eddf5 100644
--- a/ot_hex.h
+++ b/ot_hex.h
@@ -12,12 +12,12 @@
12 12
13/* Write hash as forty upper case hex digits followed by a terminating zero. 13/* Write hash as forty upper case hex digits followed by a terminating zero.
14 dest must have room for forty one bytes. Returns dest. */ 14 dest must have room for forty one bytes. Returns dest. */
15char *hex_fromhash(char *dest, const uint8_t *hash); 15char *hex_from_hash(char *dest, const uint8_t *hash);
16 16
17/* Read forty hex digits from src into hash. Returns non-zero on success. 17/* Read forty hex digits from src into hash. Returns non-zero on success.
18 On failure hash is left untouched and no byte of src beyond the offending 18 On failure hash is left untouched and no byte of src beyond the offending
19 character is read, so src need not be forty characters long. */ 19 character is read, so src need not be forty characters long. */
20int hex_tohash(ot_hash hash, const char *src); 20int hex_to_hash(ot_hash hash, const char *src);
21 21
22/* Non-zero if c is a hexadecimal digit, in either case. */ 22/* Non-zero if c is a hexadecimal digit, in either case. */
23int hex_isdigit(int c); 23int hex_isdigit(int c);