| /rk3399_rockchip-uboot/cmd/ |
| H A D | crypto_sum.c | 9 static void dump_hash(const char *label, void *hash, in dump_hash() argument 16 buf = hash; in dump_hash() 29 u8 hash[256]; in do_crypto_csum() local 58 memset(hash, 0, sizeof(hash)); in do_crypto_csum() 59 crypto_sha_csum(dev, &csha_ctx, input_data, input_len, hash); in do_crypto_csum() 60 dump_hash("md5", hash, crypto_algo_nbits(csha_ctx.algo), in do_crypto_csum() 65 memset(hash, 0, sizeof(hash)); in do_crypto_csum() 66 crypto_sha_csum(dev, &csha_ctx, input_data, input_len, hash); in do_crypto_csum() 67 dump_hash("sha1", hash, crypto_algo_nbits(csha_ctx.algo), in do_crypto_csum() 72 memset(hash, 0, sizeof(hash)); in do_crypto_csum() [all …]
|
| H A D | cros_ec.c | 155 struct ec_response_vboot_hash hash; in do_cros_ec() local 158 if (cros_ec_read_hash(dev, &hash)) { in do_cros_ec() 163 if (hash.hash_type == EC_VBOOT_HASH_TYPE_SHA256) in do_cros_ec() 166 printf("type: %d\n", hash.hash_type); in do_cros_ec() 168 printf("offset: 0x%08x\n", hash.offset); in do_cros_ec() 169 printf("size: 0x%08x\n", hash.size); in do_cros_ec() 172 for (i = 0; i < hash.digest_size; i++) in do_cros_ec() 173 printf("%02x", hash.hash_digest[i]); in do_cros_ec()
|
| /rk3399_rockchip-uboot/fs/ubifs/ |
| H A D | key.h | 37 static inline uint32_t key_mask_hash(uint32_t hash) in key_mask_hash() argument 39 hash &= UBIFS_S_KEY_HASH_MASK; in key_mask_hash() 40 if (unlikely(hash <= 2)) in key_mask_hash() 41 hash += 3; in key_mask_hash() 42 return hash; in key_mask_hash() 145 uint32_t hash = c->key_hash(nm->name, nm->len); in dent_key_init() local 147 ubifs_assert(!(hash & ~UBIFS_S_KEY_HASH_MASK)); in dent_key_init() 149 key->u32[1] = hash | (UBIFS_DENT_KEY << UBIFS_S_KEY_HASH_BITS); in dent_key_init() 162 uint32_t hash) in dent_key_init_hash() argument 164 ubifs_assert(!(hash & ~UBIFS_S_KEY_HASH_MASK)); in dent_key_init_hash() [all …]
|
| /rk3399_rockchip-uboot/scripts/basic/ |
| H A D | fixdep.c | 145 unsigned int hash; member 155 unsigned int i, hash = 2166136261U; in strhash() local 158 hash = (hash ^ str[i]) * 0x01000193; in strhash() 159 return hash; in strhash() 165 static int is_defined_config(const char *name, int len, unsigned int hash) in is_defined_config() argument 169 for (aux = hashtab[hash % HASHSZ]; aux; aux = aux->next) { in is_defined_config() 170 if (aux->hash == hash && aux->len == len && in is_defined_config() 180 static void define_config(const char *name, int len, unsigned int hash) in define_config() argument 190 aux->hash = hash; in define_config() 191 aux->next = hashtab[hash % HASHSZ]; in define_config() [all …]
|
| /rk3399_rockchip-uboot/arch/arm/include/asm/arch-rockchip/ |
| H A D | rk_atags.h | 103 u32 hash; member 113 u32 hash; member 122 u32 hash; member 143 u32 hash; member 152 u32 hash; member 161 u32 hash; member 176 u32 hash; member 184 u32 hash; member 191 u32 hash; member 200 u32 hash; member [all …]
|
| /rk3399_rockchip-uboot/doc/uImage.FIT/ |
| H A D | multi.its | 21 hash@1 { 24 hash@2 { 38 hash@1 { 52 hash@1 { 66 hash@1 { 80 hash@1 { 91 hash@1 { 103 hash@1 {
|
| H A D | kernel_fdt.its | 21 hash@1 { 24 hash@2 { 34 hash@1 { 37 hash@2 {
|
| H A D | update3.its | 18 hash@1 { 28 hash@1 { 39 hash@1 {
|
| H A D | multi-with-loadables.its | 22 hash@1 { 34 hash@1 { 46 hash@1 { 60 hash@1 {
|
| H A D | kernel.its | 21 hash@1 { 24 hash@2 { 59 hash@2 { 73 hash@2 {
|
| H A D | multi-with-fpga.its | 20 hash@1 { 32 hash@1 { 46 hash@1 {
|
| /rk3399_rockchip-uboot/fs/jffs2/ |
| H A D | jffs2_nand_private.h | 118 static inline unsigned long end_name_hash(unsigned long hash) in end_name_hash() argument 120 return (unsigned int) hash; in end_name_hash() 127 unsigned long hash = init_name_hash(); in full_name_hash() local 129 hash = partial_name_hash(*name++, hash); in full_name_hash() 130 return end_name_hash(hash); in full_name_hash()
|
| /rk3399_rockchip-uboot/arch/arm/mach-rockchip/ |
| H A D | rk_atags.c | 123 u32 i, hash = 0x47C6A7E6; in js_hash() local 127 return hash; in js_hash() 130 hash ^= ((hash << 5) + data[i] + (hash >> 2)); in js_hash() 132 return hash; in js_hash() 185 u32 length, size = 0, hash; in atags_set_tag() local 280 hash = js_hash(t, (size << 2) - HASH_LEN); in atags_set_tag() 281 memcpy((char *)&t->u + length, &hash, HASH_LEN); in atags_set_tag() 320 u32 *hash, calc_hash, size; in atags_get_tag() local 337 hash = (u32 *)((ulong)t + (size << 2) - HASH_LEN); in atags_get_tag() 338 if (!*hash) { in atags_get_tag() [all …]
|
| /rk3399_rockchip-uboot/arch/arm/include/asm/arch-tegra/ |
| H A D | warmboot.h | 26 struct hash { struct 27 u32 hash[HASH_LENGTH]; member 42 struct hash hash; /* hash of header+code, starts next field*/ member 43 struct hash random_aes_block; /* a data block to aid security. */
|
| /rk3399_rockchip-uboot/tools/rockchip/ |
| H A D | sha2.c | 269 memcpy(ctx->hash, i256, 8 * sizeof(sha2_32t)); in sha256_begin() 283 memcpy(v, ctx->hash, 8 * sizeof(sha2_32t)); in sha256_compile() 304 ctx->hash[0] += v[0]; in sha256_compile() 305 ctx->hash[1] += v[1]; in sha256_compile() 306 ctx->hash[2] += v[2]; in sha256_compile() 307 ctx->hash[3] += v[3]; in sha256_compile() 308 ctx->hash[4] += v[4]; in sha256_compile() 309 ctx->hash[5] += v[5]; in sha256_compile() 310 ctx->hash[6] += v[6]; in sha256_compile() 311 ctx->hash[7] += v[7]; in sha256_compile() [all …]
|
| H A D | loaderimage.c | 83 uint8_t hash[LOADER_HASH_SIZE]; /* sha */ member 128 uint32_t hash = 0x47C6A7E6; in js_hash() local 132 hash ^= ((hash << 5) + buf[i] + (hash >> 2)); in js_hash() 134 return hash; in js_hash() 317 memcpy(hdr.hash, sha, hdr.hash_len); in main() 320 uint8_t hash[LOADER_HASH_SIZE]; in main() local 322 memset(hash, 0, LOADER_HASH_SIZE); in main() 335 sha256_finish(&ctx, hash); in main() 336 memcpy(hdr.hash, hash, hdr.hash_len); in main()
|
| /rk3399_rockchip-uboot/include/u-boot/ |
| H A D | rsa.h | 104 const uint8_t *hash, int hash_len); 116 const uint8_t *hash, int hash_len); 128 const uint8_t *hash, int hash_len) in padding_pkcs_15_verify() argument 136 const uint8_t *hash, int hash_len) in padding_pss_verify() argument
|
| /rk3399_rockchip-uboot/lib/avb/libavb_atx/ |
| H A D | avb_atx_validate.c | 46 uint8_t hash[AVB_SHA256_DIGEST_SIZE]) { in sha256() 53 avb_memcpy(hash, tmp, AVB_SHA256_DIGEST_SIZE); in sha256() 59 uint8_t hash[AVB_SHA512_DIGEST_SIZE]) { in sha512() 66 avb_memcpy(hash, tmp, AVB_SHA512_DIGEST_SIZE); in sha512() 70 static void sha256_str(const char* str, uint8_t hash[AVB_SHA256_DIGEST_SIZE]) { in sha256_str() 71 sha256((const uint8_t*)str, avb_strlen(str), hash); in sha256_str() 78 uint8_t hash[AVB_SHA256_DIGEST_SIZE]; in verify_permanent_attributes() local 130 sha256((const uint8_t*)attributes, sizeof(AvbAtxPermanentAttributes), hash); in verify_permanent_attributes() 131 if (memcmp((void*)rsaResult, (void*)hash, 32) == 0) in verify_permanent_attributes() 141 sha256((const uint8_t*)attributes, sizeof(AvbAtxPermanentAttributes), hash); in verify_permanent_attributes() [all …]
|
| /rk3399_rockchip-uboot/lib/rsa/ |
| H A D | rsa-verify.c | 171 const uint8_t *hash, int hash_len) in padding_pkcs_15_verify() argument 184 if (memcmp((uint8_t *)msg + pad_len, hash, msg_len - pad_len)) { in padding_pkcs_15_verify() 267 uint8_t *hash, int hash_len, in compute_hash_prime() argument 276 region[1].data = hash; in compute_hash_prime() 293 const uint8_t *hash, int hash_len) in padding_pss_verify() argument 364 (uint8_t *)hash, hash_len, in padding_pss_verify() 398 const uint32_t sig_len, const uint8_t *hash, in rsa_verify_key() argument 406 if (!prop || !sig || !hash || !checksum) in rsa_verify_key() 447 ret = padding->verify(info, buf, key_len, hash, hash_len); in rsa_verify_key() 492 prop->hash = fdt_getprop(blob, hash_node, "value", NULL); in rsa_get_key_prop() [all …]
|
| /rk3399_rockchip-uboot/tools/patman/ |
| H A D | commit.py | 26 def __init__(self, hash): argument 27 self.hash = hash
|
| /rk3399_rockchip-uboot/common/spl/ |
| H A D | spl_boot_image.c | 25 static void print_hash(const char *label, u8 *hash, int len) in print_hash() argument 31 printf("%02x", hash[i]); in print_hash() 154 uchar hash[32]; in spl_hash_android() local 187 sha1_finish(&ctx, hash); in spl_hash_android() 189 if (memcmp(hash, hdr->id, 20)) { in spl_hash_android() 191 print_hash("Hash real", (u8 *)hash, 20); in spl_hash_android() 206 uchar hash[32]; in spl_hash_android() local 254 crypto_sha_final(dev, &ctx, hash); in spl_hash_android() 256 if (memcmp(hash, hdr->id, 20)) { in spl_hash_android() 258 print_hash("Hash real", (u8 *)hash, 20); in spl_hash_android()
|
| /rk3399_rockchip-uboot/board/birdland/bav335x/ |
| H A D | u-boot.lds | 69 .hash : { *(.hash*) } 111 .gnu.hash : { *(.gnu.hash) }
|
| /rk3399_rockchip-uboot/board/freescale/mx31ads/ |
| H A D | u-boot.lds | 73 .hash : { *(.hash*) } 105 .gnu.hash : { *(.gnu.hash) }
|
| /rk3399_rockchip-uboot/drivers/misc/ |
| H A D | cros_ec.c | 428 struct ec_response_vboot_hash *hash) in cros_ec_wait_on_hash_done() argument 434 while (hash->status == EC_VBOOT_HASH_STATUS_BUSY) { in cros_ec_wait_on_hash_done() 439 hash, sizeof(*hash)) < 0) in cros_ec_wait_on_hash_done() 452 struct ec_response_vboot_hash *hash) in cros_ec_read_hash() argument 459 hash, sizeof(*hash)) < 0) in cros_ec_read_hash() 463 rv = cros_ec_wait_on_hash_done(dev, hash); in cros_ec_read_hash() 471 if (hash->status == EC_VBOOT_HASH_STATUS_DONE && hash->size) in cros_ec_read_hash() 475 __func__, hash->status, hash->size); in cros_ec_read_hash() 483 hash, sizeof(*hash)) < 0) in cros_ec_read_hash() 486 rv = cros_ec_wait_on_hash_done(dev, hash); in cros_ec_read_hash() [all …]
|
| /rk3399_rockchip-uboot/board/rockchip/evb_rk3399/ |
| H A D | evb-rk3399.c | 82 u8 hash[SHA256_SUM_LEN]; in setup_macaddr() local 83 int size = sizeof(hash); in setup_macaddr() 95 ret = hash_block("sha256", (void *)cpuid, strlen(cpuid), hash, &size); in setup_macaddr() 102 memcpy(mac_addr, hash, 6); in setup_macaddr()
|