Lines Matching refs:info

69 static int fit_image_setup_decrypt(struct image_cipher_info *info,  in fit_image_setup_decrypt()  argument
92 info->keyname = fdt_getprop(fit, cipher_noffset, FIT_KEY_HINT, NULL); in fit_image_setup_decrypt()
93 if (!info->keyname) { in fit_image_setup_decrypt()
98 info->iv = fdt_getprop(fit, cipher_noffset, "iv", NULL); in fit_image_setup_decrypt()
99 info->ivname = fdt_getprop(fit, cipher_noffset, "iv-name-hint", NULL); in fit_image_setup_decrypt()
101 if (!info->iv && !info->ivname) { in fit_image_setup_decrypt()
106 info->fit = fit; in fit_image_setup_decrypt()
107 info->node_noffset = image_noffset; in fit_image_setup_decrypt()
108 info->name = algo_name; in fit_image_setup_decrypt()
109 info->cipher = image_get_cipher_algo(algo_name); in fit_image_setup_decrypt()
110 if (!info->cipher) { in fit_image_setup_decrypt()
116 &info->size_unciphered); in fit_image_setup_decrypt()
126 if (info->ivname) in fit_image_setup_decrypt()
128 FIT_CIPHER_NODENAME, algo_name, info->keyname, info->ivname); in fit_image_setup_decrypt()
131 FIT_CIPHER_NODENAME, algo_name, info->keyname); in fit_image_setup_decrypt()
140 info->key = fdt_getprop(fdt, noffset, "key", NULL); in fit_image_setup_decrypt()
141 if (!info->key) { in fit_image_setup_decrypt()
147 if (!info->iv) { in fit_image_setup_decrypt()
148 info->iv = fdt_getprop(fdt, noffset, "iv", NULL); in fit_image_setup_decrypt()
149 if (!info->iv) { in fit_image_setup_decrypt()
163 struct image_cipher_info info; in fit_image_decrypt_data() local
166 ret = fit_image_setup_decrypt(&info, fit, image_noffset, in fit_image_decrypt_data()
171 ret = info.cipher->decrypt(&info, data_ciphered, size_ciphered, in fit_image_decrypt_data()