Lines Matching refs:rc
71 int rc; in smbhash() local
81 rc = PTR_ERR(tfm_des); in smbhash()
93 rc = crypto_blkcipher_encrypt(&desc, &sgout, &sgin, 8); in smbhash()
94 if (rc) in smbhash()
95 cifs_dbg(VFS, "could not encrypt crypt key rc: %d\n", rc); in smbhash()
99 return rc; in smbhash()
105 int rc; in E_P16() local
109 rc = smbhash(p16, sp8, p14); in E_P16()
110 if (rc) in E_P16()
111 return rc; in E_P16()
112 rc = smbhash(p16 + 8, sp8, p14 + 7); in E_P16()
113 return rc; in E_P16()
119 int rc; in E_P24() local
121 rc = smbhash(p24, c8, p21); in E_P24()
122 if (rc) in E_P24()
123 return rc; in E_P24()
124 rc = smbhash(p24 + 8, c8, p21 + 7); in E_P24()
125 if (rc) in E_P24()
126 return rc; in E_P24()
127 rc = smbhash(p24 + 16, c8, p21 + 14); in E_P24()
128 return rc; in E_P24()
135 int rc; in mdfour() local
142 rc = PTR_ERR(md4); in mdfour()
144 __func__, rc); in mdfour()
145 return rc; in mdfour()
150 rc = -ENOMEM; in mdfour()
156 rc = crypto_shash_init(&sdescmd4->shash); in mdfour()
157 if (rc) { in mdfour()
161 rc = crypto_shash_update(&sdescmd4->shash, link_str, link_len); in mdfour()
162 if (rc) { in mdfour()
166 rc = crypto_shash_final(&sdescmd4->shash, md4_hash); in mdfour()
167 if (rc) in mdfour()
174 return rc; in mdfour()
185 int rc; in SMBencrypt() local
193 rc = E_P16(p14, p16); in SMBencrypt()
194 if (rc) in SMBencrypt()
195 return rc; in SMBencrypt()
198 rc = E_P24(p21, c8, p24); in SMBencrypt()
200 return rc; in SMBencrypt()
211 int rc; in E_md4hash() local
223 rc = mdfour(p16, (unsigned char *) wpwd, len * sizeof(__le16)); in E_md4hash()
226 return rc; in E_md4hash()
234 int rc; in SMBNTencrypt() local
240 rc = E_md4hash(passwd, p16, codepage); in SMBNTencrypt()
241 if (rc) { in SMBNTencrypt()
243 __func__, rc); in SMBNTencrypt()
244 return rc; in SMBNTencrypt()
247 rc = E_P24(p21, c8, p24); in SMBNTencrypt()
248 return rc; in SMBNTencrypt()