Lines Matching refs:res
75 int res; in aes_siv_encrypt() local
91 res = crypto_shash_setkey(tfm, key, key_len); in aes_siv_encrypt()
92 if (!res) in aes_siv_encrypt()
93 res = aes_s2v(tfm, num_elem, addr, len, v); in aes_siv_encrypt()
95 if (res) in aes_siv_encrypt()
96 return res; in aes_siv_encrypt()
122 res = crypto_skcipher_setkey(tfm2, key + key_len, key_len); in aes_siv_encrypt()
123 if (res) in aes_siv_encrypt()
128 res = -ENOMEM; in aes_siv_encrypt()
135 res = crypto_skcipher_encrypt(req); in aes_siv_encrypt()
140 return res; in aes_siv_encrypt()
154 int res; in aes_siv_decrypt() local
179 res = crypto_skcipher_setkey(tfm2, key + key_len, key_len); in aes_siv_decrypt()
180 if (res) { in aes_siv_decrypt()
182 return res; in aes_siv_decrypt()
194 res = crypto_skcipher_decrypt(req); in aes_siv_decrypt()
197 if (res) in aes_siv_decrypt()
198 return res; in aes_siv_decrypt()
206 res = crypto_shash_setkey(tfm, key, key_len); in aes_siv_decrypt()
207 if (!res) in aes_siv_decrypt()
208 res = aes_s2v(tfm, num_elem, addr, len, check); in aes_siv_decrypt()
210 if (res) in aes_siv_decrypt()
211 return res; in aes_siv_decrypt()
275 int res; in fils_decrypt_assoc_resp() local
321 res = aes_siv_decrypt(assoc_data->fils_kek, assoc_data->fils_kek_len, in fils_decrypt_assoc_resp()
323 if (res != 0) { in fils_decrypt_assoc_resp()
327 return res; in fils_decrypt_assoc_resp()