Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\hexdump.c Create Date:2022-07-28 06:26:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:hex2bin - convert an ascii hexadecimal string to its binary representation*@dst: binary result*@src: ascii hexadecimal string*@count: result length* Return 0 on success, -EINVAL in case of bad input.

Proto:int hex2bin(u8 *dst, const char *src, size_t count)

Type:int

Parameter:

TypeParameterName
u8 *dst
const char *src
size_tcount
46  When count-- cycle
47  hi = hex_to_bin - convert a hex digit to its real value*@ch: ascii character represents hex digit* hex_to_bin() converts one hex digit to its actual value or -1 in case of bad* input.
48  lo = hex_to_bin - convert a hex digit to its real value*@ch: ascii character represents hex digit* hex_to_bin() converts one hex digit to its actual value or -1 in case of bad* input.
50  If hi < 0 || lo < 0 Then Return -EINVAL
53  dst++ = hi << 4 | lo
55  Return 0
Caller
NameDescribe
getoptionsan have zero or more token= options
datablob_parsedatablob_parse - parse the keyctl data and fill in the* payload and options structures* On success returns 0, otherwise -EINVAL.
encrypted_key_decrypt