/u-boot/drivers/crypto/fsl/ |
H A D | fsl_hash.h | 11 #include <hash.h> 23 * @hash: index to the hash calculated 30 u8 hash[HASH_MAX_DIGEST_SIZE]; member in struct:sha_ctx
|
H A D | fsl_hash.c | 120 * Perform progressive hashing on the given buffer and copy hash at 123 * The context is freed after successful completion of hash operation. 126 * @dest_buf: Pointer to the destination buffer where hash is to be copied 158 ctx->hash, 165 flush_dcache_range((ulong)ctx->hash, 166 (ulong)(ctx->hash) + driver_hash[caam_algo].digestsize); 174 invalidate_dcache_range((ulong)ctx->hash, 175 (ulong)(ctx->hash) + driver_hash[caam_algo].digestsize); 176 memcpy(dest_buf, ctx->hash, sizeof(ctx->hash)); [all...] |
/u-boot/lib/ |
H A D | oid_registry.c | 34 unsigned i, j, k, hash; local 38 hash = datasize - 1; 41 hash += octets[i] * 33; 42 hash = (hash >> 24) ^ (hash >> 16) ^ (hash >> 8) ^ hash; 43 hash &= 0xff; 46 * of hash valu [all...] |
H A D | hash-checksum.c | 11 #include <hash.h> 15 #include <hash.h>
|
/u-boot/include/crypto/ |
H A D | ecdsa-uclass.h | 24 * Verify signature of hash against given public key 28 * @hash: Hash of binary image 29 * @hash_len: Length of hash in bytes 33 * This function verifies that the 'signature' of the given 'hash' was 37 const void *hash, size_t hash_len,
|
/u-boot/cmd/ |
H A D | hash.c | 14 #include <hash.h> 48 hash, HARGS, 1, do_hash, 49 "compute hash message digest", 53 "\nhash -v algorithm address count [*]hash\n"
|
H A D | md5sum.c | 13 #include <hash.h>
|
H A D | sha1sum.c | 12 #include <hash.h>
|
H A D | cros_ec.c | 323 } else if (0 == strcmp("hash", cmd)) { 324 struct ec_response_vboot_hash hash; local 327 if (cros_ec_read_hash(dev, EC_VBOOT_HASH_OFFSET_ACTIVE, &hash)) { 328 debug("%s: Could not read KBC hash\n", __func__); 332 if (hash.hash_type == EC_VBOOT_HASH_TYPE_SHA256) 335 printf("type: %d\n", hash.hash_type); 337 printf("offset: 0x%08x\n", hash.offset); 338 printf("size: 0x%08x\n", hash.size); 341 for (i = 0; i < hash.digest_size; i++) 342 printf("%02x", hash [all...] |
/u-boot/scripts/basic/ |
H A D | fixdep.c | 164 unsigned int hash; member in struct:item 173 /* fnv32 hash */ 174 unsigned int i, hash = 2166136261U; local 177 hash = (hash ^ str[i]) * 0x01000193; 178 return hash; 184 static int is_defined_config(const char *name, int len, unsigned int hash) argument 188 for (aux = hashtab[hash % HASHSZ]; aux; aux = aux->next) { 189 if (aux->hash == hash 199 define_config(const char *name, int len, unsigned int hash) argument 219 unsigned int hash = strhash(m, slen); local [all...] |
/u-boot/lib/libavb/ |
H A D | avb_rsa.h | 30 * length |sig_num_bytes| against an expected |hash| of length 45 const uint8_t* hash,
|
/u-boot/include/u-boot/ |
H A D | rsa.h | 41 * @sig_len: Set to length of the calculated hash 71 * rsa_verify_hash() - Verify a signature against a hash 73 * Verify a RSA PKCS1.5 signature against an expected hash. 76 * @hash: Hash according to algorithm specified in @info 82 const uint8_t *hash, uint8_t *sig, uint sig_len); 87 * Verify a RSA PKCS1.5 signature against an expected hash. 101 const void *hash, uint8_t *sig, uint sig_len); 105 const uint8_t *hash, int hash_len); 109 const uint8_t *hash, int hash_len);
|
/u-boot/fs/ubifs/ |
H A D | key.h | 21 * 4KiB offset in case of inode node, and direntry hash in case of a direntry 22 * node. We use "r5" hash borrowed from reiserfs. 29 * key_mask_hash - mask a valid hash value. 32 * We use hash values as offset in directories, so values %0 and %1 are 36 static inline uint32_t key_mask_hash(uint32_t hash) argument 38 hash &= UBIFS_S_KEY_HASH_MASK; 39 if (unlikely(hash <= 2)) 40 hash += 3; 41 return hash; 45 * key_r5_hash - R5 hash functio 144 uint32_t hash = c->key_hash(nm->name, nm->len); local 159 dent_key_init_hash(const struct ubifs_info *c, union ubifs_key *key, ino_t inum, uint32_t hash) argument 179 uint32_t hash = c->key_hash(nm->name, nm->len); local 212 uint32_t hash = c->key_hash(nm->name, nm->len); local 230 uint32_t hash = c->key_hash(nm->name, nm->len); local [all...] |
/u-boot/arch/arm/include/asm/arch-tegra/ |
H A D | warmboot.h | 19 /* Defines the CMAC-AES-128 hash length in 32 bit words. (128 bits = 4 words) */ 24 /* Defines the storage for a hash value (128 bits) */ 25 struct hash { struct 26 u32 hash[HASH_LENGTH]; member in struct:hash 35 * the alignment of relevant data for hash and decryption computations without 41 struct hash hash; /* hash of header+code, starts next field*/ member in struct:wb_header 42 struct hash random_aes_block; /* a data block to aid security. */
|
/u-boot/lib/ecdsa/ |
H A D | ecdsa-verify.c | 62 const void *hash, const void *sig, uint sig_len) 77 return ops->verify(dev, &key, hash, algo->checksum_len, 91 ret = ops->verify(dev, &key, hash, algo->checksum_len, 107 uint8_t hash[algo->checksum_len]; local 117 ret = algo->calculate(algo->name, region, region_count, hash); 121 return ecdsa_verify_hash(dev, info, hash, sig, sig_len); 60 ecdsa_verify_hash(struct udevice *dev, const struct image_sign_info *info, const void *hash, const void *sig, uint sig_len) argument
|
H A D | ecdsa-libcrypto.c | 33 void *hash; /* Pointer to hash used for verification */ member in struct:signer 46 ctx->hash = malloc(info->checksum->checksum_len); 49 if (!ctx->hash || !ctx->signature) 63 if (ctx->hash) 64 free(ctx->hash); 198 algo->calculate(algo->name, region, region_count, ctx->hash); 199 sig = ECDSA_do_sign(ctx->hash, algo->checksum_len, ctx->ecdsa_key); 215 okay = ECDSA_do_verify(ctx->hash, info->checksum->checksum_len, 236 algo->calculate(algo->name, region, region_count, ctx->hash); [all...] |
/u-boot/lib/rsa/ |
H A D | rsa-verify.c | 64 const uint8_t *hash, int hash_len) 76 /* Check hash */ 77 if (memcmp((uint8_t *)msg + pad_len, hash, msg_len - pad_len)) { 105 * It use an input octet string and a hash function. 167 const uint8_t *hash, int hash_len, 176 region[1].data = hash; 203 * @hash: Pointer to the expected hash 204 * @hash_len: Length of the hash 210 const uint8_t *hash, in 62 padding_pkcs_15_verify(struct image_sign_info *info, const uint8_t *msg, int msg_len, const uint8_t *hash, int hash_len) argument 165 compute_hash_prime(struct checksum_algo *checksum, const uint8_t *pad, int pad_len, const uint8_t *hash, int hash_len, const uint8_t *salt, int salt_len, uint8_t *hprime) argument 208 padding_pss_verify(struct image_sign_info *info, const uint8_t *msg, int msg_len, const uint8_t *hash, int hash_len) argument 324 rsa_verify_key(struct image_sign_info *info, struct key_prop *prop, const uint8_t *sig, const uint32_t sig_len, const uint8_t *hash, const uint32_t key_len) argument 396 rsa_verify_with_pkey(struct image_sign_info *info, const void *hash, uint8_t *sig, uint sig_len) argument 436 rsa_verify_with_keynode(struct image_sign_info *info, const void *hash, uint8_t *sig, uint sig_len, int node) argument 483 rsa_verify_with_keynode(struct image_sign_info *info, const void *hash, uint8_t *sig, uint sig_len, int node) argument 491 rsa_verify_hash(struct image_sign_info *info, const uint8_t *hash, uint8_t *sig, uint sig_len) argument 565 uint8_t hash[info->crypto->key_len]; local [all...] |
/u-boot/tools/patman/ |
H A D | commit.py | 15 hash: Commit hash (as a string) 18 hash: Commit hash 35 def __init__(self, hash): 36 self.hash = hash
|
/u-boot/arch/arm/mach-stm32mp/ |
H A D | ecdsa_romapi.c | 23 uint32_t (*ecdsa_verify_signature)(const void *hash, const void *pubkey, 48 const void *hash, size_t hash_len, 73 rom_ret = rom.ecdsa_verify_signature(hash, raw_key, signature, algo); 46 romapi_ecdsa_verify(struct udevice *dev, const struct ecdsa_public_key *pubkey, const void *hash, size_t hash_len, const void *signature, size_t sig_len) argument
|
/u-boot/fs/btrfs/crypto/ |
H A D | hash.c | 35 u64 hash; local 37 hash = xxh64(buf, length, 0); 38 put_unaligned_le64(hash, out);
|
/u-boot/lib/efi_loader/ |
H A D | efi_signature.c | 18 #include <u-boot/hash-checksum.h> 117 * efi_hash_regions - calculate a hash value 120 * @hash: Pointer to a pointer to buffer holding a hash value 123 * Calculate a sha256 value of @regs and return a value in @hash. 128 void **hash, const char *hash_algo, int *len) 139 if (!*hash) { 140 *hash = calloc(1, hash_len); 141 if (!*hash) { 147 ret = hash_calculate(hash_algo, regs, count, *hash); 127 efi_hash_regions(struct image_region *regs, int count, void **hash, const char *hash_algo, int *len) argument 205 void *hash = NULL; local 285 void *hash = NULL, *hash_tmp = NULL; local 427 void *hash = NULL; local [all...] |
/u-boot/board/friendlyarm/nanopi2/ |
H A D | board.c | 256 u32 hash[20]; local 259 memset(hash, 0, sizeof(hash)); 260 memcpy(hash + 12, ETHER_MAC_TAG, sizeof(ETHER_MAC_TAG)); 262 hash[4] = readl(PHY_BASEADDR_ECID + 0x00); 263 hash[5] = readl(PHY_BASEADDR_ECID + 0x04); 264 hash[6] = readl(PHY_BASEADDR_ECID + 0x08); 265 hash[7] = readl(PHY_BASEADDR_ECID + 0x0c); 267 md5((unsigned char *)&hash[4], 64, (unsigned char *)hash); [all...] |
/u-boot/include/dm/ |
H A D | of_extra.h | 35 const uint8_t *hash; /* Hash value */ member in struct:fmap_entry
|
/u-boot/include/ |
H A D | hw_sha.h | 9 #include <hash.h> 12 * Computes hash value of input pbuf using h/w acceleration 25 * Computes hash value of input pbuf using h/w acceleration 38 * Computes hash value of input pbuf using h/w acceleration 51 * Computes hash value of input pbuf using h/w acceleration 88 * Copy sha hash result at destination location 90 * The context is freed after completion of hash operation or after an error. 94 * @dest_buf: Pointer to the destination buffer where hash is to be copied
|
/u-boot/arch/arm/mach-rockchip/ |
H A D | sdram.c | 88 u32 hash; member in struct:tag_ddr_mem 93 u32 i, hash = 0x47C6A7E6; local 96 return hash; 99 hash ^= ((hash << 5) + ((const char *)buf)[i] + (hash >> 2)); 101 return hash; 158 if (!ddr_info->hash) { 159 debug("No hash for tag (0x%08x)\n", tag_h->magic); 163 if (calc_hash != ddr_info->hash) { [all...] |