Lines Matching defs:string
25 #include <string.h>
98 mpi_from_string (const char *string)
103 err = gcry_mpi_scan (&a, GCRYMPI_FMT_HEX, string, 0, NULL);
105 die ("error converting string to mpi: %s\n", gpg_strerror (err));
111 length of the buffer is returned at R_LENGTH. The string is
112 delimited by end of string. The function returns NULL on
115 data_from_hex (const char *string, size_t *r_length)
121 buffer = gcry_xmalloc (strlen(string)/2+1);
123 for (s=string; *s; s +=2 )
126 die ("error parsing hex string `%s'\n", string);