/* ecryptfs_from_hex @dst: Buffer to take the bytes from src hex; must be at least of size (src_size / 2) @src: Buffer to be converted from a hex string respresentation to raw value @dst_size: size of dst buffer, or number of hex characters pairs to convert  */
void ecryptfs_from_hex(char *dst, char *src, int dst_size)
/* ecryptfs_from_hex @dst: Buffer to take the bytes from src hex; must be at least of size (src_size / 2) @src: Buffer to be converted from a hex string respresentation to raw value @dst_size: size of dst buffer, or number of hex characters pairs to convert  */
void ecryptfs_from_hex(char *dst, char *src, int dst_size)
{
	int x;
	char tmp[3] = { 0, };
	for (x = 0; x < dst_size; x++) {
		tmp[0] = src[x * 2];
		tmp[1] = src[x * 2 + 1];
		dst[x] = (unsigned char)simple_strtol(tmp, NULL, 16);
	}
}