diff options
Diffstat (limited to 'ot_hex.c')
| -rw-r--r-- | ot_hex.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -23,7 +23,7 @@ int hex_value(int c) { | |||
| 23 | 23 | ||
| 24 | int hex_isdigit(int c) { return hex_value(c) >= 0; } | 24 | int hex_isdigit(int c) { return hex_value(c) >= 0; } |
| 25 | 25 | ||
| 26 | char *hex_fromhash(char *dest, const uint8_t *hash) { | 26 | char *hex_from_hash(char *dest, const uint8_t *hash) { |
| 27 | static const char digits[] = "0123456789ABCDEF"; | 27 | static const char digits[] = "0123456789ABCDEF"; |
| 28 | char *d = dest; | 28 | char *d = dest; |
| 29 | size_t i; | 29 | size_t i; |
| @@ -36,7 +36,7 @@ char *hex_fromhash(char *dest, const uint8_t *hash) { | |||
| 36 | return dest; | 36 | return dest; |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | int hex_tohash(ot_hash hash, const char *src) { | 39 | int hex_to_hash(ot_hash hash, const char *src) { |
| 40 | uint8_t decoded[sizeof(ot_hash)]; | 40 | uint8_t decoded[sizeof(ot_hash)]; |
| 41 | size_t i; | 41 | size_t i; |
| 42 | 42 | ||
