Re: [RFC][PATCH 1/4] lib: hex2bin converts ascii hexadecimal string to binary

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mimi Zohar <zohar@xxxxxxxxxxxxxxxxxx> wrote:

> --- a/lib/hexdump.c
> +++ b/lib/hexdump.c
> @@ -34,6 +34,22 @@ int hex_to_bin(char ch)
>  EXPORT_SYMBOL(hex_to_bin);
>  
>  /**
> + * hex2bin - convert an ascii hexadecimal string to its binary representation
> + * @mem: result
> + * @buf: ascii hexadecimal string
> + * @count: result length
> + */
> +void hex2bin(unsigned char *mem, char *buf, int count)

Hmmm...  It might be better to put this in its own file in lib, otherwise it
will drag in all the other functions in that file if used, and vice versa.

David
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux