mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 18:15:18 -07:00
Credit CodesInChaos
This commit is contained in:
parent
5fd91b8f0f
commit
caeeefbcf4
@ -92,6 +92,7 @@ sodium_memcmp(const void * const b1_, const void * const b2_, size_t len)
|
|||||||
return (int) ((1 & ((d - 1) >> 8)) - 1);
|
return (int) ((1 & ((d - 1) >> 8)) - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Derived from original code by CodesInChaos */
|
||||||
char *
|
char *
|
||||||
sodium_bin2hex(char * const hex, const size_t hex_maxlen,
|
sodium_bin2hex(char * const hex, const size_t hex_maxlen,
|
||||||
const unsigned char * const bin, const size_t bin_len)
|
const unsigned char * const bin, const size_t bin_len)
|
||||||
|
Loading…
Reference in New Issue
Block a user