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