Home
last modified time | relevance | path

Searched refs:digest (Results 1 – 25 of 31) sorted by relevance

12

/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/extend/
Dext_sm3.c75 static hi_s32 sm3_compress(hi_u32 digest[SM3_RESULT_SIZE_IN_WORD], in sm3_compress()
83 hi_u32 sm3_a = digest[WORD_IDX_0]; in sm3_compress()
84 hi_u32 sm3_b = digest[WORD_IDX_1]; in sm3_compress()
85 hi_u32 sm3_c = digest[WORD_IDX_2]; in sm3_compress()
86 hi_u32 sm3_d = digest[WORD_IDX_3]; in sm3_compress()
87 hi_u32 sm3_e = digest[WORD_IDX_4]; in sm3_compress()
88 hi_u32 sm3_f = digest[WORD_IDX_5]; in sm3_compress()
89 hi_u32 sm3_g = digest[WORD_IDX_6]; in sm3_compress()
90 hi_u32 sm3_h = digest[WORD_IDX_7]; in sm3_compress()
154 digest[WORD_IDX_0] ^= sm3_a; in sm3_compress()
[all …]
/device/soc/esp/esp32/components/bootloader_support/src/esp32/
Dsecure_boot.c52 esp_secure_boot_iv_digest_t digest; in secure_boot_generate() local
58 if (image_len % sizeof(digest.iv) != 0) { in secure_boot_generate()
59 image_len = (image_len / sizeof(digest.iv) + 1) * sizeof(digest.iv); in secure_boot_generate()
62 ets_secure_boot_rd_iv((uint32_t *)digest.iv); in secure_boot_generate()
78 for (size_t i = 0; i < image_len; i+= sizeof(digest.iv)) { in secure_boot_generate()
84 ets_secure_boot_rd_abstract((uint32_t *)digest.digest); in secure_boot_generate()
88 err = bootloader_flash_write(FLASH_OFFS_SECURE_BOOT_IV_DIGEST, &digest, in secure_boot_generate()
89 sizeof(digest), esp_flash_encryption_enabled()); in secure_boot_generate()
225 …c esp_err_t validate_signature_block(const ets_secure_boot_signature_t *sig_block, uint8_t *digest) in validate_signature_block() argument
230 && !memcmp(digest, sig_block->block[0].image_digest, ESP_SECURE_BOOT_DIGEST_LEN)) { in validate_signature_block()
Dbootloader_sha.c81 void bootloader_sha256_finish(bootloader_sha256_handle_t handle, uint8_t *digest) in bootloader_sha256_finish() argument
85 if (digest == NULL) { in bootloader_sha256_finish()
118 uint32_t *digest_words = (uint32_t *)digest; in bootloader_sha256_finish()
/device/soc/esp/esp32/components/bootloader_support/src/
Dflash_partitions.c56 unsigned char digest[16]; in esp_partition_table_verify() local
59 esp_rom_md5_final(digest, &context); in esp_partition_table_verify()
63 if (memcmp(md5sum, digest, sizeof(digest)) != 0) { in esp_partition_table_verify()
Dbootloader_utility.c865 esp_err_t bootloader_sha256_flash_contents(uint32_t flash_offset, uint32_t len, uint8_t *digest) argument
868 if (digest == NULL) {
896 bootloader_sha256_finish(sha_handle, digest);
/device/soc/esp/esp32/components/bootloader_support/src/idf/
Dbootloader_sha.c44 void bootloader_sha256_finish(bootloader_sha256_handle_t handle, uint8_t *digest) in bootloader_sha256_finish() argument
48 if (digest != NULL) { in bootloader_sha256_finish()
49 int ret = mbedtls_sha256_finish(ctx, digest); in bootloader_sha256_finish()
/device/soc/winnermicro/wm800/board/src/bt/blehost/ext/tinycrypt/src/
Dsha256.c87 int tc_sha256_final(uint8_t *digest, TCSha256State_t s) in tc_sha256_final() argument
92 if (digest == (uint8_t *) 0 || in tc_sha256_final()
125 *digest++ = (uint8_t)(t >> 24); // 24:byte alignment in tc_sha256_final()
126 *digest++ = (uint8_t)(t >> 16); // 16:byte alignment in tc_sha256_final()
127 *digest++ = (uint8_t)(t >> 8); // 8:byte alignment in tc_sha256_final()
128 *digest++ = (uint8_t)(t); in tc_sha256_final()
/device/soc/esp/esp32/components/bootloader_support/src/secure_boot_v1/
Dsecure_boot_signatures_bootloader.c40 uint8_t digest[ESP_SECURE_BOOT_DIGEST_LEN]; in esp_secure_boot_verify_signature() local
46 esp_err_t err = bootloader_sha256_flash_contents(src_addr, length, digest); in esp_secure_boot_verify_signature()
58 err = esp_secure_boot_verify_ecdsa_signature_block(sigblock, digest, verified_digest); in esp_secure_boot_verify_signature()
Dsecure_boot_signatures_app.c41 uint8_t digest[ESP_SECURE_BOOT_DIGEST_LEN]; in esp_secure_boot_verify_signature() local
47 esp_err_t err = bootloader_sha256_flash_contents(src_addr, length, digest); in esp_secure_boot_verify_signature()
59 err = esp_secure_boot_verify_ecdsa_signature_block(sigblock, digest, verified_digest); in esp_secure_boot_verify_signature()
/device/soc/esp/esp32/components/bootloader_support/src/secure_boot_v2/
Dsecure_boot_signatures_bootloader.c35 uint8_t digest[ESP_SECURE_BOOT_DIGEST_LEN] = {0}; in esp_secure_boot_verify_signature() local
43 esp_err_t err = bootloader_sha256_flash_contents(src_addr, padded_length, digest); in esp_secure_boot_verify_signature()
55 err = esp_secure_boot_verify_rsa_signature_block(sig_block, digest, verified_digest); in esp_secure_boot_verify_signature()
Dsecure_boot_signatures_app.c136 uint8_t digest[ESP_SECURE_BOOT_DIGEST_LEN] = {0}; in esp_secure_boot_verify_signature() local
143 esp_err_t err = bootloader_sha256_flash_contents(src_addr, padded_length, digest); in esp_secure_boot_verify_signature()
155 err = esp_secure_boot_verify_rsa_signature_block(sig_block, digest, verified_digest); in esp_secure_boot_verify_signature()
/device/soc/hisilicon/hi3861v100/sdk_liteos/build/scripts/
Dmake_upg_file.py313 digest = SHA256.new()
314 digest.update(bytes(common_head_content))
315 signature_1 = signer.sign(digest)
318 digest = SHA256.new()
319 digest.update(bytes(section_content))
320 signature_2 = signer.sign(digest)
336 digest = SHA256.new()
337 digest.update(bytes(common_head_content))
338 signature_1 = signer.sign(digest)
341 digest = SHA256.new()
[all …]
/device/soc/esp/esp32/components/bootloader_support/include_bootloader/
Dbootloader_sha.h33 void bootloader_sha256_finish(bootloader_sha256_handle_t handle, uint8_t *digest);
Dbootloader_utility.h129 esp_err_t bootloader_sha256_flash_contents(uint32_t flash_offset, uint32_t len, uint8_t *digest);
/device/soc/esp/esp32/components/esp_rom/include/esp32/rom/
Dmd5_hash.h28 void MD5Final(unsigned char digest[16], struct MD5Context *context);
Drsa_pss.h40 bool ets_rsa_pss_verify(const ets_rsa_pubkey_t *key, const uint8_t *sig, const uint8_t *digest, uin…
/device/soc/esp/esp32/components/esp_rom/include/
Desp_rom_md5.h61 void esp_rom_md5_final(uint8_t *digest, md5_context_t *context);
/device/soc/winnermicro/wm800/board/src/bt/blehost/ext/tinycrypt/include/tinycrypt/
Dsha256.h123 int tc_sha256_final(uint8_t *digest, TCSha256State_t s);
/device/soc/esp/esp32/components/bootloader_support/include/
Desp_secure_boot.h232 uint8_t digest[64]; member
/device/soc/hisilicon/hi3861v100/sdk_liteos/tools/efuse_tool/
Defuse_cfg_gen.py71 hash = hashlib.sha256(data).digest()
/device/soc/rockchip/rk3588/kernel/scripts/
Dresource_tool.c519 void sha256_finish(sha256_context * ctx, uint8_t digest[32]) in sha256_finish()
538 PUT_UINT32_BE(ctx->state[0], digest, 0); in sha256_finish()
539 PUT_UINT32_BE(ctx->state[1], digest, 4); in sha256_finish()
540 PUT_UINT32_BE(ctx->state[2], digest, 8); in sha256_finish()
541 PUT_UINT32_BE(ctx->state[3], digest, 12); in sha256_finish()
542 PUT_UINT32_BE(ctx->state[4], digest, 16); in sha256_finish()
543 PUT_UINT32_BE(ctx->state[5], digest, 20); in sha256_finish()
544 PUT_UINT32_BE(ctx->state[6], digest, 24); in sha256_finish()
545 PUT_UINT32_BE(ctx->state[7], digest, 28); in sha256_finish()
/device/soc/rockchip/common/sdk_linux/scripts/
Dresource_tool.c508 static void sha256_finish(sha256_context *ctx, uint8_t digest[32]) in sha256_finish()
526 PUT_UINT32_BE(ctx->state[0x0], digest, 0x0); in sha256_finish()
527 PUT_UINT32_BE(ctx->state[0x1], digest, 0x4); in sha256_finish()
528 PUT_UINT32_BE(ctx->state[0x2], digest, 0x8); in sha256_finish()
529 PUT_UINT32_BE(ctx->state[0x3], digest, 0xc); in sha256_finish()
530 PUT_UINT32_BE(ctx->state[0x4], digest, 0x10); in sha256_finish()
531 PUT_UINT32_BE(ctx->state[0x5], digest, 0x14); in sha256_finish()
532 PUT_UINT32_BE(ctx->state[0x6], digest, 0x18); in sha256_finish()
533 PUT_UINT32_BE(ctx->state[0x7], digest, 0x1c); in sha256_finish()
/device/soc/hpmicro/sdk/hpm_sdk/soc/HPM6360/
Dhpm_romapi.h290 hpm_stat_t (*hash_finish)(sdp_hash_ctx_t *hash_ctx, uint8_t *digest);
765 static inline hpm_stat_t rom_sdp_hash_finish(sdp_hash_ctx_t *hash_ctx, uint8_t *digest) in rom_sdp_hash_finish() argument
767 return ROM_API_TABLE_ROOT->sdp_driver_if->hash_finish(hash_ctx, digest); in rom_sdp_hash_finish()
/device/soc/hpmicro/sdk/hpm_sdk/soc/HPM6750/
Dhpm_romapi.h241 hpm_stat_t (*hash_finish)(sdp_hash_ctx_t *hash_ctx, uint8_t *digest);
700 static inline hpm_stat_t rom_sdp_hash_finish(sdp_hash_ctx_t *hash_ctx, uint8_t *digest) in rom_sdp_hash_finish() argument
702 return ROM_API_TABLE_ROOT->sdp_driver_if->hash_finish(hash_ctx, digest); in rom_sdp_hash_finish()
/device/soc/hisilicon/hi3861v100/sdk_liteos/include/
Dhks_types.h276 uint32_t digest; member

12