diff options
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); |
