diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-26 17:13:36 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-26 17:13:36 +0100 |
| commit | 6837c5ac80e3624c6dc3a82d03e50d68b2f5a989 (patch) | |
| tree | f829fa152980cefec412483b240813432c9406d7 /ot_hex.h | |
| parent | 6871825565d0ba24436dbd5b92cc09e02f93af6a (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.h | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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. */ |
| 15 | char *hex_fromhash(char *dest, const uint8_t *hash); | 15 | char *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. */ |
| 20 | int hex_tohash(ot_hash hash, const char *src); | 20 | int 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. */ |
| 23 | int hex_isdigit(int c); | 23 | int hex_isdigit(int c); |
