Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\crypto\fname.c Create Date:2022-07-28 20:23:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:base64_decode

Proto:static int base64_decode(const char *src, int len, u8 *dst)

Type:int

Parameter:

TypeParameterName
const char *src
intlen
u8 *dst
160  bits = 0 , ac = 0
162  cp = dst
164  When i < len cycle
165  p = strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for
166  If p == NULL || src[i] == 0 Then Return -2
168  ac += p - lookup_table << bits
169  bits += 6
170  If bits >= 8 Then
171  cp++ = ac & 0xff
172  ac >>= 8
173  bits -= 8
176  If ac Then Return -1
178  Return cp - dst
Caller
NameDescribe
fscrypt_setup_filenamescrypt_setup_filename() - prepare to search a possibly encrypted directory*@dir: the directory that will be searched*@iname: the user-provided filename being searched for*@lookup: 1 if we're allowed to proceed without the key because it's* ->lookup() or