• Home
  • Raw
  • Download

Lines Matching refs:res

27 	ecr->res = rc;  in derive_crypt_complete()
43 int res = 0; in ext4_derive_key_aes() local
51 res = PTR_ERR(tfm); in ext4_derive_key_aes()
58 res = -ENOMEM; in ext4_derive_key_aes()
64 res = crypto_ablkcipher_setkey(tfm, deriving_key, in ext4_derive_key_aes()
66 if (res < 0) in ext4_derive_key_aes()
72 res = crypto_ablkcipher_encrypt(req); in ext4_derive_key_aes()
73 if (res == -EINPROGRESS || res == -EBUSY) { in ext4_derive_key_aes()
76 res = ecr.res; in ext4_derive_key_aes()
84 return res; in ext4_derive_key_aes()
130 int res; in _ext4_get_encryption_info() local
133 res = ext4_init_crypto(); in _ext4_get_encryption_info()
134 if (res) in _ext4_get_encryption_info()
135 return res; in _ext4_get_encryption_info()
148 res = ext4_xattr_get(inode, EXT4_XATTR_INDEX_ENCRYPTION, in _ext4_get_encryption_info()
151 if (res < 0) { in _ext4_get_encryption_info()
153 return res; in _ext4_get_encryption_info()
158 } else if (res != sizeof(ctx)) in _ext4_get_encryption_info()
160 res = 0; in _ext4_get_encryption_info()
190 res = -ENOKEY; in _ext4_get_encryption_info()
206 res = PTR_ERR(keyring_key); in _ext4_get_encryption_info()
214 res = -EINVAL; in _ext4_get_encryption_info()
221 res = ext4_derive_key_aes(ctx.nonce, master_key->raw, in _ext4_get_encryption_info()
226 res = ctfm ? PTR_ERR(ctfm) : -ENOMEM; in _ext4_get_encryption_info()
229 __func__, res, (unsigned) inode->i_ino); in _ext4_get_encryption_info()
236 res = crypto_ablkcipher_setkey(ctfm, raw_key, in _ext4_get_encryption_info()
238 if (res) in _ext4_get_encryption_info()
248 if (res == -ENOKEY) in _ext4_get_encryption_info()
249 res = 0; in _ext4_get_encryption_info()
252 return res; in _ext4_get_encryption_info()