Searched refs:hash_node (Results 1 – 2 of 2) sorted by relevance
| /rk3399_rockchip-uboot/lib/rsa/ |
| H A D | rsa-sign.c | 736 int hash_node; in rsa_set_key_hash() local 759 hash_node = fdt_add_subnode(keydest, key_node, hash_c); in rsa_set_key_hash() 760 if (hash_node < 0) in rsa_set_key_hash() 765 ret = fdt_setprop(keydest, hash_node, FIT_VALUE_PROP, value, value_len); in rsa_set_key_hash() 768 ret = fdt_setprop_string(keydest, hash_node, FIT_ALGO_PROP, csum_algo); in rsa_set_key_hash() 775 hash_node = fdt_add_subnode(keydest, key_node, hash_np); in rsa_set_key_hash() 776 if (hash_node < 0) in rsa_set_key_hash() 783 ret = fdt_setprop(keydest, hash_node, FIT_VALUE_PROP, value, value_len); in rsa_set_key_hash() 786 ret = fdt_setprop_string(keydest, hash_node, FIT_ALGO_PROP, csum_algo); in rsa_set_key_hash()
|
| H A D | rsa-verify.c | 460 int hash_node; in rsa_get_key_prop() local 487 hash_node = fdt_subnode_offset(blob, node, "hash@c"); in rsa_get_key_prop() 489 hash_node = fdt_subnode_offset(blob, node, "hash@np"); in rsa_get_key_prop() 491 if (hash_node >= 0) in rsa_get_key_prop() 492 prop->hash = fdt_getprop(blob, hash_node, "value", NULL); in rsa_get_key_prop()
|