void hex_string_to_byte_array()

in scripts/openssl_3/main.c [20:27]


void hex_string_to_byte_array(char *buff, int buf_len, unsigned char *res) {
  char *pos = buff;

  for (int i = 0; i < buf_len; i++) {
    sscanf(pos, "%2hhx", &res[i]);
    pos += 2;
  }
}