File: crypto_scrypt-hexconvert.h

package info (click to toggle)
libscrypt 1.22-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 268 kB
  • sloc: ansic: 1,565; makefile: 144
file content (9 lines) | stat: -rw-r--r-- 249 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
#include <stddef.h>
#include <stdint.h>

/**
 * Converts a binary string to a hex representation of that string
 * outbuf must have size of at least buf * 2 + 1.
 */
int libscrypt_hexconvert(const uint8_t *buf, size_t s, char *outbuf,
	size_t obs);